Moving from Glassfish 3.1 to JBoss 6.2.0, error while deploying war
patou Jun 12, 2014 11:29 AMHi!
Our company develops several web applications on Glassfish and we have to move one of them from Glassfish to JBoss EAP 6.2.
We have Ant scripts that setup, start and deploy the applications on the correct domains on Glassfish, and I never really used JBoss, so I tried doing all the steps manually with the administration console to see if the deployment would work. The next step would then to make a CLI script to do it automatically.
Our application uses one XADatasource, one ear deployed on a different domain and a business-ear deployed on the same domain than the presentation-war.
I tried adding the XADatasource manually, tried the connection within the administration console and it was a success. I'm not exactly sure how domains work on JBoss, so I just deployed manually all the ear/war on the same port. I then enabled all of them. It was all a success except the presentation.war, which is the application we used to launch on Glassfish. This is the server.log error :
11:03:10,430 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "medrec-web" (runtime-name: "medrec")
11:03:10,521 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit.medrec.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit.medrec.INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "medrec"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS012650: Failed to load annotated class: org.mcgill.phire.jsf.tags.Tooltip
at org.jboss.as.jsf.deployment.JSFAnnotationProcessor.deploy(JSFAnnotationProcessor.java:115)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
... 5 more
11:03:10,530 ERROR [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS015870: Deploy of deployment "medrec" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.medrec.INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.medrec.INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"medrec\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS012650: Failed to load annotated class: org.mcgill.phire.jsf.tags.Tooltip"}}
11:03:10,536 INFO [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015877: Stopped deployment medrec-web (runtime-name: medrec) in 6ms
I tried removing all uses of the custom tag in the code, and the error switched to the next tag in the code, so that's not the correct way to do it. The application deploys correctly on Glassfish.
Some more info: I'm new to the company and web apps development, so I still have some trouble understanding Glassfish and all (and my task was to migrate it to Jboss!), but I'll do my best to provide you guys with more information if needed.
Glassfish version: 3.1
Jboss EAP version: 6.2
Java JDK : 1.6u45
OS : Windows 7 64 bits (deploying it locally)
DB : Oracle 11g (I deployed the .jar driver with the deployment tools on Jboss)
Thanks!