cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating a servlet

Former Member
0 Kudos

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 !

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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 ?

Former Member
0 Kudos

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

Former Member
0 Kudos

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

gregorw
Active Contributor
0 Kudos

Hello,

have you tried to post this question in the Enterprise Portal Forums?

Regards

Gregor