My first WebApplication

2004-07-29 Thread Sayeed
Hi to all

Sir/Madam

Please help me someone regarding my first WebApplication (Servlet):

I created  directories :
CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwebapp

Then into my sayeed class i starated with a first line as:

package com.wrox.projsp.ch03.myfirstwebapp
and other coding stuff for the java class..

I compile this java file (sayeed) and it compiled sucessfully and saved
into:
CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwebapp
\sayeed.class

Now after startup my tomcat server i put this into url browser which gives
error:

http://localhost:8080/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed

the error is:

type Status report

message /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed

description The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed) is not available.


Can anyone please help me?
thanx in advance

Saeed

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:31 PM
Subject: RE: Error Starting Sample Tomcat Webapps



Hola,
How did you install tomcat?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 12:40 PM
To: Tomcat Users List
Subject: Re: Error Starting Sample Tomcat Webapps

Dear Filip
thanx for the advice - i put the same command and it gives these
message :

Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: sun.misc.InvalidJarIndexException: Invalid index!
sun.misc.InvalidJarIndexException: Invalid index!
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

c:\apache\tomcat\bin

plz advice

Saeed
- Original Message -
From: Filip Hanik - Dev [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:10 PM
Subject: Re: Error Starting Sample Tomcat Webapps


  type
 
  catalina.bat run

 RTFM

 - Original Message -
 From: Sayeed [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 11:16 AM
 Subject: Re: Error Starting Sample Tomcat Webapps


 Dear Filip
 if I issues catalina.bat in DOS then this is all:

 C:\Apache\Tomcat\bincatalina
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 Usage:  catalina ( commands ... )
 commands:
   debug Start Catalina in a debugger
   debug -security   Debug Catalina with a security manager
   embedded  Start Catalina in embedded mode
   jpda startStart Catalina under JPDA debugger
   run   Start Catalina

Re: Java Class is not compiling

2004-07-28 Thread Sayeed
dear sir and Shivjuluru

these are my Paths:

set JAVA_HOME=C:\j2sdk1.4.2_04
set CATALINA_HOME=C:\APACHE\TOMCAT
set CLASSPATH=C:\Apache\Tomcat\common\lib\servlet.jar

but still when I compile my servlet file (sayeed) it give the same erros:

C:\Apache\Tomcat\webapps\ch03\WEB-INF\calsses\com\wrox\projsp\ch03\myfirstwe
bapp javac sayeed.java

sayeed.java:5: package javax.servlet.http does not exist
 import javax.servlet.http.HttpServlet;
 ^
 sayeed.java:6: package javax.servlet.http does not exist
 import javax.servlet.http.HttpServletRequest;


- Original Message -
From: shiv juluru [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 12:12 PM
Subject: Re: Java Class is not compiling


 give servlet.jar path to ur classpath ,that jar file may be in
tomcat_root/common/lib folder

 Sayeed [EMAIL PROTECTED] wrote:Sir
 I am new to Tomcat.
 I am now making my first Servlet and trying to creat a class (sayeed).
 It give me errors as under :

 ---
 Also another thing what is the PACKAGE which have to write in first line
of
 my servlet(sayeed):

 package com.wrox.projsp.ch03.myfirstwebapp;

 Can anyone please help me in detail. I have however downloaded Javax
 directory from sun.java.com- where this directory i have to put? i am
using
 j2sdk1.4.2.

 Thanx in advance.

 Saeed


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Java Class is not compiling

2004-07-27 Thread Sayeed
Sir
I am new to Tomcat.
I am now making my first Servlet and trying to creat a class (sayeed).
It give me errors as under :

C:\Apache\Tomcat\webapps\ch03\myfirstwebappjavac sayeed.java
sayeed.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServlet;
  ^
sayeed.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;

---
Also another thing what is the PACKAGE which have to write in first line of
my servlet(sayeed):

package com.wrox.projsp.ch03.myfirstwebapp;

Can anyone please help me in detail. I have however downloaded Javax
directory from sun.java.com- where this directory i have to put? i am using
j2sdk1.4.2.

Thanx in advance.

Saeed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



- Surendra Kumar

2004-07-22 Thread Sayeed
Hello dear Surendra Kumar

Can I know your your personal email address please?

Saeed
Programmer


Re: Request for an Immediate Solution

2004-07-21 Thread Sayeed
which version of tomcat u installed?
and which operating system u are using?

Saeed


- Original Message -
From: Sridharan Rajagopalan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 10:55 AM
Subject: Request for an Immediate Solution



 Hi All,

 My Name is Rajagopalan. Iam doing MCA final year.

 I have to do a mini project now. For the same I have installed TomCat
server in my house. But when I type the following in Internet Explorer after
installing the Server:

 http://localhost:8080/index.html or any jsp file

 it asks me user name and Password. So Iam not able to work with the
same. I have to complete the project by this month end. Iam yet to start the
same. So any body can help me out on the problem Iam facing immediately.

 I request you to give me an immediate solution for this as I have to start
the project as early as possible.

 Thanx

 Rajagopalan



 Yahoo! India Careers: Over 65,000 jobsonline.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request for an Immediate Solution

2004-07-21 Thread Sayeed
dear Shiv


wish your good health.

I have a question: when i run Tomcat4.1.3, the following error message
comes, can you plz let me know where the things are wrong and how i can
rectify:


C:\Apache\Tomcat\bincatalina.bat run
Using CATALINA_BASE:   D:\Apache\Tomcat
Using CATALINA_HOME:   D:\Apache\Tomcat
Using CATALINA_TMPDIR: D:\Apache\Tomcat\temp
Using JAVA_HOME:   D:\JDK1.3
[ERROR] Digester - -Begin event threw exception
sun.misc.InvalidJarIndexExcepti
on: Invalid index!sun.misc.InvalidJarIndexException: Invalid index!
at
sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:621)

and more like that


i am waiting your reply.

Thanks in advance.

Saeed
Programmer
- Original Message -
From: shiv juluru [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 21, 2004 11:38 AM
Subject: Re: Request for an Immediate Solution



 it's very simple,
 verify the tomcat-users.xml file in conf directory.u can find the user
names and passwords,
 other wise copy ur jsp files in ROOT directory and create one web-inf
folder in that ROOT directory,and copy ur web.xml in that ROOT/WEB-INF
directry,create one more classes directory in that ROOT/WEB-INF/ folder,copy
all ur servlets classes in that directory.

 the better thing is deploying the jar file is best way.


 Sridharan Rajagopalan [EMAIL PROTECTED] wrote:

 Hi All,

 My Name is Rajagopalan. Iam doing MCA final year.

 I have to do a mini project now. For the same I have installed TomCat
server in my house. But when I type the following in Internet Explorer after
installing the Server:

 http://localhost:8080/index.html or any jsp file

 it asks me user name and Password. So Iam not able to work with the
same. I have to complete the project by this month end. Iam yet to start the
same. So any body can help me out on the problem Iam facing immediately.

 I request you to give me an immediate solution for this as I have to start
the project as early as possible.

 Thanx

 Rajagopalan



 Yahoo! India Careers: Over 65,000 jobsonline.

 -
 Do you Yahoo!?
 Vote for the stars of Yahoo!'s next ad campaign!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to put config.xml

2004-07-20 Thread Sayeed
Dear Sir/Madam

I do not know much about the Question - so sorry sir/madam as i am new to
this thing.

I do have however question from you.

I start learning JSP and ohter J2EE tools recently.
I buy a book of Professional JSP 2nd Edition.

Sir i am facing a problem:

I dowload jakarta_tomcat 4.1.30.exe from the website.

I already do have jdk1.3 at my PC ( iam using win98 OS).

Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :

set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT

 Now when I Start Tomcat - a DOS base window is opened and remained active
for few seconds and then close automatically. Also i try Startup.bat file at
MS DOS promt, it shows some lines as follows:

C:\Apache\Tomcat\binstartup
Using CATALINA_BASE:   C:\APACHE\TOMCAT
Using CATALINA_HOME:   C:\APACHE\TOMCAT
Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
Using JAVA_HOME:   C:\jdk1.3
C:\Apache\Tomcat\bin
And in the mid also a new DOS base window shows a name 'Java' opened for few
seconds and automatically closed.

Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it
must shows a Catalina named window and remained active till I did not issue
a command Shutdown.

So please guide me what I should do in this connection in detail.

An early reply shall highly bhe appreicated.


Saeed
Programmer

- Original Message -
From: John Hill [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 4:38 PM
Subject: where to put config.xml


 Hi

 can anyone tell me where I should put the config.xml file for a web
 application. IF I put it under META-INF , tomcat doesnt seem to find it.
Does
 it need to be in a WAR file for this to occur ?


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: where to put config.xml

2004-07-20 Thread Sayeed
there is nothing in Error/general Logs
?
what i can do and how i can find where is fault?
Saeed

- Original Message -
From: Schalk Neethling [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 5:01 PM
Subject: Re: where to put config.xml


 You can find out more info on the exact cause of the error by looking at
 Tomcat's error/general log located at:
 TOMCAT_HOME/logs/

 Sayeed wrote:

 Dear Sir/Madam
 
 I do not know much about the Question - so sorry sir/madam as i am new to
 this thing.
 
 I do have however question from you.
 
 I start learning JSP and ohter J2EE tools recently.
 I buy a book of Professional JSP 2nd Edition.
 
 Sir i am facing a problem:
 
 I dowload jakarta_tomcat 4.1.30.exe from the website.
 
 I already do have jdk1.3 at my PC ( iam using win98 OS).
 
 Now after installing jakarta_tomcat to a folder c\apache\tomcat,
 I create two environment variables into my Autoexe.bat file as under :
 
 set JAVA_HOME=C:\jdk1.3
 set CATALINA_HOME=C:\APACHE\TOMCAT
 
  Now when I Start Tomcat - a DOS base window is opened and remained
active
 for few seconds and then close automatically. Also i try Startup.bat file
at
 MS DOS promt, it shows some lines as follows:
 
 C:\Apache\Tomcat\binstartup
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 C:\Apache\Tomcat\bin
 And in the mid also a new DOS base window shows a name 'Java' opened for
few
 seconds and automatically closed.
 
 Sir/Madam, whats the wrong with the tomcat? coz as per book instructions
it
 must shows a Catalina named window and remained active till I did not
issue
 a command Shutdown.
 
 So please guide me what I should do in this connection in detail.
 
 An early reply shall highly bhe appreicated.
 
 
 Saeed
 Programmer
 
 - Original Message -
 From: John Hill [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 4:38 PM
 Subject: where to put config.xml
 
 
 
 
 Hi
 
 can anyone tell me where I should put the config.xml file for a web
 application. IF I put it under META-INF , tomcat doesnt seem to find it.
 
 
 Does
 
 
 it need to be in a WAR file for this to occur ?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za

 This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error Starting Sample Tomcat Webapps

2004-07-20 Thread Sayeed
DEAR Yoav Shapira

I  have a question for you sir.

I start learning JSP and ohter J2EE tools recently.
I buy a book of Professional JSP 2nd Edition.

Sir i am facing a problem:

I dowload jakarta_tomcat 4.1.30.exe from the website.

I already do have jdk1.3 at my PC ( iam using win98 OS).

Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :

set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT

 Now when I Start Tomcat - a DOS base window is opened and remained active
for few seconds and then close automatically. Also i try Startup.bat file at
MS DOS promt, it shows some lines as follows:

C:\Apache\Tomcat\binstartup
Using CATALINA_BASE:   C:\APACHE\TOMCAT
Using CATALINA_HOME:   C:\APACHE\TOMCAT
Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
Using JAVA_HOME:   C:\jdk1.3
C:\Apache\Tomcat\bin
And in the mid also a new DOS base window shows a name 'Java' opened for few
seconds and automatically closed.

Sir/Madam, whats the wrong with the tomcat? coz as per book instructions it
must shows a Catalina named window and remained active till I did not issue
a command Shutdown.

So please guide me what I should do in this connection in detail.

An early reply shall highly bhe appreicated.


Saeed
Programmer

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 5:43 PM
Subject: RE: Error Starting Sample Tomcat Webapps



Hi,
Make sure the java installations are clean, i.e. there are no extra xml
API or parser implementations (or Digester, come to think of it) in your
jre/lib/ext directory (off $JAVA_HOME).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Debra Bartling [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 5:25 PM
To: [EMAIL PROTECTED]
Subject: Error Starting Sample Tomcat Webapps

Tomcat 5.0.27, binary distribution, on two different servers, one
works,
one doesn't. My development server (Solaris 8) works OK when I unpack
Tomcat and start it up with the demo webapps (as well as with my own).
On
my production server (Solaris 9) Tomcat does not start up correctly and
gives the following:

2004-07-19 12:11:25 StandardHost[localhost]: Error deploying
application at
context path null
java.lang.reflect.InvocationTargetException
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2
540)
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2
566)
 at
org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j
ava:
76)
 at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un
know
n
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
cher.dispatch(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
 at
org.apache.commons.digester.Digester.parse(Digester.java:1567)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:488)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav
a:48
2)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
 at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
49)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:119)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:480
)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

