struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dallas <dalla_man...@hotmail.com>
Subject Re: NoClassDefFoundError deploying on UNIX, not Windows
Date Thu, 23 Oct 2008 12:57:08 GMT

Oh... how stupid... too much multitasking, posted on the wrong forum :-)

However, if someone by any chance happens to end up here while looking for
answers to a similar question,
I might aswell mention that the problem was that the application had been
deployed in ascii-mode instead of binary mode...


newton.dave wrote:
> 
> I'm not sure what the Struts portion of the question is; perhaps you could
> elaborate. Have you considered asking on a JBoss forum?
> 
> Dave
> 
> --- On Thu, 10/23/08, Dallas <dalla_mannen@hotmail.com> wrote:
> 
>> From: Dallas <dalla_mannen@hotmail.com>
>> Subject: NoClassDefFoundError deploying on UNIX, not Windows
>> To: user@struts.apache.org
>> Date: Thursday, October 23, 2008, 7:20 AM
>> Hi all!
>> 
>> I´m having some trouble deploying one of my application on
>> a Unix machine.
>> The application uses EJB3 beans, and the server log seems
>> to indicate that
>> Jboss (4.2.2) deployer cannot
>> find my EJB3 classes. How can this be? It works perfectly
>> when deployed on
>> windows.
>> 
>> I´ve seen some issues regarding class paths, and unix
>> being case sensetive,
>> but I haven´t been able to relate these errors to this
>> one. Might be wrong
>> though... 
>> 
>> Any clues? Please see the log below:
>> 
>> 2008-10-22 06:39:48,987 INFO 
>> [org.jboss.deployment.EARDeployer] Init J2EE
>> application:
>> file:/apps/jboss-4.2.2/server/default/deploy/SupplierDatabase.ear/
>> 2008-10-22 06:39:49,070 WARN 
>> [org.jboss.system.ServiceController] Problem
>> creating service
>> jboss.j2ee:service=EJB3,module=SupplierDatabaseEJB.jar
>> java.lang.NoClassDefFoundError:
>> se/ahlens/intranet/apps/supplierdatabase/CostAndErrorsFacadeLocal
>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> 	at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> 	at
>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>> 	at
>> java.net.URLClassLoader.access$000(URLClassLoader.java:56)
>> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>> 	at java.security.AccessController.doPrivileged(Native
>> Method)
>> 	at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> 	at
>> org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682)
>> 	at
>> org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> 	at
>> org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
>> 	at
>> org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
>> 	at
>> org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
>> 	at
>> org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
>> 	at
>> org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> 	at
>> org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293)
>> 	at
>> org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138)
>> 	at
>> org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)
>> 	at
>> org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)
>> 	at
>> org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423)
>> 	at
>> org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384)
>> 	at
>> org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)
>> 	at
>> org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
>> 	at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
>> 	at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
>> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
>> Source)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>> 	at $Proxy0.create(Unknown Source)
>> 	at
>> org.jboss.system.ServiceController.create(ServiceController.java:330)
>> 	at
>> org.jboss.system.ServiceController.create(ServiceController.java:273)
>> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown
>> Source)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>> 	at $Proxy33.create(Unknown Source)
>> 	at
>> org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> 	at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>> 	at
>> org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
>> 	at
>> org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
>> 	at
>> org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)
>> 	at
>> org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
>> 	at
>> org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>> 	at $Proxy34.create(Unknown Source)
>> 	at
>> org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
>> 	at
>> org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
>> 	at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
>> 	at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
>> 	at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown
>> Source)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>> 	at $Proxy9.deploy(Unknown Source)
>> 	at
>> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
>> 	at
>> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
>> 	at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
>> 	at
>> org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
>> 	at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
>> 	at
>> org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
>> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
>> Source)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
>> 	at $Proxy0.start(Unknown Source)
>> 	at
>> org.jboss.system.ServiceController.start(ServiceController.java:417)
>> 	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown
>> Source)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>> 	at $Proxy4.start(Unknown Source)
>> 	at
>> org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
>> 	at
>> org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
>> 	at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
>> 	at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
>> 	at
>> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> 	at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 	at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
>> 	at
>> org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>> 	at
>> org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
>> 	at
>> org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>> 	at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>> 	at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>> 	at
>> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>> 	at $Proxy5.deploy(Unknown Source)
>> 	at
>> org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
>> 	at
>> org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
>> 	at org.jboss.Main.boot(Main.java:200)
>> 	at org.jboss.Main$1.run(Main.java:508)
>> 	at java.lang.Thread.run(Thread.java:619)
>> 2008-10-22 06:39:49,129 INFO  [org.jboss.ejb3.EJB3Deployer]
>> Deployed:
>> file:/apps/jboss-4.2.2/server/default/deploy/SupplierDatabase.ear/SupplierDatabaseEJB.jar/
>> 2008-10-22 06:39:49,138 INFO 
>> [org.jboss.web.tomcat.service.TomcatDeployer]
>> deploy, ctxPath=/SupplierDatabaseWeb,
>> warUrl=.../deploy/SupplierDatabase.ear/SupplierDatabaseWeb.war/
>> 2008-10-22 06:39:49,395 INFO 
>> [org.displaytag.filter.ResponseOverrideFilter]
>> Filter initialized. Response buffering is enabled
>> 2008-10-22 06:39:49,652 INFO 
>> [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
>> Parsing
>> configuration file [struts-default.xml]
>> 2008-10-22 06:39:49,851 INFO 
>> [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
>> Parsing
>> configuration file [struts-plugin.xml]
>> 2008-10-22 06:39:49,895 INFO 
>> [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
>> Parsing
>> configuration file [struts.xml]
>> 2008-10-22 06:39:50,750 INFO 
>> [com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory]
>> Setting
>> DefaultObjectTypeDeterminer as default ...
>> 2008-10-22 06:39:50,800 INFO 
>> [org.jboss.deployment.EARDeployer] Started
>> J2EE application:
>> file:/apps/jboss-4.2.2/server/default/deploy/SupplierDatabase.ear/
>> 2008-10-22 06:39:50,803 ERROR
>> [org.jboss.deployment.scanner.URLDeploymentScanner]
>> Incomplete Deployment
>> listing:
>> 
>> --- MBeans waiting for other MBeans ---
>> ObjectName:
>> jboss.j2ee:service=EJB3,module=SupplierDatabaseEJB.jar
>>   State: FAILED
>>   Reason: java.lang.NoClassDefFoundError:
>> se/ahlens/intranet/apps/supplierdatabase/CostAndErrorsFacadeLocal
>> 
>> --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
>> ObjectName:
>> jboss.j2ee:service=EJB3,module=SupplierDatabaseEJB.jar
>>   State: FAILED
>>   Reason: java.lang.NoClassDefFoundError:
>> se/ahlens/intranet/apps/supplierdatabase/CostAndErrorsFacadeLocal
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/NoClassDefFoundError-deploying-on-UNIX%2C-not-Windows-tp20128983p20128983.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/NoClassDefFoundError-deploying-on-UNIX%2C-not-Windows-tp20128983p20130372.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message