on 12-19-2005 9:53 AM
hi!
I try to make a simple hello world with a stateless session bean and call in a jsp site. But in my HelloWorldHome, it can resolve the HelloWorld create() call. And in my HelloWorld it prints me "The type HelloWorld collides with a package HelloWorld.java". I compared my program with other public helloworld bean programs and with books, but I can't find the reason for this problem. Probably I'm the problem...
thank you
I renamed my package, and now it's no longer a collide, but can'T still resolve initial process in my HelloWorldProxy.java
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I think its nothing to do with imports.
--IntialContext
--Lookup to get ref
--then create()
If you cant create intial context then that is something to do with props for initial Context.
I donno about Netweaver AS.In general if you are accessing EJB in JSP you have add Ejb Refrence to web.xml
and more over accessing EJB in JSP is pooor way to do.
else please print your stack trace .
Regards
I checked the references, but they are in my web.xml as you can see:
<web-app>
<display-name>WEB APP</display-name>
<description>WEB APP description</description>
<servlet>
<servlet-name>HelloWorld.jsp</servlet-name>
<jsp-file>/HelloWorld.jsp</jsp-file>
</servlet>
<ejb-ref>
<ejb-ref-name>ejb/HelloWorldBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>zf.test2.HelloWorldHome</home>
<remote>zf.test2.HelloWorld</remote>
<ejb-link>HelloWorldBean</ejb-link>
</ejb-ref>
</web-app>
The test calculator in the tutorial runs fine, and I checked all the settings in my helloWorld and that are the same.
I create a my helloworld bean in the calculator workspace, because the calculator bean run.
it works, I can import and see all my files in the package for import.
then I create a new webspace with only my helloworld files and ... it doesn't work. Can't import, the references are not shown to my. I can see the package, but not the files. Has anyone an idea what to do yet?
thanks
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.