You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roland <ro...@netquant.com.br> on 2001/08/30 00:01:54 UTC

Tomcat 4.0-b7 doesnt compile servlets

hello,
after starting Tomcat4.0-b7 the work directories remain, empty, the servlets
are not compiled from the jsp pages. Every access to a jsp page(even the
Tomcat examples) results in an error.

Why is this?




Tomcat 4.0-b7 doesnt compile jsp pages, problem solved!

Posted by Roland <ro...@netquant.com.br>.
After reinstalling the tomcat 4.0-b7 it suddenly worked. And then I repeated
the same mistake I have made before. I copied my jar files from the old
tomcat-4.0-b5/lib and in that process OVERWROTE the newer versions
jasper-runtime.jar and namingfactory.jar.
I didnt know they had changed the jar files in the lib...
After replacing them again with the correct files it worked fine.

That was it...

Roland


Tomcat 4.0-b7 doesnt compile jsp pages, problem solved!

Posted by Roland <ro...@netquant.com.br>.
After reinstalling the tomcat 4.0-b7 it suddenly worked. And then I repeated
the same mistake I have made before. I copied my jar files from the old
tomcat-4.0-b5/lib and in that process OVERWROTE the newer versions
jasper-runtime.jar and namingfactory.jar.
I didnt know they had changed the jar files in the lib...
After replacing them again with the correct files it worked fine.

That was it...

Roland


Re: Tomcat 4.0-b7 doesnt compile jsp pages

Posted by Roland <ro...@netquant.com.br>.
> Dear Roland,
>
>   Please write down the error, else no one can help
> you.
>
>   My servlet and Jsp files are runing fine in Tomcat
> 4.0 beta7 ~ .
>
Ok, here again, I'm using Tomcat 4.0-b7 under Windows NT Server

I unzip the Tomcat 4.0-b7 zip file to a directory. Start it, everything
seems to run fine. I got to the start page  http://localhost:8080

Then I click on the link JSP examples. All examples are listed. If I click
on any example that has a link to a JSP page I receive always the SAME error
message:

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
etc...

Its no surprise, since, if I take a look at
tomcat-4.0-b7/work/localhost/examples the directory is EMPTY. I know there
should be placed the compiled jsp pages. BUT it is empty. That means, the
JSP pages have not been compiled to servelts. Why not? I used Tomcat 4.0-b5
before and never had this problems, everything worked fine.

During the startup process there is no error message whatsoever, Catalina
works fine. I only get an error message when I try to access the jsp pages.

The servlet examples work fine, and if I try to access a pure HTML file
trough Tomcat it also works fine, its just the JSP pages that don`t work.

Any ideas here?

Thanks...Roland




Re: Tomcat 4.0-b7 doesnt compile jsp pages

Posted by Roland <ro...@netquant.com.br>.
> Dear Roland,
>
>   Please write down the error, else no one can help
> you.
>
>   My servlet and Jsp files are runing fine in Tomcat
> 4.0 beta7 ~ .
>
Ok, here again, I'm using Tomcat 4.0-b7 under Windows NT Server

I unzip the Tomcat 4.0-b7 zip file to a directory. Start it, everything
seems to run fine. I got to the start page  http://localhost:8080

Then I click on the link JSP examples. All examples are listed. If I click
on any example that has a link to a JSP page I receive always the SAME error
message:

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
etc...

Its no surprise, since, if I take a look at
tomcat-4.0-b7/work/localhost/examples the directory is EMPTY. I know there
should be placed the compiled jsp pages. BUT it is empty. That means, the
JSP pages have not been compiled to servelts. Why not? I used Tomcat 4.0-b5
before and never had this problems, everything worked fine.

During the startup process there is no error message whatsoever, Catalina
works fine. I only get an error message when I try to access the jsp pages.

The servlet examples work fine, and if I try to access a pure HTML file
trough Tomcat it also works fine, its just the JSP pages that don`t work.

Any ideas here?

Thanks...Roland




Re: Permission Denied Error in Linux

Posted by Tim O'Neil <ti...@xythos.com>.
$ chmod +x startup.sh



