thanks to Ken Jenks!

but I can still not run this Servlet.

In fact I have ever used the jndi name "interest/Interest"
just like that your article had  refered to.
And after i run jndiView.jar, I can find that : "interest/Interest"
if I use client application to call the Interest bean, all OK.


When I use jboss2.0-final, the Servlet output correct result.
but the client application do not run rightly, however it is not 
my concern.

I guess that the Interest Bean had been deployed rightly.
but the servlet can not find the ejb by the jndi name.

I hope your help again!

(I have download the JBoss_tomcat.zip, the instructions tell me no need to config.)

best regard,

Sam Liu




Your debugging string, sHome, indicates that you got an InitialContext(), 
but that there was probably an exception when you tried to get a reference 
to the Interest bean (because you never did get to the line which sets 
sHome = "2"). I suspect that means that your Interest bean is not deployed, 
or if it is deployed, it has a different name under JNDI namespace.

Change to the jboss/bin directory and run this command:

java -jar jndiView.jar | more

(You should put that in a script or batch file. In fact, this script/batch 
file should be part of the standard distribution.)

If the Interest bean is deployed, you should see its name listed.

Check the jBoss log and see if there's an exception during deployment. If 
you don't see one, you can change the logging MLET code in 
jboss/conf/default/jboss.conf:

<MLET CODE = "org.jboss.logging.ConsoleLogging" ARCHIVE="jboss.jar" 
CODEBASE="../../lib/ext/">
    <ARG TYPE="java.lang.String" VALUE="Information,Warning,Error">
    <ARG TYPE="java.lang.String" VALUE="[{2}] {4} {1} {3}">
</MLET>

(See how I added {1} and {3}.)

<MLET CODE = "org.jboss.logging.FileLogging" ARCHIVE="jboss.jar" 
CODEBASE="../../lib/ext/">
    <ARG TYPE="java.lang.String" VALUE="Information,Debug,Warning,Error">
    <ARG TYPE="java.lang.String" VALUE="[{2}] {4} {1} {3}">
</MLET>

(Again, I added {1} and {3}.)

Now look at the window from which you ran jBoss or file jboss/log/server.log.

-- Ken Jenks, http://abiblion.com/

    Tools for reading.


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user$,f)+-$,X(~zwib,y+޷b?+-w6ˬz

Reply via email to