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

Extending EP6 with own Servlet and URL /irj/MyServlet

Hello,

I am working on a migration of a Servlet from IBM WebSphere Portal 5.0 to SAP EP6.0. The Servlet is an extension to the Portal and is manually deployd and not with an ear or war file.

Is it possible to extend the portal with my own servlet accessible with "/irj/MyServlet"?

I tried to copy the jars to one of the directories

server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\lib

server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\lib

server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\system\lib

and added my Servlet to the web deployment descripter

server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\web.xml

<servlet>

<servlet-name>MyServlet</servlet-name>

<display-name>MyServlet</display-name>

<servlet-class>com.mycompany.MyServlet</servlet-class>

<init-param>

<param-name>ServletMode</param-name>

<param-value>normal</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

...

<servlet-mapping>

<servlet-name>MyServlet</servlet-name>

<url-pattern>/MyServlet/*</url-pattern>

</servlet-mapping>

I also tried to modify the jar file in the same manner

server0\apps\sap.com\irj\servlet_jsp\irj\epbc.war

All this does not work.

Does somebody has experience with extending the SAP EP6 portal?

Greetings, Bernd.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 23, 2004 at 03:05 PM

    Maybe its possible, but it is not recommended to do so.

    However it does not make to much sense.

    Just run your servlet as a portal compoent with an entry as native-Servlet in the pc descriptor.

    Thats a 5 minute trip.

    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.