Skip to Content
author's profile photo
Former Member

PDK5 with Tomcat 4.1.24?

Since PDK 5 worked with JDK 1.4.2 so I tried Tomcat 4.1.24.

Well I'm just curious and I don't want to maintain lots of different Tomcats

for different Applications:

So it went well and was deployed until:

[ServiceManager] Problem during start-up of service: usermanagement

java.lang.UnsatisfiedLinkError: no jniutils in java.library.path

I had jniutils.dll with all SAP dlls and Jars in /common/lib

and pointed PATH and CLASSPATH to that directory (in catalina.bat)

and I added tomcat-jni.jar to the CLASSPATH.

The error message wasn't changed at all.

So is JNI in Tomcat 4.1 totally different to Tomcat 3.3?

Where are jniutils.dll supposed to be found?

Frerk Meyer

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Oct 23, 2003 at 05:55 PM

    All I can tell you is the following.

    Let me know if it works.

    Regards,

    Oliver

    -

    -


    Question:

    How can I use Tomcat 4.1.x with PDK?

    Answer:

    Install JDK 1.4.x: http://java.sun.com/j2se/

    Don't forget to set the %JAVA_HOME% environment variable.

    Please remember, that JDK 1.4 is not supported by the portal platform. There could be some strange behaviour with this version.

    Download Tomcat: http://jakarta.apache.org/tomcat/index.html and install it on your PC. We recommend that you use C: omcat as the target folder. Make sure that the %CATALINA_HOME% environment variable is set to C: omcat after the installation.

    Download PDK: http://www.iviewstudio.com/

    Extract PDK to the Tomcat folder

    Move all files from folder %CATALINA_HOME%/lib/apps to folder

    %CATALINA_HOME%/common/lib

    Remove files tomcat.bat and restart.bat from folder %CATALINA_HOME%/bin (tomcat.bat is renamed to catalina.bat in Tomcat 4.0).

    Modify file catalina.bat in folder %CATALINA_HOME%/bin. Add the following lines under :okHome:

    rem --- Start SAP modification

    rem --- Insert your proxy settings here

    set PROXYHOST=proxy.mycompany.com

    set PROXYPORT=8080

    rem --- Set CATALINA_OPTS

    setCATALINA_OPTS=-Djava.library.path=%CATALINA_HOME%commonlib -Dhttp.proxyHost=%_PROXY_HOST% -Dhttp.proxyPort=%_PROXY_PORT% -Dhttp.nonProxyHosts=localhost -Dcm.decode=X

    echo Using CATALINA_OPTS: %CATALINA_OPTS%

    set PATH=%CATALINA_HOME%commonlib;%PATH%

    echo Using PATH: %PATH%

    rem --- End SAP modification

    Start Tomcat.

    Stop Tomcat after the irj.war file was deployed.

    Modify the web.xml file in folder %CATALINA_HOME%/webapps/irj/WEB-INF. Add the following serlvet mapping:

    <servlet-mapping>

    <servlet-name>invoker</servlet-name>

    <url-pattern>/servlet/*</url-pattern>

    </servlet-mapping>

    Start Tomcat using catalina.bat.

    Open the PDK portal: http://localhost:8080/irj

    Question:

    When I start Tomcat I get an error message:

    Exception in thread "main" java.lang.NoClassDefFoundError: files omcat/lib/apps. What is wrong?

    Answer:

    Do not install Tomcat in a directory that contains blanks (such as c:program files). Move the complete Tomcat folder to c: and set the environment variable to the new location. ÂÂ

    Add comment
    10|10000 characters needed characters exceeded