users@glassfish.java.net

Re: Problem deploying EAR from folder structure

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Jun 2007 10:02:35 PDT

Okay I sent the email with a tar.gz with both the directory version and the .ear packaged version.

I tried to name the deployment MyTestEar as well and had the same exact result as MyTestEar.ear and MyTestEar_ear (using the deployer from the web console).


Incidentally, when using the autodeploy feature only the .ear directory name results in this same error (the WsGen error). If I autodeploy using MyTestEar_ear or just MyTestEar then I get the following ClassNotFound issues (but I guess this is for another day :-):

[#|2007-06-19T12:55:19.052-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Selecting file /var/home/gruscoe/local/glassfish-v2-b51/domains/domain1/autodeploy/MyTestEar_ear/MyTestWeb_war/WEB-INF/classes/com/tests/mytester/TestClasses.class for autodeployment.|#]

[#|2007-06-19T12:55:19.053-0400|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;_RequestID=b5f964c7-42a8-4a69-b973-520362814e12;|MyTestEar.ear.MyTestWeb.war.WEB-INF.classes.com.tests.mytester.TestClasses
java.lang.ClassNotFoundException: MyTestEar.ear.MyTestWeb.war.WEB-INF.classes.com.tests.mytester.TestClasses
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getTypeFromFile(DeploymentServiceUtils.java:1155)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getTypeFromFile(ApplicationsConfigMBean.java:2553)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:479)
        at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
|#]

[#|2007-06-19T12:55:19.122-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|deployed with moduleid = MyTestEar_ear_MyTestWeb_war_WEB-INF_classes_com_tests_mytester_TestClasses|#]

[#|2007-06-19T12:55:19.196-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Successfully autodeployed : /var/home/gruscoe/local/glassfish-v2-b51/domains/domain1/autodeploy/MyTestEar_ear/MyTestWeb_war/WEB-INF/classes/com/tests/mytester/TestClasses.class.|#]

[#|2007-06-19T12:55:19.197-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Selecting file /var/home/gruscoe/local/glassfish-v2-b51/domains/domain1/autodeploy/MyTestEar_ear/MyTestWeb_war/WEB-INF/classes/com/tests/webservices/WebServiceTester.class for autodeployment.|#]

[#|2007-06-19T12:55:19.198-0400|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;_RequestID=b5f964c7-42a8-4a69-b973-520362814e12;|MyTestEar.ear.MyTestWeb.war.WEB-INF.classes.com.tests.webservices.WebServiceTester
java.lang.ClassNotFoundException: MyTestEar.ear.MyTestWeb.war.WEB-INF.classes.com.tests.webservices.WebServiceTester
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getTypeFromFile(DeploymentServiceUtils.java:1155)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getTypeFromFile(ApplicationsConfigMBean.java:2553)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:479)
        at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
|#]

[#|2007-06-19T12:55:19.216-0400|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;_RequestID=b5f964c7-42a8-4a69-b973-520362814e12;|Error in annotation processing: java.lang.NoClassDefFoundError: MyTestEar_ear/MyTestWeb_war/WEB-INF/classes/com/tests/webservices/WebServiceTester (wrong name: com/tests/webservices/WebServiceTester)|#]

[#|2007-06-19T12:55:19.254-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|deployed with moduleid = MyTestEar_ear_MyTestWeb_war_WEB-INF_classes_com_tests_webservices_WebServiceTester|#]

[#|2007-06-19T12:55:19.329-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Timer-6;|[AutoDeploy] Successfully autodeployed : /var/home/gruscoe/local/glassfish-v2-b51/domains/domain1/autodeploy/MyTestEar_ear/MyTestWeb_war/WEB-INF/classes/com/tests/webservices/WebServiceTester.class.|#]
[Message sent by forum member 'gcruscoe' (gcruscoe)]

http://forums.java.net/jive/thread.jspa?messageID=222920