At 08:45 AM 8/30/2001, you wrote:
>You need to set execute permission on your startup.sh and shutdown.sh.  They
>are not set as executable by default.
>
>--David Smith
>
>On Thursday 30 August 2001 02:54 am, you wrote:
> > Hi,
> >
> > I tried to install Tomcat 3.2 in Linux. But when I run
> >       shell> bin/startup.sh
> > I got a "Permission Denied" error.
> >
> > These are the steps I did:
> > 1) installed JDK 1.2.2 for Linux as "root".
> > 2) included JDK path in .bash_profile
> > 3) set JAVA_HOME env variable in .bash_profile
> > 4) installed Tomcat 3.2 as "root"
> > 5) included Tomcat path in .bash_profile
> > 6) set a TOMCAT_HOME in .bash_profile
> >
> > See th settings of .bash_profile below:
> >
> > PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.
> >3/bin ENV=$HOME/.bashrc
> > TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
> > JAVA_HOME=/usr/local/jdk1.2.2
> > USERNAME="root"
> >
> > export USERNAME ENV PATH TOMCAT_HOME
> >
> >
> >
> > Thanks,
> > Lester


Re: Permission Denied Error in Linux

Posted by David Smith <dn...@cornell.edu>.
You need to set execute permission on your startup.sh and shutdown.sh.  They 
are not set as executable by default.

--David Smith

On Thursday 30 August 2001 02:54 am, you wrote:
> Hi,
>
> I tried to install Tomcat 3.2 in Linux. But when I run
> 	shell> bin/startup.sh
> I got a "Permission Denied" error.
>
> These are the steps I did:
> 1) installed JDK 1.2.2 for Linux as "root".
> 2) included JDK path in .bash_profile
> 3) set JAVA_HOME env variable in .bash_profile
> 4) installed Tomcat 3.2 as "root"
> 5) included Tomcat path in .bash_profile
> 6) set a TOMCAT_HOME in .bash_profile
>
> See th settings of .bash_profile below:
>
> PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.
>3/bin ENV=$HOME/.bashrc
> TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
> JAVA_HOME=/usr/local/jdk1.2.2
> USERNAME="root"
>
> export USERNAME ENV PATH TOMCAT_HOME
>
>
>
> Thanks,
> Lester


Permission Denied Error in Linux

Posted by Lester June Cabrera <le...@vinciworks.com>.
Hi,

I tried to install Tomcat 3.2 in Linux. But when I run
	shell> bin/startup.sh
I got a "Permission Denied" error.

These are the steps I did:
1) installed JDK 1.2.2 for Linux as "root".
2) included JDK path in .bash_profile
3) set JAVA_HOME env variable in .bash_profile
4) installed Tomcat 3.2 as "root"
5) included Tomcat path in .bash_profile
6) set a TOMCAT_HOME in .bash_profile

See th settings of .bash_profile below:

PATH=$PATH:$HOME/bin:/usr/local/jdk1.2.2/bin:/usr/local/jakarta-tomcat-3.2.3/bin
ENV=$HOME/.bashrc
TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3
JAVA_HOME=/usr/local/jdk1.2.2
USERNAME="root"

export USERNAME ENV PATH TOMCAT_HOME



Thanks,
Lester


Re: Out of environment space

Posted by asheesh <as...@q2aindia.com>.
I do run startup.bat (C:\tomcat\bin\startup.bat) , and it never gave me
problem.

Do check ur environment space, u can open ur DOS window and go to properties
and then set initial environment space, set it to high value.

cheers
asheesh

----- Original Message -----
From: Rajesh Nair <ra...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, August 30, 2001 2:03 PM
Subject: Out of environment space


>
> Hi,
>
> I have downloaded Tomcat 3.2.3 and when I try to run
> startup.bat(Win 98 ) I get the following output:
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> Using CLASSPATH:d:\.....
>
> bad command or file name
>
> out of environment space
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> out of environment space
>
> 2001-08-30 15:54:18 The file argument '^' does not
> exist.
>
> This problem may have occured to someone before.
>
> Please tell me what the problem is??
>
> Cheerz
>
> Raj
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com


Re: Out of environment space

Posted by Rajesh Nair <ra...@yahoo.com>.
Hi 

Ive set the initial space to 4096.
However if i run startup.bat...
it says starting tomcat in  new window and then
bad command or file name
and ends....

if i run tomcat.bat
it gives the foll error
2001-08-30 17:18:18 The file argument '^' does not
 exist.

i wonder why...

thanks

Raj

