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

  • migrate custom module 6.5 to 7.0
    2015/07/30 10:45

    bharatkasodariya <p>How to migrate custom deveoped module from jahia 6.5 to 7.0</p>

  • Number of messages  57
    Registration date Jul 30, 2015
    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.

  • Re: Re: migrate custom module 6.6.2.0 to 7.0
    2015/08/06 12:53

    bharatkasodariya <p>Sorry, Its version&nbsp;6.6.2.0</p> <p>tried to execute migration command. It fails. Here is the trace</p> <p>&nbsp;</p> <blockquote> <p>E:/jahia/jahia7/customProTemplate &gt;mvn jahia:convert-to-osgi<br /> [INFO] Scanning for projects...<br /> [WARNING]<br /> [WARNING] Some problems were encountered while building the effective model for org.jahia.modules:customProTemplate:war:1.0-SNAPSHOT<br /> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.<br /> [WARNING]<br /> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.<br /> [WARNING]<br /> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.<br /> [WARNING]<br /> [INFO]<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building customProTemplate 1.0-SNAPSHOT<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO]<br /> [INFO] --- jahia-maven-plugin:4.0:convert-to-osgi (default-cli) @ customProTemplate ---<br /> [INFO] Removing E:\jahia\jahia7\customProTemplate\src\main\webapp\WEB-INF\web.xml no longer needed...<br /> [INFO] Moving contents of directory E:\jahia\jahia7\customProTemplate\src\main\webapp into directory E:\jahia\jahia7\customProTemplate\src\main\resources...<br /> [INFO] Performing Maven project modifications...<br /> [INFO] Checking for migration issues...<br /> Aug 06, 2015 6:13:19 PM com.sun.xml.internal.bind.v2.util.XmlFactory createParserFactory<br /> SEVERE: null<br /> org.xml.sax.SAXNotRecognizedException: Feature &#39;http://javax.xml.XMLConstants/feature/secure-processing&#39; is not recognized.<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.xerces.jaxp.SAXParserImpl.&lt;init&gt;(Unknown Source)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown Source)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown Source)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:114)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:139)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.migration.Migrators.unmarshal(Migrators.java:43)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.migration.Migrators.&lt;init&gt;(Migrators.java:30)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.migration.Migrators.&lt;clinit&gt;(Migrators.java:24)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.checkForMigrationIssues(ConvertToOSGI.java:239)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.checkForMigrationIssues(ConvertToOSGI.java:268)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.maven.plugin.osgi.ConvertToOSGI.doExecute(ConvertToOSGI.java:81)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:130)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:483)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)<br /> &nbsp; &nbsp; &nbsp; &nbsp; at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)</p> <p>[INFO] ------------------------------------------------------------------------<br /> [INFO] BUILD FAILURE<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Total time: 42.703s<br /> [INFO] Finished at: Thu Aug 06 18:13:19 IST 2015<br /> [INFO] Final Memory: 20M/48M<br /> [INFO] ------------------------------------------------------------------------<br /> [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<br /> -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<br /> alizerError: null<br /> [ERROR] -----------------------------------------------------<br /> [ERROR] realm = &nbsp; &nbsp;plugin&gt;org.jahia.server:jahia-maven-plugin:4.0<br /> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy<br /> ....<br /> ...........<br /> [ERROR] urls[108] = file:/E:/mavenLib/org/jahia/configuration/migrators/4.0/migrators-4.0.jar<br /> [ERROR] Number of foreign imports: 1<br /> [ERROR] import: Entry[import &nbsp;from realm ClassRealm[project&gt;org.jahia.modules:customProTemplate:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]<br /> [ERROR]<br /> [ERROR] -----------------------------------------------------: org.xml.sax.SAXNotRecognizedException: Feature &#39;http://javax.xml.XMLConstants/feature/secure-processing&#39; is not recog<br /> nized.</p> </blockquote>

  • Number of messages  57
    Registration date Aug 6, 2015
    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. 

  • Re: Re:migrate custom module 6.6.2.0 to 7.0
    2015/08/06 13:46

    bharatkasodariya <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Found the fix. reason was java 8. With java 8 it doesn&#39;t work.</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;"><span style="line-height: 1.6;">version of xerces is not compatible with JAX-B in JAVA 8</span></p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20.7999992370605px;">Tried to execute command with java 7 ,It works.&nbsp;</p>

  • Number of messages  57
    Registration date Aug 6, 2015
    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