GeeCON Prague 2014*
The moose likes Servlets and the fly likes server not starting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "server not starting" Watch "server not starting" New topic
Author

server not starting

Rajani Sudhakar
Ranch Hand

Joined: Apr 28, 2004
Posts: 60
Hi all..

I am new to Servlet programming.I installed jdk1.2.1 and jsdk2.1 on my machine.
I created a HelloServlet program and compiled it by appropriately setting the classpath..

i tried to start the server by the following

c:/jsdk2.1/>startserver.

but when i tried http://localhost:8080 in internet explorer,
i couldn't get anything..

Please anyone help me out..

Thanks in advance,
Regards,
Rajani.
arnel nicolas
Ranch Hand

Joined: Dec 16, 2003
Posts: 149
The j2sdkx.xx is only one of the requirements to develop JSP and Servlet. You also need a servlet container.Now which one are you using? :roll:
Rajani Sudhakar
Ranch Hand

Joined: Apr 28, 2004
Posts: 60
Hi..

Let me be clear..

I installed jdk1.1.8 and Tomacat4.1.30.
I have set the environment variables as follows:

set JAVA_HOME=c:\jdk1.1.8
set CATALINA_HOME=c:\ jakarta-tomcat-4.1.30

when i start the server , i get a syntax error as follows"

c:\jakarta-tomcat-4.1.30\bin>startup
Syntax error
Using CATALINA_BASE: ..
Using CATALINA_HOME: c:\jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: c:\jdl1.1.8

A window is displayed and disappears in no time.

HOw can i fix this?

Thanks in advance,
Regards,
Rajani.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Perhaps you should read what you posted carefully:

Using CATALINA_BASE: ..
Using CATALINA_HOME: c:\jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: c:\jdl1.1.8


And JDK 1.1.8? Are you also using a chisel and tablet to write the code?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
REH Henderson
Greenhorn

Joined: Jun 17, 2004
Posts: 5
Originally posted by Rajani Sudhakar:
Hi all..

I am new to Servlet programming.I installed jdk1.2.1 and jsdk2.1 on my machine.
I created a HelloServlet program and compiled it by appropriately setting the classpath..

i tried to start the server by the following

c:/jsdk2.1/>startserver.

but when i tried http://localhost:8080 in internet explorer,
i couldn't get anything..

Please anyone help me out..

Thanks in advance,
Regards,
Rajani.


I don't know what your really trying to do but if you want any off the disk drives you woyld have to use:

<A HREF="file:///C:/jsdk2.1/>startsever."></A>

And if that doesn't work you can always "run" the program.


Richie Henderson
Rajani Sudhakar
Ranch Hand

Joined: Apr 28, 2004
Posts: 60
OOPS !
Sorry....

That was a typing mistake ...
it wasn't jdl1.18 but its jdk1.1.8

but i get the same syntax error

rajani.
raja guthi
Greenhorn

Joined: Dec 23, 2003
Posts: 4
Hi Rajani,
When U set the path of TOMCAT server to CATALINA make sure that u r setting the path in CATALINA_HOME...OK??? also check that all the files r being uninstalled and set the class path to the CATALINA_HOME"...

thank you, with regards,
raja
 
GeeCON Prague 2014
 
subject: server not starting