aspose file tools*
The moose likes JBoss/WildFly and the fly likes RuntimeException while starting JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "RuntimeException while starting JBOSS" Watch "RuntimeException while starting JBOSS" New topic
Author

RuntimeException while starting JBOSS

Krithi Raghu
Greenhorn

Joined: Jan 15, 2008
Posts: 23
Hi,

I am developing a web service in JBOSS where the SEI is a stateless session bean.
I am using JDK1.5 and JBOSS4.2.2 and used annotations @Session, @Webservice, @Webmethod to register my webservice and did not use any Remote class.

I have configured some startup classes for my application. These classes are there in my application jar where all the classes including the bean are placed.
I copied this jar file in a directory, included the path in the classpath and placed the jar file in the deploy directory also. When the server starts I got an error saying

However I resolved it by creating a separate jar file for the startup classes, included this in the classpath and then placed the application jar file in the deploy directory. It is working fine now.
But I would like to know why was it not working previously. Does any of you have any ideas on this?
Krithi Raghu
Greenhorn

Joined: Jan 15, 2008
Posts: 23
I am not supposed to split the jar files like how i did previously...
Could anyone guide me in this?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Is your web service an EJB or a pojo? If a pojo, place it in a war file, not in a jar file. (I think the deployer thought you were deploy EJBs but could not find one.)

If this is not the case, please post the source code for your web service.


JBoss In Action
Krithi Raghu
Greenhorn

Joined: Jan 15, 2008
Posts: 23
I found out the problem. I was trying to deploy the EJB and include it in the class path also. After i removed it from the class path it is working.
Thanks everyone...
Krithi Raghu
Greenhorn

Joined: Jan 15, 2008
Posts: 23
I found out the problem. I was trying to deploy the EJB and include it in the class path also. After i removed it from the class path it is working.
Thanks everyone...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RuntimeException while starting JBOSS