Solved

Unable to strat tomcat server

Posted on 2003-12-08
9
1,239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

630 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