Hello,
Can you try to put any class/interface that is shared by both your EJB and
Web components (for example the home and remote interfaces, the Data
objects, etc.) in a separate JAR and NOT in any other WAR, EAR or EJB-JAR.
Then deploy this JAR independently of the EJB.
Cheers,
Sacha
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:jboss-user-admin@;lists.sourceforge.net]De la part de Jaydeep
> Dhar
> Envoye : vendredi, 25 octobre 2002 17:24
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] JBOSS-EJB HOT DEPLOYMENT PROBLEM
>
>
> Hi,
> I am using jboss 3.0.3 integrated with jetty web server.
> I am getting following problem during devlepment of simple application.
> 1) I have developed a simple staless session bean and putted the .jar file
> in deploy directory. It works fine when i call it from the
> servlet but once
> I change anything thing in EJB and replace into the deploy directory, it
> give following error when i call it from the same servlet.
> 20:48:44,171 INFO [STDOUT] GENERAL_EXCEPTIONjava.lang.ClassCastException
> 20:48:44,203 WARN [jbossweb] WARNING: Exception for /test/servlet/Hello
> java.lang.NullPointerException
> at Hello.doGet(Hello.java:52)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> During replacement of jar it is showing Bean deployed properly. IS the
> above problem is due to hot deployement becouse if i restart the server
> then everything works fine and the changes in bean also get reflected.
>
> 2) I have created a application directory which basically contain the jsp
> file and servlet and placed it into the deploy directory.when i try to
> invoke any of the component, the server doesn't get it and give error. But
> if I create the war file of that application and place into the the deploy
> directory, than it works fine. Is it necessary to creat war file
> to run it.
>
>
> pls respond to above mail as I need it urgently.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user