Solved

Unable to strat tomcat server

Posted on 2003-12-08
9
1,233 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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 50 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

806 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