Jahia in English > migrate custom module...

0 (0 Good)
0 (0 Bad)

migrate custom module 6.5 to 7.0

by  bharatkasodariya »  2015/07/30 10:45

How to migrate custom deveoped module from jahia 6.5 to 7.0

  (bharatkasodariya)

Number of messages  57
Registration date
0 (0 Good)
0 (0 Bad)

Re: migrate custom module 6.5 to 7.0

by  pvollenweider »  2015/08/03 15:25

Hello,

Didi you  try to change your Jahia version to 7.0.0.0 then run "mvn jahia:convert-to-osgi" ?
There is a complate documentation at https://www.jahia.com/files/live/sites/jahiacom/files/Resources/docs/7.x/7.0/en/DF7.0_OSGi-Module-Development.pdf

Cheers,

Philippe

Philippe Vollenweider (pvollenweider)

Number of messages  11
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: migrate custom module 6.6.2.0 to 7.0

by  bharatkasodariya »  2015/08/06 12:53

Sorry, Its version 6.6.2.0

tried to execute migration command. It fails. Here is the trace

 

E:/jahia/jahia7/customProTemplate >mvn jahia:convert-to-osgi
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jahia.modules:customProTemplate:war:1.0-SNAPSHOT
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building customProTemplate 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jahia-maven-plugin:4.0:convert-to-osgi (default-cli) @ customProTemplate ---
[INFO] Removing E:\jahia\jahia7\customProTemplate\src\main\webapp\WEB-INF\web.xml no longer needed...
[INFO] Moving contents of directory E:\jahia\jahia7\customProTemplate\src\main\webapp into directory E:\jahia\jahia7\customProTemplate\src\main\resources...
[INFO] Performing Maven project modifications...
[INFO] Checking for migration issues...
Aug 06, 2015 6:13:19 PM com.sun.xml.internal.bind.v2.util.XmlFactory createParserFactory
SEVERE: null
org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
        at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown Source)
        at com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:114)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:139)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204)
        at org.jahia.utils.migration.Migrators.unmarshal(Migrators.java:43)
        at org.jahia.utils.migration.Migrators.<init>(Migrators.java:30)
        at org.jahia.utils.migration.Migrators.<clinit>(Migrators.java:24)
        at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.checkForMigrationIssues(ConvertToOSGI.java:239)
        at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.checkForMigrationIssues(ConvertToOSGI.java:268)
        at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.doExecute(ConvertToOSGI.java:81)
        at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:130)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.703s
[INFO] Finished at: Thu Aug 06 18:13:19 IST 2015
[INFO] Final Memory: 20M/48M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jahia.server:jahia-maven-plugin:4.0:convert-to-osgi (default-cli) on project customProTemplate: Execution default-cli of goal org.jahia.server:jahia
-maven-plugin:4.0:convert-to-osgi failed: An API incompatibility was encountered while executing org.jahia.server:jahia-maven-plugin:4.0:convert-to-osgi: java.lang.ExceptionInIniti
alizerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.jahia.server:jahia-maven-plugin:4.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
....
...........
[ERROR] urls[108] = file:/E:/mavenLib/org/jahia/configuration/migrators/4.0/migrators-4.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.jahia.modules:customProTemplate:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recog
nized.

  (bharatkasodariya)

Number of messages  57
Registration date
0 (0 Good)
0 (0 Bad)

Re: Re: migrate custom module 6.5 to 7.0

by  migrate custom module 6.5 to 7.0 »  2015/08/06 13:45

Found the fix. reason was java 8. With java 8 it doesn't work.

version of xerces is not compatible with JAX-B in JAVA 8

Tried to execute command with java 7 ,It works. 

 

migrate custom module 6.5 to 7.0
Number of messages  1
Not registered
0 (0 Good)
0 (0 Bad)

Re: Re:migrate custom module 6.6.2.0 to 7.0

by  bharatkasodariya »  2015/08/06 13:46

Found the fix. reason was java 8. With java 8 it doesn't work.

version of xerces is not compatible with JAX-B in JAVA 8

Tried to execute command with java 7 ,It works. 

  (bharatkasodariya)

Number of messages  57
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page