Hello wonder, Tuesday, May 28, 2002, 4:09:33 PM, you wrote:
ws> Well, I'm sorry of this but I have to tell you that ws> once I removed the myrpg-atlasclient.jar file where ws> stands the UserSession and UserSessionHome files, an ws> other error occured IN the setSessionContext of my UserSession bean =>> the JNDI lookup worked! ws> Is it a bug or what??? ws> I'm using the JBoss 3.0 RC1 + Tomcat 4.0.3 version, What the error is? ws> wondersonic ws> --- Alex Loubyansky <[EMAIL PROTECTED]> a �crit�: > ws> Hello wonder, >> >> Tuesday, May 28, 2002, 3:50:13 PM, you wrote: >> >> ws> In fact these files are not in the classpath so >> it >> ws> should not create problems (I need them to be >> ws> downloaded by my SWING client). But in the >> >> ws> "myrpg-atlas-client.jar" >> >> ws> there are the interfaces (UserSession and >> ws> UserSessionHome) I use, do you think these can >> produce >> ws> problems??? >> >> Actually, I haven't tried such a packaging and not >> sure whether these >> classes get in the web-app's classpath. Maybe >> someone who tried that >> will answer you. But you could try to remove it and >> see yourself. By >> the way, let me know the results, please :) >> >> ws> Wondersonic >> >> ws> --- Alex Loubyansky <[EMAIL PROTECTED]> a >> �crit�: > >> ws> Hello wonder, >> >> >> >> I'd remove these from the war: >> >> jaas.jar >> >> jboss-client.jar >> >> jboss-j2ee.jar >> >> jbosssx-client.jar >> >> jnp-client.jar >> >> >> >> >> >> Tuesday, May 28, 2002, 3:41:04 PM, you wrote: >> >> >> >> ws> Hmmm, here is my war tree: >> >> ws> / (root) >> >> ws> | administratorLogin.jsp >> >> ws> | atlas.jsp >> >> ws> | checkAdministratorLogin.jsp >> >> ws> | index.jsp >> >> ws> | register.jsp >> >> ws> | user_registration.jsp >> >> ws> | >> >> ws> +---css >> >> ws> | general.css >> >> ws> | >> >> ws> +---data >> >> ws> | data.jar >> >> ws> | hicare-kernel.jar >> >> ws> | hicare-version.jar >> >> ws> | jaas.jar >> >> ws> | jboss-client.jar >> >> ws> | jboss-j2ee.jar >> >> ws> | jbosssx-client.jar >> >> ws> | jnp-client.jar >> >> ws> | myrpg-atlas-client.jar >> >> ws> | >> >> ws> +---download_hicare >> >> ws> | hicare.jar >> >> ws> | >> >> ws> +---images >> >> ws> | banner.jpg >> >> ws> | myrpgbiglogo.jpg >> >> ws> | >> >> ws> +---META-INF >> >> ws> | MANIFEST.MF >> >> ws> | >> >> ws> +---static >> >> ws> | bottom.html >> >> ws> | howto.html >> >> ws> | intro.html >> >> ws> | menu.html >> >> ws> | top.html >> >> ws> | >> >> ws> +---WEB-INF >> >> ws> | jboss-web.xml >> >> ws> | web.xml >> >> ws> | >> >> ws> +---classes >> >> ws> +---org >> >> ws> +---myrpg >> >> ws> +---atlas >> >> ws> Atlas.class >> >> >> >> ws> And the my EJBs interfaces are located in a >> jar >> >> file >> >> ws> in >> >> ws> the ear file. >> >> >> >> ws> strange isn't it? >> >> ws> I think I'm making something wrong but I >> can't >> >> find >> >> ws> it... :( >> >> >> >> ws> thanks for your quick answer :) >> >> ws> wonder Sonic >> >> >> >> ws> --- Alex Loubyansky <[EMAIL PROTECTED]> a >> >> �crit�: > >> >> ws> Hello wonder, >> >> >> >> >> >> Tuesday, May 28, 2002, 3:27:50 PM, you wrote: >> >> >> >> >> >> ws> Well, >> >> >> ws> here are my results for localhost:8082 >> >> >> >> >> >> ws> MBean View [JMX RI/1.0] >> >> >> >> >> >> ws> MBean Name: >> >> >> ws> >> >> >> >> >> ws> >> >> >> ws> >> ws> jboss.j2ee:service=EJB,jndiName=myrpg-atlas/UserSession >> >> >> >> >> >> ws> MBean Java Class: >> >> >> ws> org.jboss.ejb.StatelessSessionContainer >> >> >> ws> ... >> >> >> >> >> >> ws> I change my code from: >> >> >> ws> serSession = ( >> >> >> ws> >> >> >> >> >> ws> >> >> >> ws> >> ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup( >> >> >> ws> "UserSession" ) ).create(); >> >> >> >> >> >> ws> to: >> >> >> ws> serSession = ( >> >> >> ws> >> >> >> >> >> ws> >> >> >> ws> >> ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup( >> >> >> ws> "myrpg-atlas/UserSession" ) ).create(); >> >> >> >> >> >> ws> then I've got a strange exception: >> >> >> ws> java.lang.ClassCastException: $Proxy44 >> >> >> ws> at >> >> >> ws> >> >> >> >> >> ws> >> >> >> ws> >> ws> org.apache.jsp.register$jsp._jspService(register$jsp.java:219) >> >> >> >> >> >> Do you place interfaces for UserSession in the >> >> war >> >> >> lib directory? If >> >> >> so, remove them from the war. >> >> >> >> >> >> ws> What does it mean??? :) >> >> >> >> >> >> ws> Wnder Sonic (with a headache) >> >> >> >> >> >> >> >> >> ws> --- Alex Loubyansky <[EMAIL PROTECTED]> >> a >> >> >> �crit�: > >> >> >> ws> Hello wonder, >> >> >> >> >> >> >> >> Possible variants: >> >> >> >> 1. the bean wasn't bound to JNDI; >> >> >> >> 2. you look it up with a wrong name; >> >> >> >> >> >> >> >> Can you see it bound in JNDI View? >> >> >> (localhost:8082) >> >> >> >> >> >> >> >> alex >> >> >> >> >> >> >> >> Tuesday, May 28, 2002, 3:01:13 PM, you >> wrote: >> >> >> >> >> >> >> >> ws> Hello everybody, >> >> >> >> ws> I've got one error using Session beans >> >> >> >> (UserSession) >> >> >> >> ws> from a JSP and I've got the following >> >> error: >> >> >> >> >> >> >> >> ws> ... >> >> >> >> ws> javax.servlet.ServletException: >> >> UserSession >> >> >> not >> >> >> >> bound >> >> >> >> ws> ... >> >> >> >> >> >> >> >> ws> Can someone tell me what can cause this >> >> >> error? >> >> >> >> >> ws> === message truncated === ws> ___________________________________________________________ ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! ws> Yahoo! Mail : http://fr.mail.yahoo.com -- Best regards, Alex Loubyansky _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
