Okay, I updated the Orion Primer to use the solution Al suggested. When
I tried to run the application this time, everything went fine. So
`hooray' for Al! :) This is the output I got:
Time stamp: Tue May 30 10:55:22 CEST 2000
Hello type: StatelessSessionBeanWrapper0
Answer: Hello
But then when I re-generate the .ear file (I just call `ant'), Orion
detects that the file changed and attempts to redeploy the application.
But if I press `Reload' in my browser window, I get this:
500 Internal Server Error
javax.servlet.ServletException: Unable to get home interface:
java.lang.NoClassDefFoundError: hello.ejb.HelloHome
at hello.web.HelloServlet.init(HelloServlet.java, Compiled Code)
at com.evermind.server.http.HttpApplication.sx(JAX, Compiled Code)
at com.evermind.server.http.HttpApplication.sj(JAX)
at com.evermind.server.http.HttpApplication.r6(JAX, Compiled Code)
at com.evermind.server.http.HttpApplication.q2(JAX, Compiled Code)
at com.evermind.server.http.dm.pa(JAX, Compiled Code)
at com.evermind.server.http.dm.o9(JAX)
at com.evermind.util.e.run(JAX, Compiled Code)
Instead of calling `ant' I just did `touch rel/orion-primer.ear', but
that triggered the same problem. So I'd say we're dealing with a live
one here: A Bug!! ;)
Ernst
Al Fogleson wrote:
> OK weird question here, since I worked this problem and found that orion is
> placing the binding in the / heirarchy and not the java:comp/env heirarchy,
> is there any reason for that???
>
> Maybe I am lost but isnt the java:comp/env/ejb heirarchy where they should
> go? (although I vaguely recall that in 1.1 it is not required to be placed
> there, it seems like every other app server I have used puts them there. I
> had to resort to using forte and its JNDI browser to find the hello bean
> that Ernst has made. once I found that it was a simple matter of changing
> his "java:comp/ejb/hello" call to a "hello.ejb.Hello" and it was found
> easily.
>
> Probably something for Magnus or Karl to aqnswer for me. :) maybe i am just
> totally confused after evaluating so many servers.
>
>
> Al
>
>
>