File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RuntimeException while starting JBOSS

 
Krithi Raghu
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not supposed to split the jar files like how i did previously...
Could anyone guide me in this?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Krithi Raghu
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic