Bugs item #1058660, was opened at 2004-11-02 00:30 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1058660&group_id=22866
Category: JBossServer Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Thomas Fromm (tfromm) Assigned to: Nobody/Anonymous (nobody) Summary: Deployment problem Cannot find setter method setDocBase null Initial Comment: The bug appears exactly like described here: http://www.jboss.org/wiki/Wiki.jsp?page=RunJBossWithJ2SDK1.5Beta But i use sun jdk 1.4.2_05 with jboss+tomcat 3.2.6 release. I have no javax.management* stuff inside the deployed ear. Inside the .ear is an embedded .war. If i use the .war as standalone, everything is fine. If i remove jboss-app.xml from the META-INF also everything is fine. Seems, that this problem is not only once of the jdk 1.5. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2004-12-29 12:52 Message: Logged In: YES user_id=175228 All issues have been moved to http://jira.jboss.com. Existing issues have been moved. New issues will be closed with this canned reponse. ---------------------------------------------------------------------- Comment By: Sean Sullivan (sullis) Date: 2004-12-04 23:35 Message: Logged In: YES user_id=156581 I posted the EAR file at http://openamf.sourceforge.net/jboss1058660/openamf.ear Download the EAR using Firefox Drop a copy of the EAR in c:\jboss-4.0.0 \server\default\deploy ---------------------------------------------------------------------- Comment By: Sean Sullivan (sullis) Date: 2004-12-04 23:25 Message: Logged In: YES user_id=156581 I am having a similar problem. I am deploying an EAR in JBoss-4.0.0 with J2SE 1.4.2_06 I will attach the EAR file to this bug report. The EAR's filename is openamf.ear 2004-12-04 23:22:45,328 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss- 4.0.0/server/default/deploy/openamf.ear org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String)) at org.jboss.web.AbstractWebDeployer.start (AbstractWebDeployer.java:379) at org.jboss.web.WebModule.startModule (WebModule.java:62) at org.jboss.web.WebModule.startService (WebModule.java:40) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart (ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.server.Invocation.invoke (Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke (ServiceController.java:891) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start (ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.server.Invocation.invoke (Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176) at $Proxy24.start(Unknown Source) at org.jboss.web.AbstractWebContainer.start (AbstractWebContainer.java:362) at org.jboss.deployment.MainDeployer.start (MainDeployer.java:935) at org.jboss.deployment.MainDeployer.start (MainDeployer.java:927) at org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:746) at org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:709) at sun.reflect.GeneratedMethodAccessor30.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke (AbstractInterceptor.java:119) at org.jboss.mx.server.Invocation.invoke (Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.inv oke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke (Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy (URLDeploymentScanner.java:305) at org.jboss.deployment.scanner.URLDeploymentScanner.scan (URLDeploymentScanner.java:481) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.loop(AbstractDeploymentScanner.java:215) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.run(AbstractDeploymentScanner.java:194) Caused by: ReflectionException: Cannot find setter method setDocBase null Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String) at org.apache.commons.modeler.BaseModelMBean.setAttribute (BaseModelMBean.java:662) at org.jboss.mx.server.RawDynamicInvoker.setAttribute (RawDynamicInvoker.java:56) at org.jboss.mx.server.MBeanServerImpl.setAttribute (MBeanServerImpl.java:591) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInter nal(TomcatDeployer.java:184) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy (TomcatDeployer.java:83) at org.jboss.web.AbstractWebDeployer.start (AbstractWebDeployer.java:370) ... 48 more Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String) at java.lang.Class.getMethod(Class.java:986) at org.apache.commons.modeler.BaseModelMBean.setAttribute (BaseModelMBean.java:646) ... 53 more 2004-12-04 23:22:45,328 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$Deplo [EMAIL PROTECTED] url=file:/C:/jboss- 4.0.0/server/default/deploy/openamf.ear, deployedLastModified=0 } org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String)) at org.jboss.web.AbstractWebDeployer.start (AbstractWebDeployer.java:379) at org.jboss.web.WebModule.startModule (WebModule.java:62) at org.jboss.web.WebModule.startService (WebModule.java:40) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart (ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor2.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.server.Invocation.invoke (Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.system.ServiceController$ServiceProxy.invoke (ServiceController.java:891) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start (ServiceController.java:416) at sun.reflect.GeneratedMethodAccessor6.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.server.Invocation.invoke (Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176) at $Proxy24.start(Unknown Source) at org.jboss.web.AbstractWebContainer.start (AbstractWebContainer.java:362) at org.jboss.deployment.MainDeployer.start (MainDeployer.java:935) at org.jboss.deployment.MainDeployer.start (MainDeployer.java:927) at org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:746) at org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:709) at sun.reflect.GeneratedMethodAccessor30.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke (AbstractInterceptor.java:119) at org.jboss.mx.server.Invocation.invoke (Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.inv oke(ModelMBeanOperationInterceptor.java:131) at org.jboss.mx.server.Invocation.invoke (Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) at org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:176) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy (URLDeploymentScanner.java:305) at org.jboss.deployment.scanner.URLDeploymentScanner.scan (URLDeploymentScanner.java:481) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.loop(AbstractDeploymentScanner.java:215) at org.jboss.deployment.scanner.AbstractDeploymentScanner$S cannerThread.run(AbstractDeploymentScanner.java:194) Caused by: ReflectionException: Cannot find setter method setDocBase null Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String) at org.apache.commons.modeler.BaseModelMBean.setAttribute (BaseModelMBean.java:662) at org.jboss.mx.server.RawDynamicInvoker.setAttribute (RawDynamicInvoker.java:56) at org.jboss.mx.server.MBeanServerImpl.setAttribute (MBeanServerImpl.java:591) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInter nal(TomcatDeployer.java:184) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy (TomcatDeployer.java:83) at org.jboss.web.AbstractWebDeployer.start (AbstractWebDeployer.java:370) ... 48 more Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase (java.lang.String) at java.lang.Class.getMethod(Class.java:986) at org.apache.commons.modeler.BaseModelMBean.setAttribute (BaseModelMBean.java:646) ... 53 more ---------------------------------------------------------------------- Comment By: Thomas Fromm (tfromm) Date: 2004-11-05 02:27 Message: Logged In: YES user_id=79402 Ok, finally i found a solution. I removed jboss-app.xml from the .ear and the .ear works. (otherwise i got lots of problems, because the application couldn't initialize the dom parser correctly, because no xerces impl could be found :-| (and i have one inside the .ear, one inside the jvm/lib/endorsed and finally afaik jboss has also one inside his libs)) To avoid problems with the other .war (to devide log4j contexts), i spend the .war a jboss-web.xml: <jboss-web> <context-root /> <class-loading java2ClassLoadingCompliance="false"> <loader-repository> dot.com:loader=ROOT.war <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </class-loading> </jboss-web> But i have to remark, that the settings inside the META-INF/jboss-service.xml from the tomcat .sar have to be the same as them inside the the jboss-web.xml above, otherwise its not working :-| And finally... jboss hangs at undeployment of .wars, if jasper reports compile errors. Thats also not nice. ATM i have some problems with listeners inside the .war, seems they are initialized, but no event reach them. But i hope i can fix this in the near future. ---------------------------------------------------------------------- Comment By: Wonne Keysers (wonnekeysers) Date: 2004-11-03 03:32 Message: Logged In: YES user_id=505480 What is the rest of the stacktrace? Tomcat is trying to use the new ear ClassLoader to load, configure and deploy of the war's webapp context, but there are some version conflicts with the overridden embedded libraries.. I think that this is related to bug #1056747: Shouldn't Tomcat use its own ClassLoader for the (un)deployment and the ear's ClassLoader at runtime? ---------------------------------------------------------------------- Comment By: Thomas Fromm (tfromm) Date: 2004-11-03 03:01 Message: Logged In: YES user_id=79402 I tried to put back the commons-logging and got known exception: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)) ... ---------------------------------------------------------------------- Comment By: Wonne Keysers (wonnekeysers) Date: 2004-11-03 01:40 Message: Logged In: YES user_id=505480 It all has to do with ClassLoading. Read the following page: http://www.jboss.org/wiki/Wiki.jsp?page=Logging It explains how to use your own log4j.jar and log4j.xml. Here is more about ClassLoading configurations http://www.jboss.org/wiki/Wiki.jsp? page=ClassLoadingConfiguration The only thing I'm not sure of is whether it also works to embed the commons-logging.jar in your ear. Perhaps you can try? ---------------------------------------------------------------------- Comment By: Thomas Fromm (tfromm) Date: 2004-11-03 01:12 Message: Logged In: YES user_id=79402 I now removed commons-logging and had exeptions like: 9:38:12,517 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows. 09:38:12,518 INFO [STDOUT] java.lang.ClassCastException 09:38:12,519 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165) Ok, then i removed log4j crap and seems to work. the question is, why i cannot have multiple jars of log4j in several applications divided by separate classloader? ---------------------------------------------------------------------- Comment By: Wonne Keysers (wonnekeysers) Date: 2004-11-02 08:36 Message: Logged In: YES user_id=505480 Can you try removing the commons-logging.jar? ---------------------------------------------------------------------- Comment By: Thomas Fromm (tfromm) Date: 2004-11-02 08:24 Message: Logged In: YES user_id=79402 Here is list of thirdparty tools included inside the lib/ directory inside the ear: bcmail-jdk14-122.jar jce-jdk13-122.jar avalon-framework-cvs-20020806.jar jakarta-oro-2.0.7.jar log4j-1.2.8.jar commons-dbcp-1.2.1.jar commons-pool-1.2.jar xmlrpc.jar javamail-1.3.1/mail.jar jaf-1.0.2/activation.jar soap-2_3_1/lib/soap.jar fop-0.20.5/lib/batik.jar fop-0.20.5/build/fop.jar ftp-1.2.2/ftp.jar axis-1_2/lib/axis.jar commons-discovery.jar axis-1_2/lib/wsdl4j.jar axis-1_2/lib/jaxrpc.jar axis-1_2/lib/saaj.jar axis-1_2/lib/axis-ant.jar commons-logging.jar dom4j-1.5/dom4j.jar jaxen-1.1-beta-4.jar poi-2.0-final-20040126.jar isorelax.jar jing.jar msv-20020414/msv.jar msv-20020414/xsdlib.jar verifier.light.jar saxon8.1.1/saxon8.jar saxon6.5.3/saxon.jar rhino1_5R4/js.jar hsqldb/lib/hsqldb.jar commons-collections-3.1.jar TableLayout.jar krysalis-barcode.jar xalan-j_2_6_0/bin/xalan.jar xerces-2_6_2/xercesImpl.jar xerces-2_6_2/xmlParserAPIs.jar bsh-2.0b1.jar bsf-2.3.0/lib/bsf.jar l2fprod-common-all.jar nachocalendar-0.12.jar ant.jar ant-launcher.jar jfreechart-0.9.21.jar jcommon-0.9.6.jar Maybe this makes for you easier to find possibly suspicious jars. I know, some of them are already included inside jboss, but normally i need a seperate classloader for each application e.g. when application uses log4j where statics are used for logging initialization. ---------------------------------------------------------------------- Comment By: Thomas Fromm (tfromm) Date: 2004-11-02 01:12 Message: Logged In: YES user_id=79402 No, there is also no org.apache.commons.beanutils. At jboss 3.0.8 there exists need for adding the jboss-app.xm, because i had to deploy 2 different applications with mostly the same third-party tools in them (there were problems with statics and with duplicate classes in CP as i remember). I begun yesterday to update to 3.2.6, i'am still not finished and i also have not deployed the 2nd application. I hope without jboss-app.xml i do not run into trouble. ---------------------------------------------------------------------- Comment By: Wonne Keysers (wonnekeysers) Date: 2004-11-02 00:53 Message: Logged In: YES user_id=505480 Do you have the commons-beanutils.jar library embedded in your .ear? If so, try removing it... (Together with any other jakarta common .jars that are part of the embedded Tomcat) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1058660&group_id=22866 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development