This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Deployment on JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

Deployment on JBoss

Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Is there a difference between the way applications should be deployed on JBoss 3 and 4?

I am asking since I am trying to follow an EJB tutorial over JBoss 3.0.

The tutorial has been written for JBoss 3.0 but I am using jboss-4.0.5.GA.

I was wondering if this is the reason I am getting the following error while trying to use the bean in the jsp file:



We must know, we will know. -- David Hilbert
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Is there a difference between the way applications should be deployed on JBoss 3 and 4?


No, there's no difference. The exception might have to do with something else.


[My Blog] [JavaRanch Journal]
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Here is the error message when I add the .ear file to the deploy directory. Can anyone see what the problem is???

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

22:26:51,854 WARN [ServiceController] Problem creating service jboss.j2ee:service=EjbModule,module=example.jarjavax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=ejb/test/MyTestSessionBean,service=EJB already registered.


Looks like that EJB is already deployed or maybe you have more than one ejbs which have the same jndi name. Make sure the ejb-jar.xml and jboss.xml in the example.jar are correct. In case you have a hard time figuring out any issues with these files, then post the contents of those files and the application.xml
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Yes I have noticed just after I sent this message......

So I removed both the previously deployed apps, and deployed only the new one.
I think I am getting the error on calculator.jsp, where it tries to use calc (is there a way I can verify from the logs where in calculator.jsp the problem is???)




The error message is:


[ March 14, 2007: Message edited by: Joseph Sweet ]
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Any idea someone?

Is there a way to figure out from that cryptic error message what the problem is?


Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

See if there's more logs in the server.log file in %JBOSS_HOME%/server/default/log folder. If not then you might have to step through that code in the jsp line by line and maybe figure what the exception is.
sridhar addanki
Greenhorn

Joined: Mar 04, 2009
Posts: 22
Hi Jaikiran,

My developers are using 3 layer ejb structure (business, jpa, client). For this i am getting 2 JARs and one WAR file.

To deploy the application i am moving all these 3 (jars and war file) to $JBOSS_HOME/server/default/deploy.

It is working ok. Now my question is, is there any way to get single EAR file from all those three layers.

I want to deploy single EAR only. How can i get this?

Please help me out. Thanks in advance.

Sridhar.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Sridhar,

Please create a separate thread in this forum to discuss your question. This is a 2 year old thread and was opened to discuss a different issue Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment on JBoss