This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Troublesome EAR file deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Troublesome EAR file deployment" Watch "Troublesome EAR file deployment" New topic
Author

Troublesome EAR file deployment

Liz Costello
Greenhorn

Joined: Apr 23, 2007
Posts: 2
Hi,

I'm trying to move an ear file from a JBoss AS on a Windows computer to a JBoss AS on a Linux machine. I have tried deploying it as an ear file and as an exploded ear file - neither seems to throw an error but I can't get access to the content. And the server is definitely running - I had to do a Jems command line install though because I don't have local access to the Linux box.

The printout from starting the server is below and the exploded ear file is called BioMechApp.ear

If anyone spots anything obvious I would be very grateful for the info.

Regards


root@www:/usr/local/jboss/jboss-4.0.4/bin# sh run.sh
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/local/jboss/jboss-4.0.4

JAVA: /usr/local/java/jdk1.6.0_01/bin/java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /usr/local/jboss/jboss-4.0.4/bin/run.jar:/usr/local/java/jdk1.6.0_01/lib/tools.jar

=========================================================================

20:26:39,954 INFO [Server] Starting JBoss (MX MicroKernel)...
20:26:39,956 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
20:26:39,959 INFO [Server] Home Dir: /usr/local/jboss/jboss-4.0.4
20:26:39,959 INFO [Server] Home URL: file:/usr/local/jboss/jboss-4.0.4/
20:26:39,961 INFO [Server] Patch URL: null
20:26:39,961 INFO [Server] Server Name: default
20:26:39,962 INFO [Server] Server Home Dir: /usr/local/jboss/jboss-4.0.4/server/default
20:26:39,962 INFO [Server] Server Home URL: file:/usr/local/jboss/jboss-4.0.4/server/default/
20:26:40,014 INFO [Server] Server Log Dir: /usr/local/jboss/jboss-4.0.4/server/default/log
20:26:40,015 INFO [Server] Server Temp Dir: /usr/local/jboss/jboss-4.0.4/server/default/tmp
20:26:40,015 INFO [Server] Root Deployment Filename: jboss-service.xml
20:26:40,778 INFO [ServerInfo] Java version: 1.6.0_01,Sun Microsystems Inc.
20:26:40,778 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_01-b06,Sun Microsystems Inc.
20:26:40,779 INFO [ServerInfo] OS-System: Linux 2.4.29,i386
20:26:42,045 INFO [Server] Core system initialized
20:26:46,627 INFO [WebService] Using RMI server codebase: http://www.mme.tcd.ie:8083/
20:26:46,678 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
20:26:59,091 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
20:27:01,604 INFO [Embedded] Catalina naming disabled
20:27:01,700 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
20:27:01,703 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
20:27:02,369 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
20:27:02,372 INFO [Catalina] Initialization processed in 669 ms
20:27:02,373 INFO [StandardService] Starting service jboss.web
20:27:02,379 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
20:27:02,546 INFO [StandardHost] XML validation disabled
20:27:02,625 INFO [Catalina] Server startup in 252 ms
20:27:03,329 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
20:27:04,379 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
20:27:05,369 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
20:27:05,669 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp15802jbossws-context-exp.war/
20:27:06,112 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
20:27:08,758 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
20:27:10,136 INFO [MailService] Mail Service bound to java:/Mail
20:27:11,393 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
20:27:11,561 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
20:27:11,688 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
20:27:11,818 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
20:27:11,931 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
20:27:12,002 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
20:27:14,434 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
20:27:14,986 INFO [A] Bound to JNDI name: queue/A
20:27:14,990 INFO [B] Bound to JNDI name: queue/B
20:27:14,994 INFO [C] Bound to JNDI name: queue/C
20:27:14,998 INFO [D] Bound to JNDI name: queue/D
20:27:15,002 INFO [ex] Bound to JNDI name: queue/ex
20:27:15,078 INFO [testTopic] Bound to JNDI name: topic/testTopic
20:27:15,083 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
20:27:15,092 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
20:27:15,101 INFO [testQueue] Bound to JNDI name: queue/testQueue
20:27:15,213 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
20:27:15,311 INFO [DLQ] Bound to JNDI name: queue/DLQ
20:27:15,607 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
20:27:15,714 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
20:27:16,075 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss/jboss-4.0.4/server/default/deploy/BioMechApp.ear/
20:27:17,127 INFO [EjbModule] Deploying User
20:27:17,986 INFO [ProxyFactory] Bound EJB Home 'User' to jndi 'ejb/User'
20:27:17,990 INFO [EJBDeployer] Deployed: file:/usr/local/jboss/jboss-4.0.4/server/default/deploy/BioMechApp.ear/BioMechEJB.jar/
20:27:18,242 INFO [TomcatDeployer] deploy, ctxPath=/mscbiomech, warUrl=.../deploy/BioMechApp.ear/BioMechWeb.war/
20:27:19,779 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
20:27:19,792 WARN [TomcatDeployer] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/CacheException
20:27:19,962 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss/jboss-4.0.4/server/default/deploy/BioMechApp.ear/
20:27:20,448 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
20:27:21,094 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
20:27:21,289 INFO [JkMain] Jk running ID=0 time=0/250 config=null
20:27:21,482 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 41s:462ms
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

20:27:17,990 INFO [EJBDeployer] Deployed: file:/usr/local/jboss/jboss-4.0.4/server/default/deploy/BioMechApp.ear/BioMechEJB.jar/
20:27:18,242 INFO [TomcatDeployer] deploy, ctxPath=/mscbiomech, warUrl=.../deploy/BioMechApp.ear/BioMechWeb.war/
20:27:19,779 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
20:27:19,792 WARN [TomcatDeployer] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/CacheException
20:27:19,962 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss/jboss-4.0.4/server/default/deploy/BioMechApp.ear/


Looks like it deployed. Have you tried to go into the web-console or jmx-console to see if you see it there?

mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Liz Costello
Greenhorn

Joined: Apr 23, 2007
Posts: 2
Hi Mark,

Thanks so much for your reply - I got tied up with some other work this week, I'm only getting back to this problem now.

I had a look at the web-console and jmx-console; the ear, war and jar files are all there. (Thanks for suggesting these tools, I am new to J2EE & JBoss and I wasn't aware these existed).

I have since discovered that I can access html files in the EAR file, so as you already mentioned it appears to have deployed fine. However, I still can't see the JSPs, so at the moment I am assuming it's a Java related problem.

I have found a three errors (below) in the server.log file, if you happen to recognise the cause of any of these I'd be very grateful for any info - thanks again for your help and your reply.







[ April 27, 2007: Message edited by: Liz Costello ]
[ April 27, 2007: Message edited by: Liz Costello ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Troublesome EAR file deployment
 
Similar Threads
Unable to find a cluster rule set error
4.2.3 issues with Mac OS X (JDK 1.6)
Running JBoss Project in Debug Mode
jboss 4.2.3 problem
OutOfMemoryError: java heap size while starting jboss4.2.2 in solaris