• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3.0 deployment on jboss4.0.4GA

 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI everybody,
I am new to this EJB3.0 stuff and am really banging my head into my PC to get a simple helloworld kinda ejb3 app deployed

I am using jboss4.0.4GA server, netbeans IDE 5,

I followed the EJB3 support installation as guided on jboss site and NetBeans IDE identified the server as JavaEE server to create the application.

but every time I deploy the application the way NetBeans instruccted in its tutorial on EJB3.0 deployment or the tutorial available at jboss.org I am getting ClassNotFoundException every time with a new class

Earlier it was for new EJB classes like Local, Remote etc- so I copied the jboss's jar file containing the files

then it was for a new class, again I did the same thing

but now it throws the exception for javax.xml.ws.* package (SORRY, I am not remembring the exact class name, but the javax.xml package in jboss.jar don't have .ws sub package).

I searched javaee.jar in sun's application server lib dir, it has all the packages and classes. But I don't think its good to copy this file into jboss's lib dir, as it may produce some class loading issues because of duplicate classes(I guess so, never tried 'n don't want to try)

Can anybody please inform me about EJB3.0 deployment on jboss4.0.4GA server, as it is the only server getting identified as jboss4 sever by NetBeans IDE.

Also I would like to get solution for following error occuring while starting this jboss server, though it's not troubling right now:
----------ERROR-------------
23:47:40,687 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, bac
klog=50, bindAddress=/0.0.0.0
23:47:40,718 WARN [HANamingService] Failed to start AutomaticDiscovery
java.net.SocketException: error setting options
----------ERROR-------------

THANKS TO YOU ALL,
LALIT..
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss4.0.4GA server


How did you install JBoss4.0.4GA? This version of JBoss requires the EJB3 component to be deployed separately. I would suggest that you use the latest version of JBoss (4.2.1) and use the zip file for installing. This zip file contains EJB3 support by default.
 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks jai

I isntalled 4.2.1 earlier itself but the netbeans5.5 isnt recongnizing it as jboss4 AS thats why I need to stick to 4.0.4

earlier I used a wrong patch the instuctions wwere for 4.0.3RC AS

dowloaded the patch for 4.0.4 from sourceforge.net, though its incomplete by 3 *-client.jar files, I copied them from 4.2.1 AS, and the said apps are deployed with no problem

But still am not able to execute client app, even though I gave it naming context factory and other env settings on command prompt using -D option, I am getting ClassNotFoundExeption for NamingContextFactory.class even after specifying the classpath for jnpserver.jar

I am trying claculator app available in jbossEJB3 tutorial

Thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What values did you specify for the InitialContext parameters? Also, do you have the required jar files in the client classpath? I think you should have the jbossall-client.jar (present in %JBOSS_HOME%/client folder) in the client's classpath. Also, can you post the exception stacktrace?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic