0 Replies Latest reply on Dec 7, 2005 1:47 AM by Sreedhar Reddy

    Not able to Deploy Java Application in Jboss

    Sreedhar Reddy Newbie

      Hi,
      We are using JDK1.5, Eclips, Struts and Hybernate. I am trying to deploy the application in Jboss it is displaying some of the erros.same application i can able to deploy in Tomcat.Why I am not able to deplay can any body help me out regarding this.

      These are the errors getting in Jboss Console.

      C:\jboss-4.0.2\bin>run -c mifos
      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\jboss-4.0.2\bin\\..
      .
      JAVA: C:\Program Files\Java\jdk1.5.0_01\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      .
      CLASSPATH: C:\Program Files\Java\jdk1.5.0_01\lib\tools.jar;C:\jboss-4.0.2\bin\
      \run.jar
      .
      ===============================================================================
      .
      11:55:29,808 INFO [Server] Starting JBoss (MX MicroKernel)...
      11:55:29,818 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_
      4_0_2 date=200505022023)
      11:55:29,818 INFO [Server] Home Dir: C:\jboss-4.0.2
      11:55:29,818 INFO [Server] Home URL: file:/C:/jboss-4.0.2/
      11:55:29,818 INFO [Server] Library URL: file:/C:/jboss-4.0.2/lib/
      11:55:29,818 INFO [Server] Patch URL: null
      11:55:29,818 INFO [Server] Server Name: mifos
      11:55:29,828 INFO [Server] Server Home Dir: C:\jboss-4.0.2\server\mifos
      11:55:29,838 INFO [Server] Server Home URL: file:/C:/jboss-4.0.2/server/mifos/
      11:55:29,848 INFO [Server] Server Data Dir: C:\jboss-4.0.2\server\mifos\data
      11:55:29,858 INFO [Server] Server Temp Dir: C:\jboss-4.0.2\server\mifos\tmp
      11:55:29,908 INFO [Server] Server Config URL: file:/C:/jboss-4.0.2/server/mifos
      /conf/
      11:55:29,918 INFO [Server] Server Library URL: file:/C:/jboss-4.0.2/server/mifo
      s/lib/
      11:55:29,938 INFO [Server] Root Deployment Filename: jboss-service.xml
      11:55:29,958 INFO [Server] Starting General Purpose Architecture (GPA)...
      11:55:31,731 INFO [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc.
      11:55:31,731 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_01-b08
      ,Sun Microsystems Inc.
      11:55:31,731 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
      11:55:34,645 INFO [Server] Core system initialized
      11:55:45,611 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
      ce:log4j.xml
      11:55:46,111 INFO [WebService] Using RMI server codebase: http://aditi292:8083/

      11:55:47,543 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=
      1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server Socket
      Factory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      11:56:10,166 INFO [SnmpAgentService] SNMP agent going active
      11:56:14,041 INFO [DefaultPartition] Initializing
      11:56:14,442 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is 172.16.201.167:1423 (additional data: 19 bytes)
      -------------------------------------------------------
      11:56:16,555 INFO [DefaultPartition] Number of cluster members: 1
      11:56:16,565 INFO [DefaultPartition] Other members: 0
      11:56:16,575 INFO [DefaultPartition] Fetching state (will wait for 30000 millis
      econds):
      11:56:16,595 INFO [DefaultPartition] New cluster view for partition DefaultPart
      ition (id: 0, delta: 0) : [172.16.201.167:1099]
      11:56:16,615 INFO [DefaultPartition] I am (null) received membershipChanged eve
      nt:
      11:56:16,625 INFO [DefaultPartition] Dead members: 0 ([])
      11:56:16,635 INFO [DefaultPartition] New Members : 0 ([])
      11:56:16,645 INFO [DefaultPartition] All Members : 1 ([172.16.201.167:1099])
      11:56:16,936 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, bac
      klog=50, bindAddress=/0.0.0.0
      11:56:16,976 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.
      0.0.0:1102, group=230.0.0.4, HA-JNDI address=172.16.201.167:1100
      11:56:23,575 INFO [orb] ORB run
      11:56:24,026 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6
      D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000
      0000200000000000000E0000102000000000F3137322E31362E3230312E31363700000DC80000000
      000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A4
      14300000000010000001C00000000000100010000000105010001000101090000000105010001000
      000210000005400000000000000010000000000000024000000220000007E0000000000000001000
      0000F3137322E31362E3230312E31363700000DC9000000000000000000000000000000000000000
      0000000000000000000000000002000000004000000000000001F000000040000000300000001000
      0002000000000000000020000002000000004000000000000001F0000000400000003]
      11:56:24,577 INFO [CorbaTransactionService] TransactionFactory: [IOR:0000000000
      00003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E46616374
      6F72794578743A312E30000000000200000000000000E0000102000000000F3137322E31362E3230
      312E31363700000DC80000000000144A426F73732F5472616E73616374696F6E732F460000000500
      00000000000008000000004A414300000000010000001C0000000000010001000000010501000100
      01010900000001050100010000002100000054000000000000000100000000000000240000002200
      00007E00000000000000010000000F3137322E31362E3230312E31363700000DC900000000000000
      00000000000000000000000000000000000000000000000000002000000004000000000000001F00
      00000400000003000000010000002000000000000000020000002000000004000000000000001F00
      00000400000003]
      11:56:29,243 INFO [MailService] Mail Service bound to java:/Mail
      11:56:30,665 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mc
      ast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.7;mcast_port=45577;mcast_rec
      v_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send
      _buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_t
      hread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPEC
      T(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=fals
      e;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=f
      alse):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_si
      ze=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false
      ):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_t
      imeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRAN
      SFER(down_thread=true;up_thread=true)
      11:56:30,876 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      11:56:30,906 INFO [TreeCache] cache mode is REPL_ASYNC
      11:56:31,146 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is 172.16.201.167:1428
      -------------------------------------------------------
      11:56:33,199 INFO [TreeCache] viewAccepted(): new members: [172.16.201.167:1428
      ]
      11:56:33,219 INFO [TreeCache] new cache is null (maybe first member in cluster)

      11:56:33,229 INFO [TreeCache] state could not be retrieved (must be first membe
      r in group)
      11:56:34,110 INFO [Embedded] Catalina naming disabled
      11:56:35,973 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0
      -8080
      11:56:35,993 INFO [Catalina] Initialization processed in 1592 ms
      11:56:36,013 INFO [StandardService] Starting service jboss.web
      11:56:36,043 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9

      11:56:36,263 INFO [StandardHost] XML validation disabled
      11:56:36,434 INFO [Catalina] Server startup in 431 ms
      11:56:37,045 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/jb
      oss-4.0.2/server/mifos/deploy/httpha-invoker.sar/invoker.war/
      11:56:38,637 INFO [WebappLoader] Dual registration of jndi stream handler: fact
      ory already defined
      11:56:40,910 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/jbos
      s-4.0.2/server/mifos/tmp/deploy/tmp63771jboss-ws4ee-exp.war/
      11:56:41,801 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/jboss-4.0
      .2/server/mifos/deploy/jbossweb-tomcat55.sar/ROOT.war/
      11:56:42,623 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=file:/C:/jbos
      s-4.0.2/server/mifos/deploy/juddi-service.sar/juddi.war/
      11:56:45,246 INFO [RegistryServlet] Loading jUDDI configuration.
      11:56:45,266 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prope
      rties
      11:56:45,276 INFO [RegistryServlet] Initializing jUDDI components.
      11:56:48,211 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C
      :/jboss-4.0.2/server/mifos/deploy/management/console-mgr.sar/web-console.war/
      11:56:51,145 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file
      :/C:/jboss-4.0.2/server/mifos/deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-
      httpil.war/
      11:56:53,338 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/jboss-ha-local-jdbc.rar
      11:56:54,029 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/jboss-ha-xa-jdbc.rar
      11:56:54,640 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/jboss-local-jdbc.rar
      11:56:55,271 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/jboss-xa-jdbc.rar
      11:56:55,811 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/jms/jms-ra.rar
      11:56:56,342 INFO [RARDeployment] Required license terms exist view the META-IN
      F/ra.xml: file:/C:/jboss-4.0.2/server/mifos/deploy/mail-ra.rar
      11:57:00,108 INFO [WrapperDataSourceService] Bound connection factory for resou
      rce adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Defa
      ultDS to JNDI name 'java:DefaultDS'
      11:57:01,580 INFO [A] Bound to JNDI name: queue/A
      11:57:01,600 INFO [B] Bound to JNDI name: queue/B
      11:57:01,620 INFO [C] Bound to JNDI name: queue/C
      11:57:01,630 INFO [D] Bound to JNDI name: queue/D
      11:57:01,650 INFO [ex] Bound to JNDI name: queue/ex
      11:57:01,740 INFO [testTopic] Bound to JNDI name: topic/testTopic
      11:57:01,760 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      11:57:01,780 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

      11:57:01,800 INFO [testQueue] Bound to JNDI name: queue/testQueue
      11:57:03,813 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
      0.0:8093
      11:57:04,003 INFO [DLQ] Bound to JNDI name: queue/DLQ
      11:57:04,925 INFO [ConnectionFactoryBindingService] Bound connection factory fo
      r resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBin
      ding,name=JmsXA to JNDI name 'java:JmsXA'
      11:57:38,773 INFO [TomcatDeployer] deploy, ctxPath=/Mifos, warUrl=file:/C:/jbos
      s-4.0.2/server/mifos/tmp/deploy/tmp63823Mifos-exp.war/
      11:57:42,018 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.group.util.resources.GroupUIReso
      urces
      11:57:42,108 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.framework.util.resources.ExceptionResources
      11:57:42,118 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.meeting.util.resources.Meeting
      11:57:42,128 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.personnel.util.resources.Personn
      elUIResources
      11:57:42,148 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.customer.util.resources.Customer
      SearchUIResources
      11:57:42,168 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.office.util.resources.Office
      11:57:42,178 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.framework.util.resources.UIResources
      11:57:42,198 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.login.util.resources.LoginUIReso
      urces
      11:57:42,218 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.center.util.resources.CenterUIRe
      sources
      11:57:42,228 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.customer.util.resources.Customer
      UIResources
      11:57:42,248 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.client.util.resources.ClientUIRe
      sources
      11:57:42,268 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.productdefinition.util.resources
      .ProductDefinitionResources
      11:57:42,288 INFO [STDOUT] The load for the MifosPropertyMessageResourcesFactor
      y is called with config - org.mifos.application.loan.util.resources.LoanUIResour
      ces
      11:57:42,449 INFO [STDOUT] Inside the logger initialization
      11:57:42,499 INFO [STDOUT] The file name is org\mifos\framework\util\resources\
      loggerresources\loggerconfiguration.xml
      11:57:42,539 INFO [STDOUT] URL loading by parent failed


      And this is the error i am getting in browser


      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.apache.jasper.JasperException: Unable to load class for JSP
      org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:591)
      org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      java.lang.ClassNotFoundException: org.apache.jsp.pages.application.login.jsp.login_jsp
      java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      java.security.AccessController.doPrivileged(Native Method)
      java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:158)
      org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
      org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
      org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.


      --------------------------------------------------------------------------------

      Apache Tomcat/5.5



      Thanks,
      Sreedhar