I'd recommend the annual subscription, since it is not much more than the individual documentation. I'm not sure, however, that any of the documentation describes what each jar is for. You can find out which jar contains a particular class by just going to either the client or server/<servername>/lib directory, and issuing a command like this:
unzip -l *.jar org/jboss/logging/Log.class
jonathan wong wrote:
Dear Guy ,
Hello ! Thank you for your nice help ! I can call JBoss's EJB in my standalone Tomcat now ! Many many many ....................................... Thanks ! Therefore , I know what it work now ( hehe ...... , just the JNDI service ) .
Also , where can I obtain the documentation about all JBoss's services and *.jar ? As I think that it is helpful for me ( and other JBoss's users ) . The free official documentation is seem that not enough . Thank you !
*/Guy Rouillier <[EMAIL PROTECTED]>/* wrote:
jonathan wong wrote:
> Dear all , > > Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to > connect an EJB in Jboss's through JSP in Tomcat . Thank you for some > people's nice help . Now , the JSP is as follow : > > <%@ page > session="false" > isThreadSafe="true" > isErrorPage="false" > import="javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, > java.util.*, java.io.*, javax.net.*" > %> >
test
>
test
>
<% > try { > Hashtable env = new Hashtable(); > env.put("java.naming.factory.initial", > "org.jnp.interfaces.NamingContextFactory"); > env.put("java.naming.factory.url.pkgs", "org.jboss.naming;"); > // The bulk of our EJBs run here. > env.put("java.naming.provider.url", "jnp://localhost:1099"); > Object ref = new InitialContext(env).lookup("HelloWorld"); > HelloWorldHome lHome = (HelloWorldHome) > PortableRemoteObject.narrow(ref, HelloWorldHome.class); > HelloWorld lSession = lHome.create(); > String fromEJB = lSession.hello(); > out.println( "" + fromEJB); > } > catch( Exception e ) { > out.println( "Caugth exception: " + e.getMessage() ); > e.printStackTrace(); > } > %>
> > I can lookup the EJB's name ("HelloWorld") in JBoss's "Global JNDI > Namespace" . However , when I run the JSP , Tomcat says : > > Caugth exception: null > > And in the Dos : > > javax.naming.CommunicationException. Root exception is > java.rmi.UnmarshalExcept > ion: error unmarshalling return; nested exception is: > java.lang.ClassNotFoundException: > org.jnp.interfaces.MarshalledValuePair > > Therefore , what futher configuration should I have . Thank you ! >
I see MarshalledValuePair.class in the following jars in jboss-3.2.1/client:
jnp-client.jar jbossjmx-ant.jar jbossall-client.jar
Do you have either the first or the third in the classpath you are using for Tomcat? Post your Tomcat classpath - it should show up in your Tomcat console when you startup Tomcat.
-- Guy Rouillier
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Jonathan
(Wong Yat Sing)
Jonathan Studio <http://www.jonathan-studio.net/>
M.P (852) - 91235947
NetMeeting : [EMAIL PROTECTED] <callto:ils.microsoft.com/[EMAIL PROTECTED]>
ICQ# 57646152
------------------------------------------------------------------------
Do you Yahoo!?
SBC Yahoo! DSL <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/> - Now only $29.95 per month!
-- Guy Rouillier
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
