Details

    • Similar Issues:
      Show 5 results 

      Description

      15:52:29,385 INFO [PortletExplodedTomcatListener:60] Modifying portlets for d:\dev java\github\bundles\deploy\service-test-portlet.xml
      15:52:29,486 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
      com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
      at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
      at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
      at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
      at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
      at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
      at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
      Caused by: java.lang.NullPointerException
      at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:385)
      at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
      at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
      at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
      ... 5 more

        Activity

        Hide
        Gregory Amerson added a comment -

        The probelm seems to be that the exploded tomcat deployer calls deployDirectory(...) and passing in a null for PluginPackage. The method BaseDeployer.copyProperties() tries to access PluginPackage.

        Show
        Gregory Amerson added a comment - The probelm seems to be that the exploded tomcat deployer calls deployDirectory(...) and passing in a null for PluginPackage. The method BaseDeployer.copyProperties() tries to access PluginPackage.
        Hide
        Gregory Amerson added a comment -
        Show
        Gregory Amerson added a comment - Submitted pull request: https://github.com/brianchandotcom/liferay-portal/pull/3294
        Hide
        Juan G added a comment -

        Thanks very much Gregory!

        Show
        Juan G added a comment - Thanks very much Gregory!
        Hide
        Michael Saechang added a comment -

        Committed on:
        6.1.x Revision: 96127.
        6.2.x Revision: 96086.

        Show
        Michael Saechang added a comment - Committed on: 6.1.x Revision: 96127. 6.2.x Revision: 96086.
        Hide
        Gregory Amerson added a comment -

        Here are the steps to test:

        1. Create a new portlet project called "exploded" using ./create.sh|bat
        2. Add an simple service.xml to docroot/WEB-INF/ folder, have at least one entity in the service.xml
        3. run ant build-service
        4. run ant war
        5. unzip the contents of the war file into a new directory called exploded-portlet
        6. manually copy exploded-portlet directory to the tomcat/webapps folder
        7. start tomcat
        8. create an xml file that has these contents:

        <?xml version="1.0" encoding="UTF-8"?>
        <Context docBase="<path_to_portal_6.1_directory>\tomcat-7.0.23\webapps\exploded-portlet" reloadable="true" />

        9. copy this XML file into the auto deploy directory.

        If it works you should see a message like this in the tomcat log:

        06:08:59,599 INFO [AutoDeployDir:167] Processing exploded-portlet.xml
        06:08:59,637 INFO [PortletExplodedTomcatListener:60] Modifying portlets for D:\
        dev java\testing\liferay-portal-6.1.0\deploy\exploded-portlet.xml
        Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap
        ps\exploded-portlet\WEB-INF\classes
        Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap
        ps\exploded-portlet\WEB-INF\classes
        Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap
        ps\exploded-portlet\META-INF
        Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap
        ps\exploded-portlet\WEB-INF\jsp
        06:09:00,093 INFO [PortletExplodedTomcatListener:66] Portlets for D:\dev java\t
        esting\liferay-portal-6.1.0\deploy\exploded-portlet.xml modified successfully
        06:09:00,094 INFO [BaseExplodedTomcatListener:48] Copying file D:\dev java\test
        ing\liferay-portal-6.1.0\deploy\exploded-portlet.xml to ../conf/Catalina/localho
        st
        Jan 4, 2012 6:09:01 AM org.apache.catalina.startup.HostConfig checkResources
        INFO: Reloading context [/exploded-portlet]
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/service.properties
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/service.properties
        06:09:01,872 INFO [PluginPackageUtil:1099] Reading plugin package for exploded-
        portlet
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/service.properties
        06:09:01,943 INFO [ServiceComponentLocalServiceImpl:183] Running test SQL scrip
        ts
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/portlet.properties
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/portlet.properties
        06:09:02,020 INFO [PortletHotDeployListener:612] Registering portlets for explo
        ded-portlet
        Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e
        xploded-portlet/WEB-INF/classes/portlet.properties
        06:09:02,141 INFO [PortletHotDeployListener:431] 1 portlet for exploded-portlet
        is available for use

        Show
        Gregory Amerson added a comment - Here are the steps to test: 1. Create a new portlet project called "exploded" using ./create.sh|bat 2. Add an simple service.xml to docroot/WEB-INF/ folder, have at least one entity in the service.xml 3. run ant build-service 4. run ant war 5. unzip the contents of the war file into a new directory called exploded-portlet 6. manually copy exploded-portlet directory to the tomcat/webapps folder 7. start tomcat 8. create an xml file that has these contents: <?xml version="1.0" encoding="UTF-8"?> <Context docBase="<path_to_portal_6.1_directory>\tomcat-7.0.23\webapps\exploded-portlet" reloadable="true" /> 9. copy this XML file into the auto deploy directory. If it works you should see a message like this in the tomcat log: 06:08:59,599 INFO [AutoDeployDir:167] Processing exploded-portlet.xml 06:08:59,637 INFO [PortletExplodedTomcatListener:60] Modifying portlets for D:\ dev java\testing\liferay-portal-6.1.0\deploy\exploded-portlet.xml Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap ps\exploded-portlet\WEB-INF\classes Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap ps\exploded-portlet\WEB-INF\classes Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap ps\exploded-portlet\META-INF Copying 1 file to D:\dev java\testing\liferay-portal-6.1.0\tomcat-7.0.23\webap ps\exploded-portlet\WEB-INF\jsp 06:09:00,093 INFO [PortletExplodedTomcatListener:66] Portlets for D:\dev java\t esting\liferay-portal-6.1.0\deploy\exploded-portlet.xml modified successfully 06:09:00,094 INFO [BaseExplodedTomcatListener:48] Copying file D:\dev java\test ing\liferay-portal-6.1.0\deploy\exploded-portlet.xml to ../conf/Catalina/localho st Jan 4, 2012 6:09:01 AM org.apache.catalina.startup.HostConfig checkResources INFO: Reloading context [/exploded-portlet] Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/service.properties Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/service.properties 06:09:01,872 INFO [PluginPackageUtil:1099] Reading plugin package for exploded- portlet Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/service.properties 06:09:01,943 INFO [ServiceComponentLocalServiceImpl:183] Running test SQL scrip ts Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/portlet.properties Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/portlet.properties 06:09:02,020 INFO [PortletHotDeployListener:612] Registering portlets for explo ded-portlet Loading file:/D:/dev%20java/testing/liferay-portal-6.1.0/tomcat-7.0.23/webapps/e xploded-portlet/WEB-INF/classes/portlet.properties 06:09:02,141 INFO [PortletHotDeployListener:431] 1 portlet for exploded-portlet is available for use
        Hide
        Paul Piao (Inactive) added a comment -

        PASSED Manual Testing following Gregory comment steps.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: fe4f580635650e4a77590a967a98f629bb65c024.
        On affect ID. I can see the description said error message "NullPointerException".

        Fixed on:
        Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 18fe20dc76cab039caabeeb5aa5951dd48deabe1.
        Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 643b35472119d7e762d28e98a78a43b9a3ef0e2d.
        On fixed ID. I can not find the error message. It is working.

        Show
        Paul Piao (Inactive) added a comment - PASSED Manual Testing following Gregory comment steps. Reproduced on: Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: fe4f580635650e4a77590a967a98f629bb65c024. On affect ID. I can see the description said error message "NullPointerException". Fixed on: Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 18fe20dc76cab039caabeeb5aa5951dd48deabe1. Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 643b35472119d7e762d28e98a78a43b9a3ef0e2d. On fixed ID. I can not find the error message. It is working.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 8 weeks, 5 days ago

              Development

                Structure Helper Panel