Skip to Content
author's profile photo Former Member
Former Member

Integrating a servlet

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 !

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Feb 23, 2005 at 06:09 PM

    Hello,

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

    Regards

    Gregor

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 06:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2005 at 08:02 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 08:30 AM

    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 ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.