on 02-23-2005 4:53 PM
Hello !
I need to integrate a java servlet in EP5 (WAS 6.2). I first tried it in my PDK and it was working fine :
- I write my servlet class and put it in Tomcat lib folder (in a jar file)
- I update the irj web.xml with my servlet declaration :
<servlet>
<servlet-name>getPDF</servlet-name>
<display-name>getPDF</display-name>
<servlet-class>getPDF</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>getPDF</servlet-name>
<url-pattern>/irj/servlet/getPDF</url-pattern>
</servlet-mapping>
In my portal component I can access my servlet using a path "/irj/servlet/getPDF"
When I try to do that in the portal, I get a 404 error message "The requested servlet ( getPDF ) not found."
Does anybody know what's wrong with that ?
Thank you !
It's working fine under Tomcat with my PDK but it isn't inside the portal. You need to package your class only from SDK 1.4.1 and EP5 PDK requires 1.3.1.
The class name is not the problem. I also tried by packaging my class but it doesn't work either. I posted the same message in EP devl forum.
Any suggestion ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello
afaik tomcat doesn´t handle servlets which are not inside a package. (think it´s also in the servlet spec)
and did you have a look at the log files?
btw it´s always a good idea to put your classes inside packages
Regards
franz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Olivier,
is the name of your servlet class really "getPDF" only? The <servlet-class> entry has to be fully qualified name of the class.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
have you tried to post this question in the Enterprise Portal Forums?
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.