Operating System - HP-UX
1833866 Members
2522 Online
110063 Solutions
New Discussion

Getting JSP to work / run?

 
SOLVED
Go to solution
P-Dicky
Frequent Advisor

Getting JSP to work / run?

Good Morning

I have a developer who has written some jsp and set it up on his workstation. I now get to move all this to an HPUX 11i box. I know a little about Apache but nothing about Tomcat or getting the jsp to compile or talk to oracle…. Any tip or suggestions on getting this system up and running?
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: Getting JSP to work / run?

Hello,

You need to install Application servers like Tomcat or Jetty which is part of Internet express suite and edit web.xml. Also take a look at these docs for more help.

http://docs.hp.com/en/5990-8153/ch07s09.html

http://tomcat.apache.org/tomcat-5.5-doc/setup.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
P-Dicky
Frequent Advisor

Re: Getting JSP to work / run?

I do have the HPWS installed with Tomcat 4.1. I have tried running a
"su - www -c "/opt/hpws/tomcat/bin/startup.sh"

But I am unable to connect via
http://server:8080 I believe 8080 is the default port for tomcat no?

Also my JAVA_HOME is set to /opt/java1.4/

Peter Godron
Honored Contributor

Re: Getting JSP to work / run?

P-Dicky,
to confirm your configuration, have a look at the server.xml in your conf directory.
Default is 8080
Arunvijai_4
Honored Contributor

Re: Getting JSP to work / run?

Hello,

Normally tomcat runs on Port 8080. You can control Tomcat by Webmin which is part of HP-UX webserver suite.

Just start webmin,
# /opt/hpws/webmin/webmin-init start

It listens on port 10000, http://your_server_name_or_IP:10000

Login :admin/hp.com

You can easily configure tomcat from there.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
P-Dicky
Frequent Advisor

Re: Getting JSP to work / run?

When I am starting tomcat I am getting this message in the log "/opt/hpws/tomcat/logs/catalina.out"

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:124)
at java.util.jar.JarFile.(JarFile.java:127)
at java.util.jar.JarFile.(JarFile.java:65)

Arunvijai_4
Honored Contributor
Solution

Re: Getting JSP to work / run?

Hello,

It could be a problem with Jar file permissions. # swverify should help. Also take a look at this thread

http://marc.theaimsgroup.com/?l=tomcat-user&m=106255571527316&w=2

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
P-Dicky
Frequent Advisor

Re: Getting JSP to work / run?

Jar file was the problem

Still no jsp showing though?