--- james@spunkysoftware.com wrote:
> I had exactly the same problem.
> 
> Type in the command in a DOS box instead of double
> clicking the batch file
> in a window. First, click the icon in the top left
> of the DOS window, choose
> properties, and the memory tab, then initial
> environment. It is probably set
> to Auto. Choose 4096, which I think is the highest
> possible. Then click
> apply, close the window, and open it up again and
> run the startup.bat batch
> file. That should take care of it.
> 
> Also add:
> SHELL=C:\command.com /P /E:4096
> 
> to your config.sys file. (Thanks Ted!)
> 
> ---
> James
> 
> 
> ----- Original Message -----
> From: "Rajesh Nair" <ra...@yahoo.com>
> To: <to...@jakarta.apache.org>
> Sent: Thursday, August 30, 2001 4:03 PM
> Subject: Out of environment space
> 
> 
> >
> > Hi,
> >
> > I have downloaded Tomcat 3.2.3 and when I try to
> run
> > startup.bat(Win 98 ) I get the following output:
> >
> > Including all jars in d:tomcat\lib in your
> CLASSPATH
> >
> > Using CLASSPATH:d:\.....
> >
> > bad command or file name
> >
> > out of environment space
> >
> > Including all jars in d:tomcat\lib in your
> CLASSPATH
> >
> > out of environment space
> >
> > 2001-08-30 15:54:18 The file argument '^' does not
> > exist.
> >
> > This problem may have occured to someone before.
> >
> > Please tell me what the problem is??
> >
> > Cheerz
> >
> > Raj
> >
> >
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant
> messaging with Yahoo!
> Messenger
> > http://im.yahoo.com
> >
> >
> 


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: Out of environment space

Posted by ja...@spunkysoftware.com.
I had exactly the same problem.

Type in the command in a DOS box instead of double clicking the batch file
in a window. First, click the icon in the top left of the DOS window, choose
properties, and the memory tab, then initial environment. It is probably set
to Auto. Choose 4096, which I think is the highest possible. Then click
apply, close the window, and open it up again and run the startup.bat batch
file. That should take care of it.

Also add:
SHELL=C:\command.com /P /E:4096

to your config.sys file. (Thanks Ted!)

---
James


----- Original Message -----
From: "Rajesh Nair" <ra...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, August 30, 2001 4:03 PM
Subject: Out of environment space


>
> Hi,
>
> I have downloaded Tomcat 3.2.3 and when I try to run
> startup.bat(Win 98 ) I get the following output:
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> Using CLASSPATH:d:\.....
>
> bad command or file name
>
> out of environment space
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> out of environment space
>
> 2001-08-30 15:54:18 The file argument '^' does not
> exist.
>
> This problem may have occured to someone before.
>
> Please tell me what the problem is??
>
> Cheerz
>
> Raj
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>
>


Re: Out of environment space

Posted by ja...@spunkysoftware.com.
Right click on the batch files, and select "edit." Sometimes Windows chokes
on the UNIX style newlines. If they're there get rid of them and try again.
I used Allaire Homesite (UltraEdit is good too) to convert the batch files
to DOS style.

---
James


----- Original Message -----
From: "Rajesh Nair" <ra...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, August 30, 2001 4:03 PM
Subject: Out of environment space


>
> Hi,
>
> I have downloaded Tomcat 3.2.3 and when I try to run
> startup.bat(Win 98 ) I get the following output:
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> Using CLASSPATH:d:\.....
>
> bad command or file name
>
> out of environment space
>
> Including all jars in d:tomcat\lib in your CLASSPATH
>
> out of environment space
>
> 2001-08-30 15:54:18 The file argument '^' does not
> exist.
>
> This problem may have occured to someone before.
>
> Please tell me what the problem is??
>
> Cheerz
>
> Raj
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>
>


Out of environment space

Posted by Rajesh Nair <ra...@yahoo.com>.
Hi,

I have downloaded Tomcat 3.2.3 and when I try to run
startup.bat(Win 98 ) I get the following output:

Including all jars in d:tomcat\lib in your CLASSPATH

Using CLASSPATH:d:\.....

bad command or file name

out of environment space

Including all jars in d:tomcat\lib in your CLASSPATH

out of environment space

2001-08-30 15:54:18 The file argument '^' does not
exist.

This problem may have occured to someone before.

Please tell me what the problem is??

Cheerz

Raj







__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Re: Tomcat 4.0-b7 doesnt compile servlets

Posted by MindTerm <mi...@yahoo.com>.
Dear Roland,

  Please write down the error, else no one can help
you. 

  My servlet and Jsp files are runing fine in Tomcat
4.0 beta7 ~ . 
 
  JSP files are placed in
/webapps/projectname/jsp/modulename/*.jsp 
 
  while 
  Servlet files are placed in
/webapps/projectname/WEB-INF/classes/*.class

  Also, you need to change catalina.bat in order to
include your java library. 

M.T. 

--- Roland <ro...@netquant.com.br> wrote:
> hello,
> after starting Tomcat4.0-b7 the work directories
> remain, empty, the servlets
> are not compiled from the jsp pages. Every access to
> a jsp page(even the
> Tomcat examples) results in an error.
> 
> Why is this?
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com