1835261 Members
2513 Online
110078 Solutions
New Discussion

Re: Starting Java

 
Kyle D. Harris
Regular Advisor

Starting Java

I'm not sure why I can't view a JSP page. I must not have Java started. Can somebody explain to me what this looks like or what file it is i need to start? Thanks
10 REPLIES 10
Kyle D. Harris
Regular Advisor

Re: Starting Java

That is the error i'm getting when i try to shutdown tomcat so i can then restart it. I shut down apache, then tried to shutdown tomcat so i can bounce it. What does this mean? Thanks

[root@mcsd bin]# ./shutdown.sh
Using CATALINA_BASE: /usr/local/src/jakarta-tomcat-4.1.18
Using CATALINA_HOME: /usr/local/src/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/local/src/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME: /usr/local/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Vernon Brown_4
Trusted Contributor

Re: Starting Java

This is probably just in your browser settings. On mine it is under Edit > Preferences from the top menu bar.

Jerome Henry
Honored Contributor

Re: Starting Java

Hi Kyle,

Are you trying to view jsp pages from a client point of view, in which case edit preferences is the way, or to server jsp pages from your server ?

J
You can lean only on what resists you...
Kyle D. Harris
Regular Advisor

Re: Starting Java

Clients are trying to view JSP pages from there computers ... I can't get java to show up on my processes when i do a "ps -ef"
Kyle D. Harris
Regular Advisor

Re: Starting Java

I am on a server though trying to fix the problem.
Jerome Henry
Honored Contributor

Re: Starting Java

Hi,

My first bet would be to stop any iptables running : do you run such firewall ?

J
You can lean only on what resists you...
Kyle D. Harris
Regular Advisor

Re: Starting Java

We have a firewall. I'm in the Marines on a base so it's a large Network firewall that I don't control. My other servers next to me are running it fine. Perhaps a reboot might cure all?
Jerome Henry
Honored Contributor

Re: Starting Java

If it worked before on the same machine, yes, it could. Did it work already ? Can you get jsp pages from local ?

J
You can lean only on what resists you...
Kyle D. Harris
Regular Advisor

Re: Starting Java

We don't have internet access from local ... I just got back from rebooting it (server's 2 miles away at another building)... In order to view it I need Apache, java, oracle and the listener running and I believe i have them all running.
Olivier Drouin
Trusted Contributor

Re: Starting Java

You must not 'start' java. You must start tomcat.

The error you got shuting down tomcat may be multiplie cause.
- bad 'SHUTDOWN' setup in server.xml
- Tomcat is shutdown by send a request to it, on a separate port. So, if tomcat is not started correctly, you will get this error trying to shut it down.

Normally you view a jsp page by
1) putting the web application in $TOMCAT_HOME/webapps.
2) restart tomcat
3) check the logs to see if it started correctly.

If you want to view the jps, point your browser to
http://server:8080/mywebapps/mypage.jsp

First, make tomcat works standalone, then the next step will be to make the apache frontend
works...

If you have actual error messages, post them...