• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

JBOSS 5.1 - Not Loading Servlet Classes

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working on a bit of code in JBOSS 5.1 and looking for some feedback/help.

Helping to deploy some legacy code and having a bit of trouble. I am in the middle of migrating to JBOSS 6.2 from 5.1, but trying to get the 5.1 up and running locally. I am using the Default in 5.1 to deply the ear.

First I am pulling the code from a SVN repo and generating an ear from the current code base using eclipse. I have JBOSS 5.1 installed and when starting up JBOSS alone all seems to run fine. I then am moving the ear to JBOSS to execute the code, but am seeing an error in JBOSS. I am including the error below along with the file structure. Any advice or help with troubleshooting would be great.

The current file structure is as such:

Java Source

Web Content
.jsp files...

Web Deploy
build.xml (ant to create war and ear)



10:15:28,703 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:15:28,703 INFO [ServerImpl] Release ID: JBoss [EAP] 5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201111102209)
10:15:28,704 INFO [ServerImpl] Bootstrap URL: null
10:15:28,704 INFO [ServerImpl] Home Dir: C:\jboss51-CCAS
10:15:28,704 INFO [ServerImpl] Home URL: file:/C:/jboss51-CCAS/
10:15:28,704 INFO [ServerImpl] Library URL: file:/C:/jboss51-CCAS/lib/
10:15:28,704 INFO [ServerImpl] Patch URL: null
10:15:28,704 INFO [ServerImpl] Common Base URL: file:/C:/jboss51-CCAS/common/
10:15:28,704 INFO [ServerImpl] Common Library URL: file:/C:/jboss51-CCAS/common/lib/
10:15:28,704 INFO [ServerImpl] Server Name: default
10:15:28,704 INFO [ServerImpl] Server Base Dir: C:\jboss51-CCAS\server
10:15:28,705 INFO [ServerImpl] Server Base URL: file:/C:/jboss51-CCAS/server/
10:15:28,705 INFO [ServerImpl] Server Config URL: file:/C:/jboss51-CCAS/server/default/conf/
10:15:28,705 INFO [ServerImpl] Server Home Dir: C:\jboss51-CCAS\server\default
10:15:28,705 INFO [ServerImpl] Server Home URL: file:/C:/jboss51-CCAS/server/default/
10:15:28,705 INFO [ServerImpl] Server Data Dir: C:\jboss51-CCAS\server\default\data
10:15:28,705 INFO [ServerImpl] Server Library URL: file:/C:/jboss51-CCAS/server/default/lib/
10:15:28,705 INFO [ServerImpl] Server Log Dir: C:\jboss51-CCAS\server\default\log
10:15:28,705 INFO [ServerImpl] Server Native Dir: C:\jboss51-CCAS\server\default\tmp\native
10:15:28,705 INFO [ServerImpl] Server Temp Dir: C:\jboss51-CCAS\server\default\tmp
10:15:28,705 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss51-CCAS\server\default\tmp\deploy
10:15:29,126 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss51-CCAS/server/default/conf/bootstrap.xml
10:15:29,420 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:15:29,422 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:15:29,552 INFO [CopyMechanism] VFS temp dir: C:\jboss51-CCAS\server\default\tmp
10:15:29,560 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:15:30,028 INFO [ServerInfo] Java version: 1.6.0_65,Sun Microsystems Inc.
10:15:30,028 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_65-b14)
10:15:30,028 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 20.65-b04,Sun Microsystems Inc.
10:15:30,028 INFO [ServerInfo] OS-System: Windows 7 6.1,x86
10:15:30,030 INFO [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss EAP 5.x Runtime Server -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=C:\jboss51-CCAS\lib\endorsed -Dfile.encoding=Cp1252
10:15:30,048 INFO [JMXKernel] Legacy JMX core initialized
10:15:31,899 INFO [WebService] Using RMI server codebase: http://localhost:8083/
10:15:34,251 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
10:15:34,251 INFO [NativeServerConfig] 3.1.2.SP11
10:15:34,838 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@14fcd9a[ defaultDomain='jboss' ]
10:15:38,457 INFO [MailService] Mail Service bound to java:/Mail
10:15:38,872 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
10:15:39,749 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA_CP12) - JBoss Inc.
10:15:39,749 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
10:15:39,890 INFO [TransactionManagerService] Initializing recovery manager
10:15:39,966 INFO [TransactionManagerService] Recovery manager configured
10:15:39,967 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
10:15:39,983 INFO [TransactionManagerService] Starting transaction recovery manager
10:15:40,232 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;native;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\oracle\product\11.2.0\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Enterprise Vault\EVClient\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\sa102k\Documents\software\eclipse-jee-kepler-SR1-win32\eclipse;;.
10:15:40,286 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
10:15:40,287 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
10:15:40,299 INFO [StandardService] Starting service jboss.web
10:15:40,301 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.12.GA-patch-01
10:15:40,330 INFO [Catalina] Server startup in 42 ms
10:15:40,342 INFO [TomcatDeployment] deploy, ctxPath=/invoker
10:15:40,977 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
10:15:41,002 INFO [TomcatDeployment] deploy, ctxPath=/web-console
10:15:41,170 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/jboss51-CCAS/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
10:15:41,179 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/jboss51-CCAS/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
10:15:41,185 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/jboss51-CCAS/server/default/deploy/jms-ra.rar/META-INF/ra.xml
10:15:41,193 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/jboss51-CCAS/server/default/deploy/mail-ra.rar/META-INF/ra.xml
10:15:41,209 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/jboss51-CCAS/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
10:15:41,268 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
10:15:41,284 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
10:15:41,286 INFO [RAMJobStore] RAMJobStore initialized.
10:15:41,286 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
10:15:41,286 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
10:15:41,288 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
10:15:41,556 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
10:15:42,087 INFO [ServerPeer] JBoss Messaging 1.4.8.SP5 server [0] started
10:15:42,147 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:15:42,148 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
10:15:42,153 INFO [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
10:15:42,153 INFO [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
10:15:42,182 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
10:15:42,182 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@17860a1 started
10:15:42,183 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
10:15:42,183 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@f9e89d started
10:15:42,184 INFO [ConnectionFactory] Connector bisocket://localhost:4457 has leasing enabled, lease period 10000 milliseconds
10:15:42,184 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@8f8dad started
10:15:42,243 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
10:15:42,320 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
10:15:42,392 INFO [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/admin-console'
10:15:43,926 INFO [TomcatDeployment] deploy, ctxPath=/
10:15:43,961 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
10:15:43,990 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: ccservlet.CcServlet
10:15:43,990 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: otServlet.Otservlet
10:15:44,396 INFO [TomcatDeployment] deploy, ctxPath=/ccas
10:15:44,481 WARN [TomcatDeployment] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperMBean
10:15:44,500 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey@31ca2b[domain=default, server=default, name=default]
10:15:44,505 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
10:15:44,521 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
10:15:44,525 INFO [ServerImpl] JBoss (Microcontainer) [5.1.2 (build: SVNTag=JBPAPP_5_1_2 date=201111102209)] Started in 15s:818ms

Posts: 21817
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, I'd migrate to JBoss 6.3 if possible. It's been out for quite a while already.

Where are the class files for these two servlets located inside your WAR?
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!