• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSWDK and Tomcat

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is how my autoexec.bat looks.I have added classpath for JSWDK1.0.1,which requires tools.jar.But when I run startserver.bat,a window opens and closes.Why?Have I given the wrong path?
Also,I had added classpath for tomcat,but a window opens and closes.Please help
path C:\BITWARE\;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.2\BIN;C:\JDK1.2\LIB\TOOLS.JAR;c:\jsdk2.0\lib\jsdk.jar;C:\JSDK2.0\BIN;
rem sPower will initialize the USB Keyboard in DOS.
call c:\dosboot\sPower

DOSKEY/INSERT

call c:\dosboot\drivers.bat
rem - By Windows Setup - mscdex.exe /d:IDECD000 /L:M

SET PATH=C:\IBMVJava\eab\bin;%PATH%;"C:\Program Files\Mts"
IF EXIST C:\IMNNQ_95\IMNENV.BAT CALL C:\IMNNQ_95\IMNENV.BAT
SET CLASSPATH=C:\IBMVJava\eab\runtime20;
SET IMNINST=help
SET IMNINSTSRV=C:\IMNNQ_95
SET PATH=%PATH%;C:\IMNNQ_95

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSWDK is out of date! Remove all traces of it from your system.
Only install Tomcat. I wasted days on this, there are all kinds of collisions between versions of the various JAR files.
Only run the batch files from an open MSDOS console, don't click on them. That way the window stays open and you can see the error messages.
Bill
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

There are a couple of things I would try, in addition to
William's suggestions.
1. When the window opens I would try to use the
CTRL-S to stop the window and see the error message.
Most likely it is your CLASSPATH and/or PATH variable.
Trust me I have been there and done that....
Use CTRL-C to quit the window after it freezes.
2. In addition I would remove the ; at the end of the
path variable in the first line of your posting...
if these don't work, try to capture the err msg and reply.
hope will keep us posted....
regds.
- satya
 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Madhav,
here is the output I get after startup command.
java.lang.ClassNotFoundException: org/apache/tomcat/service/http/HttpConnectionH
andler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon
nector.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.xml.MethodSetter.end(Compiled Code)
at org.apache.tomcat.util.xml.XmlMapper.
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.content(Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
at com.sun.xml.parser.Parser.parseInternal(Compiled Code)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
Context log: path="/examples" Adding context path="/examples" docBase="webapps/
examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install=".." home="C:\foo\jakarta-tomcat" classPath="..\classes;
..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\servlet.jar;\lib\to
ols.jar;C:\IBMVJava\eab\runtime20;"
Context log: path="/admin" Automatic context load docBase="C:\foo\jakarta-tomcat
\webapps\admin"
Context log: path="/admin" Adding context path="/admin" docBase="C:\foo\jakarta
-tomcat\webapps\admin"

vishal
my path is the same as given in previous posting
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
path
C:\BITWARE\;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.2\BIN;C:\JDK1.2\LIB\TOOLS.JAR;c:\jsdk2.0\lib\jsdk.jar;C:\JSDK2.0\BIN;

When you get a chance, remove the semi-colon ; at the end
of this stmt of your path and try.
The fact that you get a
java.lang.ClassNotFoundException : org/apache/tomcat/service/http/HttpConnectionH
error, makes me to conclude that your PATH/CLASSPATH variables
are not properly set.
Keep me posted, with more details so I could help.
ps: I put a space char after the ClassNotFoundException: and the word org for for clarity...
Regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited September 24, 2000).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic