Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unable to strat tomcat server

Posted on 2003-12-08
9
Medium Priority
?
1,249 Views
Last Modified: 2013-11-24
Hi
I am not able to start tomcat server in my machine ( windows-xp)
I downloaded tomcat 4.1.29 and installed.
But it is not starting

Could anybody help me

Chandu
0
Comment
Question by:malli143
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 92

Expert Comment

by:objects
ID: 9902378
have u installed the jdk?
what error are u getting?
0
 

Author Comment

by:malli143
ID: 9902418
I installed j2sdk1.4.2

I am getting following error message

"windows cannot find -Dsun.io.useCanonCaches = false"

I saw this "-Dsun.io.useCanonCaches = false"

and tomcat is not starting.


Could you help me on this
Chandu
0
 
LVL 92

Expert Comment

by:objects
ID: 9902429
check you have JAVA_HOME env var defined correctly.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:malli143
ID: 9902453
How do I define JAVA-HOME environment variable.
I am using Win-XP
I went to my computer -> properties -> advanced->environment variables-> I created a variable JAVA_HOME in user variables section and tried. Same error message. Tomcat is not starting.

I installed j2sdk in c:\Java Software. So I set the JAVA_HOME = d:\Java Software\j2sdk1.4.2


is it correct? is there anything else i need to do?

Chandu


0
 
LVL 15

Accepted Solution

by:
dualsoul earned 150 total points
ID: 9902477
hm....try to install JDK in directory with no spaces, for instance: d:\j2sdk1.4.2

0
 
LVL 92

Expert Comment

by:objects
ID: 9902485
or have alook at the startup script and add quotes if necessary.
0
 

Author Comment

by:malli143
ID: 9902599
i removed the jdk and re installed and now it is starting. but when try to test this server it is not loading default tomcat page. instead it is asking me , whether to connect to internet through dial up.

I typed           http://loacalhost:8080/

do i have to set anything else?

Chandu
0
 
LVL 35

Expert Comment

by:girionis
ID: 9902637
 I do not think there will be any problem if you remove the sun.io.useCanonCaches p[roperty from Tomcat startup.

> instead it is asking me , whether to connect to
>internet through dial up.
> I typed      http://loacalhost:8080/

  You have a syntax error *loacalhost*. Try this:

http://localhost:8080/
0
 
LVL 35

Expert Comment

by:girionis
ID: 9902649
 Take a lokk here for the sun.io.useCanonCaches property (from: http://java.sun.com/j2se/1.4.2/changes.html):

Optimizations have been made to the core libraries to reduce startup time. For a small command line application, startup time has been reduced by roughly thirty percent; for a small Swing application, by fifteen to twenty percent.
In some rare situations, one optimization related to filename canonicalization may cause inconsistent views of the host platform's file system to be briefly visible to Java applications. The optimization caches, for a short time, the results of calls to File.getCanonicalFile() and File.getCanonicalPath(). If a file is moved by another application then the canonicalization result for that file may briefly differ from its true value, although attempts to open and access the file will succeed or fail as before. Applications should not rely on the presence or absence of such inconsistencies. If an application must disable this optimization for correctness purposes then the system property -Dsun.io.useCanonCaches=false may be specified.

  TBH I do not think you need to in your first steps. When you get more familiar with Tomcat you can look into it.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question