Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • 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 comment
    10|10000 characters needed characters exceeded