Re: Error Starting Sample Tomcat Webapps

2004-07-20 Thread Sayeed
Dear Filip
if I issues catalina.bat in DOS then this is all:

C:\Apache\Tomcat\bincatalina
Using CATALINA_BASE:   C:\APACHE\TOMCAT
Using CATALINA_HOME:   C:\APACHE\TOMCAT
Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
Using JAVA_HOME:   C:\jdk1.3
Usage:  catalina ( commands ... )
commands:
  debug Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  embedded  Start Catalina in embedded mode
  jpda startStart Catalina under JPDA debugger
  run   Start Catalina in the current window
  run -security Start in the current window with security manager
  start Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop  Stop Catalina
C:\Apache\Tomcat\bin



- Original Message -
From: Filip Hanik - Dev [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 8:44 PM
Subject: Re: Error Starting Sample Tomcat Webapps


 in your dos window, instead of typing
 startup.bat

 type

 catalina.bat run

 and tomcat will run in the same window, and show you the error

 Filip

 - Original Message -
 From: Sayeed [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 10:50 AM
 Subject: Re: Error Starting Sample Tomcat Webapps


 DEAR Yoav Shapira

 I  have a question for you sir.

 I start learning JSP and ohter J2EE tools recently.
 I buy a book of Professional JSP 2nd Edition.

 Sir i am facing a problem:

 I dowload jakarta_tomcat 4.1.30.exe from the website.

 I already do have jdk1.3 at my PC ( iam using win98 OS).

 Now after installing jakarta_tomcat to a folder c\apache\tomcat,
 I create two environment variables into my Autoexe.bat file as under :

 set JAVA_HOME=C:\jdk1.3
 set CATALINA_HOME=C:\APACHE\TOMCAT

  Now when I Start Tomcat - a DOS base window is opened and remained active
 for few seconds and then close automatically. Also i try Startup.bat file
at
 MS DOS promt, it shows some lines as follows:

 C:\Apache\Tomcat\binstartup
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 C:\Apache\Tomcat\bin
 And in the mid also a new DOS base window shows a name 'Java' opened for
few
 seconds and automatically closed.

 Sir/Madam, whats the wrong with the tomcat? coz as per book instructions
it
 must shows a Catalina named window and remained active till I did not
issue
 a command Shutdown.

 So please guide me what I should do in this connection in detail.

 An early reply shall highly bhe appreicated.


 Saeed
 Programmer

 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 5:43 PM
 Subject: RE: Error Starting Sample Tomcat Webapps



 Hi,
 Make sure the java installations are clean, i.e. there are no extra xml
 API or parser implementations (or Digester, come to think of it) in your
 jre/lib/ext directory (off $JAVA_HOME).

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Debra Bartling [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 19, 2004 5:25 PM
 To: [EMAIL PROTECTED]
 Subject: Error Starting Sample Tomcat Webapps
 
 Tomcat 5.0.27, binary distribution, on two different servers, one
 works,
 one doesn't. My development server (Solaris 8) works OK when I unpack
 Tomcat and start it up with the demo webapps (as well as with my own).
 On
 my production server (Solaris 9) Tomcat does not start up correctly and
 gives the following:
 
 2004-07-19 12:11:25 StandardHost[localhost]: Error deploying
 application at
 context path null
 java.lang.reflect.InvocationTargetException
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2
 540)
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2
 566)
  at
 org.apache.commons.digester.Digester.endElement(Digester.java:1061)
  at
 org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j
 ava:
 76)
  at
 org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un
 know
 n
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
 spat
 cher.dispatch(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
 own
 Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
  at
 org.apache.commons.digester.Digester.parse(Digester.java:1567)
  at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 yer.
 java:488

Re: Error Starting Sample Tomcat Webapps

2004-07-20 Thread Sayeed
Dear Filip
thanx for the advice - i put the same command and it gives these message :

Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: sun.misc.InvalidJarIndexException: Invalid index!
sun.misc.InvalidJarIndexException: Invalid index!
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

c:\apache\tomcat\bin

plz advice

Saeed
- Original Message -
From: Filip Hanik - Dev [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:10 PM
Subject: Re: Error Starting Sample Tomcat Webapps


  type
 
  catalina.bat run

 RTFM

 - Original Message -
 From: Sayeed [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 11:16 AM
 Subject: Re: Error Starting Sample Tomcat Webapps


 Dear Filip
 if I issues catalina.bat in DOS then this is all:

 C:\Apache\Tomcat\bincatalina
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 Usage:  catalina ( commands ... )
 commands:
   debug Start Catalina in a debugger
   debug -security   Debug Catalina with a security manager
   embedded  Start Catalina in embedded mode
   jpda startStart Catalina under JPDA debugger
   run   Start Catalina in the current window
   run -security Start in the current window with security manager
   start Start Catalina in a separate window
   start -security   Start in a separate window with security manager
   stop  Stop Catalina
 C:\Apache\Tomcat\bin



 - Original Message -
 From: Filip Hanik - Dev [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 8:44 PM
 Subject: Re: Error Starting Sample Tomcat Webapps


  in your dos window, instead of typing
  startup.bat
 
  type
 
  catalina.bat run
 
  and tomcat will run in the same window, and show you the error
 
  Filip
 
  - Original Message -
  From: Sayeed [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, July 20, 2004 10:50 AM
  Subject: Re: Error Starting Sample Tomcat Webapps
 
 
  DEAR Yoav Shapira
 
  I  have a question for you sir.
 
  I start learning JSP and ohter J2EE tools recently.
  I buy a book of Professional JSP 2nd Edition.
 
  Sir i am facing a problem:
 
  I dowload jakarta_tomcat 4.1.30.exe from the website.
 
  I already do have jdk1.3 at my PC ( iam using win98 OS).
 
  Now after installing jakarta_tomcat to a folder c\apache\tomcat,
  I create two environment variables into my Autoexe.bat file as under :
 
  set JAVA_HOME=C:\jdk1.3
  set CATALINA_HOME=C:\APACHE\TOMCAT
 
   Now when I Start Tomcat - a DOS

Error Starting Tomcat

2004-07-20 Thread Sayeed
Dear Shapira Yoav

Regarding tomcat installation:
I download tomcat 4.1.30 Exe file and install the same by clicking the
application at my Win98 OS.
In the mid of installation it gives me a message that it had found Java
(JDK1.3) and will use it. I click okay. then the installation complete with
success.
I have already jdk1.3 installed on my pc and it is working 100%.

Now after installing jakarta_tomcat to a folder c\apache\tomcat,
I create two environment variables into my Autoexe.bat file as under :

set JAVA_HOME=C:\jdk1.3
set CATALINA_HOME=C:\APACHE\TOMCAT

so plz let me know what i should have to do why it is not working?


thanx

Saeed

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:31 PM
Subject: RE: Error Starting Sample Tomcat Webapps



Hola,
How did you install tomcat?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 12:40 PM
To: Tomcat Users List
Subject: Re: Error Starting Sample Tomcat Webapps

Dear Filip
thanx for the advice - i put the same command and it gives these
message :

Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: sun.misc.InvalidJarIndexException: Invalid index!
sun.misc.InvalidJarIndexException: Invalid index!
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

c:\apache\tomcat\bin

plz advice

Saeed


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]