Deploy the war/ear into the JBoss5.1 and GlassFish2.1

  6 posts   Feedicon  
Replies: 5 - Last Post: June 12, 2011 05:44
by: edwin_uestc
showing 1 - 6 of 6
 
Posted: June 08, 2011 13:48 by edwin_uestc
About my system:
Windows XP32 bit
JDK 1.6.0_24
Maven version 3.0.3
JBoss5.1GA
GlassFish Application Server2.1.1
set OPENEMPI_HOME system property to the directory where I unzip the binary openempi-2.1.2-openempi.zip
I have downloaded the openempi-2.1.2-openempi.zip from website,and decide to deploy the war/ear into JBoss5.1 and GlassFish2.1
at first when I just copy dist/openempi-webapp-web-${version}.war to the application server's deployment directory
yes I could get the login screen for the OpenEMPI administration application from http://localhost:8080/openempi-admin/
but I get a log locate in the OPENEMPI_HOME directory where I unzip the binary openempi-2.1.2-openempi.zip just like openempi_jboss5.1_binarydeploy_log.log http://dl.dbank.com/c0y0smdlj4
it seems something is wrong with 'auditEventService'
when I just copy dist/openempi--${version}.ear to the application server's deployment directory,there is not any log in the the OPENEMPI_ROOT directory,I find the log from the JBOSS_HOME/jboss-5.1.0.GA\server\default\log like this openrmpi_jboss5.1_binaryeardeploy_log.loghttp://dl.dbank.com/c05qfex7cv
when I deploy war into GlassFish,a failed log like this openempi_glassfish_delpoywarlog
http://dl.dbank.com/c0xro2kuky
when I deploy ear into into GlassFish,a failed log like this openempi_glassfish_delpoyearloghttp://dl.dbank.com/c0arx0lvf0
does anyone try these any help will be appreciated
I have collected some material and write this document and I want to make up it so you will not waste time to fix some problem http://dl.dbank.com/c0j6nuhbty
 
Posted: June 08, 2011 15:21 by Csaba Toth
Hi Edwin,

I have several suggestions:
1. Use only JBoss 4.2.3 at this point. Earlier I also tried to use JBoss 5.1.0, but I ran into trouble running tests (http://kenai.com/projects/openempi/forums/developer-forum/topics/3184-Towards-JBoss-5-1-0GA).

2. I believe from the logs that you might have some problem with the database schema. If you try to deploy openempi 2.1.2, it is very important to have the database schema matching the 2.1.2 needs. 2.1.3's or 2.1.1's schema is (or can be) a little different. If the underlying DB schema is different, then you get exceptions during the early initialization phase from the persistence layer (Hibernate). I see that the audit DAO layer cannot execute some query, that must be some problem with the DB schema.
I can also imagine, that during the tries maybe you forgot to add the schema.

3. I have no experience with deploying it to GlassFIsh, but I know from the forums that others were successful with that. Fixing the DB schema hopefully will fix that also.

Fixing the DB schema: run the schema deletion sql script (the proper version's). Then execute the needed version's script. If the deletion script run onto some error, delete things by hand. You have to delete things before you run the schema creation sql script again.

Let me know what happens,
Csaba
 
Posted: June 09, 2011 09:36 by edwin_uestc
1.I manually delete all tables and re-create the schema using SQL script located in the OPENEMPI_HOME/conf.
JBoss4.2.3 seems work well.but JBoss5.1 still not .I find some interesting topic about migrating from Jboss4.2 to 5,
https://issues.jboss.org/browse/EJBTHREE-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12453872#action_12453872
I have tried the two ways but I really know little about EJB JPA itself and using by OpenEMPI.
 
Posted: June 11, 2011 17:26 by Csaba Toth
Hmmm, very interesting find. I can see that "Specification violation" exception in your 5.1.0 deploy logs. I have to try it by myself to see more. When I tried 5.1.0 long time ago I don't remember problems with deployment, but I couldn't run tests. I want to switch to 5.1.0 also, because it's easier to configure SSL and my software has multiple components, I want SSL connections between them.
 
Posted: June 12, 2011 05:44 by edwin_uestc
what Odysseas reply to my email
"At this point only JBoss 4.2.3 is supported. We have successfully
deployed on other servers but we officially only support 4.2.3 for now
(see http://kenai.com/projects/openempi/pages/InstallationInstructions).
The war file has been deployed on Glassfish, JBoss 5.x, WebLogic 10, but
we don't have resources to document support on every app server.
"
 
Posted: June 08, 2011 15:27 by Csaba Toth
Another advise: Since you (and probably everybody) has Java 6 environment, I would download the jdk6 version of Jboss 4.2.3!
http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/

Little off topic for the development IDE:
I used an ancient 0.9.7 version m2eclipse Sonatype Maven plugin for a long time.
I did a dist upgrade on my Ubuntu 2 days ago, and I reinstalled my Eclipse. I simply took the J2EE edition of Helios SR2, I don't use the Ubuntu repo. And now I managed to get work the 0.12 version of Sonatype m2eclipse with OpenEMPI project. Yay.
BTW, m2eclipse will be taken over by eclipse.org, it'll become m2e.
showing 1 - 6 of 6
Replies: 5 - Last Post: June 12, 2011 05:44
by: edwin_uestc
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close