Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Morten Bo Ølbye

Have you tryed to stop Tomcat in Apache-open services

- Original Message - 
From: Sasa Rakic sas...@gmail.com
To: Tomcat Users List users@tomcat.apache.org; Mark Eggers 
its_toas...@yahoo.com

Sent: Thursday, December 30, 2010 4:03 AM
Subject: Re: NetBeans Tomcat 5.5 problem



Java 6.23 and windows 7




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
No i have not i am not sure how to do it. When i exit
NetBeans, NetBeans autommaticaly stops Tomcat every time. Why you think this
could be helpful ?


Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
Ok i will rephrase question. When i run startup.but for Tomcat 5.5.31 on my
windows xp from command prompt i get the message

SEVERE: Error listenerStart

after this some more lines and at the end:

INFO: Server Startup in 3300ms.

I do not know why is this happeninig. Could someone plese help me with this?

When i download Tomcat 6.0 from same web site it starts and stops perfectly
normal !

Thank you,

 Sasha!


Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread André Warnier

Hi.

1) stop /both/ tomcats and make sure they are stopped.
2) open a command window, and type the command :
netstat -ano

then copy the result and paste it here.

3) then also paste the conf/server.xml file of tomcat 5.5 here, after removing all the 
comments and any passwords etc..


Do not provide this information as attachments, the list usually strips them.
Really paste the text in the email.


Sasa Rakic wrote:

Ok i will rephrase question. When i run startup.but for Tomcat 5.5.31 on my
windows xp from command prompt i get the message

SEVERE: Error listenerStart

after this some more lines and at the end:

INFO: Server Startup in 3300ms.

I do not know why is this happeninig. Could someone plese help me with this?

When i download Tomcat 6.0 from same web site it starts and stops perfectly
normal !

Thank you,

 Sasha!




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
Here is print screen of netstat -ano like image.jpg!




?xml version=1.0 encoding=UTF-8?

Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

GlobalNamingResources

  Environment name=simpleValue type=java.lang.Integer value=30/


Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina

   Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector port=8009
   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/



Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/




  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


/Host

/Engine

  /Service

/Server


Is this OK?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also
on Windows 7. I use jdk.

Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg!

And here is server.xml without comments!


?xml version=1.0 encoding=UTF-8?

Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.core.AprLifecycleListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

GlobalNamingResources

  Environment name=simpleValue type=java.lang.Integer value=30/


Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina

   Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

Connector port=8009
   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/



Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/




  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


/Host

/Engine

  /Service

/Server


I hope someone hava idea what is the problem!


Thanks a lot
  Sasa!

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 5.5 problem

2010-12-30 Thread Konstantin Kolinko
2010/12/30 Sasa Rakic sas...@gmail.com:
 I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also
 on Windows 7. I use jdk.
 Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg!

 I hope someone hava idea what is the problem!


This mailing list does not allow images. (or any other attachments)
Either post it somewhere else and give us a link,  or describe your
problem by words. What you are trying to do and what step fails?

Without any description it is hard to guess what your problem is.

Without knowing what your problem is:
- If you have Tomcat-Native installed  (that is /bin/tcnative-1.dll)
-- try to run without it (e.g., rename the dll file).
- Is there anything in the logs?

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
1.I put .war file from my JSF project in to webapps folder of my apache
tomcat 5.5.31 directory.
.../apache tomcat 5.5.31/webapps/MyProject.WAR
2.From the command prompt i start startup.bat file which is positioned in
.../apache tomcat 5.5.31/bin/startup.bat.

And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
When i try to repeat all this useing NetBeans the result is the same.

In Tomcat command window i get message:

My catalina out looks like this:

Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1594 ms
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2031 ms
Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:30 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 6:57:12 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:12 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:12 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1625 ms
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 6:57:13 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:14 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:14 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 6:57:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1906 ms
Dec 30, 2010 6:57:38 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:38 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:57:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 6:57:39 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:57:39 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 7:15:57 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 7:15:57 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 

Re: Tomcat 5.5 problem

2010-12-30 Thread Konstantin Kolinko
2010/12/30 Sasa Rakic sas...@gmail.com:
 1.I put .war file from my JSF project in to webapps folder of my apache

What version of JSF?
Please show us your web.xml

Maybe you will need Tomcat 6 for your application. (See Which
version? link on the main page of tomcat.apache.org).

Can you use Tomcat 6?


 tomcat 5.5.31 directory.
 .../apache tomcat 5.5.31/webapps/MyProject.WAR
 2.From the command prompt i start startup.bat file which is positioned in
 .../apache tomcat 5.5.31/bin/startup.bat.

 And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
 When i try to repeat all this useing NetBeans the result is the same.

 In Tomcat command window i get message:


What message? You did not wrote.

 My catalina out looks like this:

 Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
 Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
 [false], random [true].

The above message means that Tomcat-Native is used. (It seems
irrelevant to your problem. Just noting).


 Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 (skipping..., everything is OK)

 Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive TestATom5.war
 Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/TestATom5] startup failed due to previous errors

You should look into localhost*.log files as well. Those previous
errors should be there.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 problem

2010-12-30 Thread Mark Eggers
From the following, it looks like Tomcat is running fine:

Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2031 ms

From the following, it looks like your application is not running fine:

Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TestATom5.war
Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TestATom5] startup failed due to previous errors


Please note the following differences in Tomcat 5.5.x and Tomcat 6.0.x:

From http://tomcat.apache.org/tomcat-5.5-doc/index.html
Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages 2.0 
specifications

From http://tomcat.apache.org/tomcat-6.0-doc/index.html
Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1 
specifications

Could the fact that your application runs on Tomcat 6.0 and not 5.5 be due to 
this?

When you're developing in NetBeans and choose a server for the application, you 
can set the Java EE version. For Tomcat 6, the version defaults to Java EE 5 
with an option to choose J2EE 1.4. For Tomcat 5.5, it defaults to J2EE 1.4. 
When you choose J2EE 1.4, you have an additional option to set the source code 
level to 1.4 (defaults to this).

If you first developed for Tomcat 6.0.29 and accepted the defaults, the result 
will not be appropriate for running under Tomcat 5.5.31. Check your web.xml 
file and see what version of the servlet specification you're using.

2.4 version (this will run in both Tomcat 5.5.x and Tomcat 6.0.x):

web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;


(sorry for the word-wrap on the last line)

2.5 version (this will run in Tomcat 6.0.x):

web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;


(sorry for the word-wrap on the last line)


Tomcat 7 (supported by NetBeans 7 the last time I checked) will run both as 
well.

. . . . just my two cents.

/mde/

- Original Message -

From:Sasa Rakic sas...@gmail.com
To:Tomcat Users List users@tomcat.apache.org
Cc:
Sent:Thursday, December 30, 2010 12:28:27 PM
Subject:Re: Tomcat 5.5 problem

1.I put .war file from my JSF project in to webapps folder of my apache
tomcat 5.5.31 directory.
.../apache tomcat 5.5.31/webapps/MyProject.WAR
2.From the command prompt i start startup.bat file which is positioned in
.../apache tomcat 5.5.31/bin/startup.bat.

And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
When i try to repeat all this useing NetBeans the result is the same.

In Tomcat command window i get message:

My catalina out looks like this:

Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1594 ms
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2031 ms
Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 30, 2010 6:56:30 PM

Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread André Warnier

Sasa Rakic wrote:

Here is print screen of netstat -ano like image.jpg!


Did I not warn you to not post these things as attachment, but paste the text 
right here ?

Also, maybe stop posting the same problem multiple times with different subjects and 
descriptions.  That is a bit confusing to say the least.


So what is your problem finally ? Tomcat 5.5 not starting properly, or your application 
not running ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Mark Eggers
It appears that NetBeans 6.9.1 will allow you to create Java web applications 
with incompatible containers / frameworks.

For example, you can do the following:

1. Create a Java web application targeted for Tomcat 5.5
2. Select J2EE 1.4 (only item permissible)
3. Use the default source level of 1.4
4. Select JSF 1.2 as a framework (which requires the 2.5 specification and 
source level 1.5)

I filed an enhancement request (although it should probably be a bug in the 
J2EE project wizard).

I think further discussion should happen on a NetBeans forum.

. . . . just my two cents.

/mde/

- Original Message -
From:André Warnier a...@ice-sa.com
To:Tomcat Users List users@tomcat.apache.org
Cc:
Sent:Thursday, December 30, 2010 1:57:56 PM
Subject:Re: NetBeans Tomcat 5.5 problem

Sasa Rakic wrote:
 Here is print screen of netstat -ano like image.jpg!
 
Did I not warn you to not post these things as attachment, but paste the text 
right here ?

Also, maybe stop posting the same problem multiple times with different 
subjects and descriptions.  That is a bit confusing to say the least.

So what is your problem finally ? Tomcat 5.5 not starting properly, or your 
application not running ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
Ok but application is automaticaly generated in NetBeans 6.9 and it
containes only one .jsp page it is index.jsp. And i chosed Tomcet 5.5
and  J2EE 1.4.

?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
context-param
param-namejavax.faces.PROJECT_STAGE/param-name
param-valueDevelopment/param-value
/context-param
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-filefaces/index.jsp/welcome-file
/welcome-file-list
/web-app

 And project use web-app version=2.4.



On Thu, Dec 30, 2010 at 10:14 PM, Mark Eggers its_toas...@yahoo.com wrote:

 From the following, it looks like Tomcat is running fine:

 Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 2031 ms

 From the following, it looks like your application is not running fine:

 Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive TestATom5.war
 Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/TestATom5] startup failed due to previous errors


 Please note the following differences in Tomcat 5.5.x and Tomcat 6.0.x:

 From http://tomcat.apache.org/tomcat-5.5-doc/index.html
 Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages
 2.0 specifications

 From http://tomcat.apache.org/tomcat-6.0-doc/index.html
 Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages
 2.1 specifications

 Could the fact that your application runs on Tomcat 6.0 and not 5.5 be due
 to this?

 When you're developing in NetBeans and choose a server for the application,
 you can set the Java EE version. For Tomcat 6, the version defaults to Java
 EE 5 with an option to choose J2EE 1.4. For Tomcat 5.5, it defaults to J2EE
 1.4. When you choose J2EE 1.4, you have an additional option to set the
 source code level to 1.4 (defaults to this).

 If you first developed for Tomcat 6.0.29 and accepted the defaults, the
 result will not be appropriate for running under Tomcat 5.5.31. Check your
 web.xml file and see what version of the servlet specification you're using.

 2.4 version (this will run in both Tomcat 5.5.x and Tomcat 6.0.x):

 web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=
http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;


 (sorry for the word-wrap on the last line)

 2.5 version (this will run in Tomcat 6.0.x):

 web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;


 (sorry for the word-wrap on the last line)


 Tomcat 7 (supported by NetBeans 7 the last time I checked) will run both as
 well.

 . . . . just my two cents.

 /mde/

 - Original Message -

 From:Sasa Rakic sas...@gmail.com
 To:Tomcat Users List users@tomcat.apache.org
 Cc:
 Sent:Thursday, December 30, 2010 12:28:27 PM
 Subject:Re: Tomcat 5.5 problem

 1.I put .war file from my JSF project in to webapps folder of my apache
 tomcat 5.5.31 directory.
 .../apache tomcat 5.5.31/webapps/MyProject.WAR
 2.From the command prompt i start startup.bat file which is positioned in
 .../apache tomcat 5.5.31/bin/startup.bat.

 And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine.
 When i try to repeat all this useing NetBeans the result is the same.

 In Tomcat command window i get message:

 My catalina out looks like this:

 Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
 Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
 [false], random [true].
 Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init
 INFO: Initializing Coyote AJP/1.3 on ajp-8009
 Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1594 ms
 Dec 30, 2010 6:55:40 PM

Re: NetBeans Tomcat 5.5 problem

2010-12-30 Thread Sasa Rakic
Thak you all !!!

On Fri, Dec 31, 2010 at 12:27 AM, Mark Eggers its_toas...@yahoo.com wrote:

 It appears that NetBeans 6.9.1 will allow you to create Java web
 applications with incompatible containers / frameworks.

 For example, you can do the following:

 1. Create a Java web application targeted for Tomcat 5.5
 2. Select J2EE 1.4 (only item permissible)
 3. Use the default source level of 1.4
 4. Select JSF 1.2 as a framework (which requires the 2.5 specification and
 source level 1.5)

 I filed an enhancement request (although it should probably be a bug in the
 J2EE project wizard).

 I think further discussion should happen on a NetBeans forum.

 . . . . just my two cents.

 /mde/

 - Original Message -
 From:André Warnier a...@ice-sa.com
 To:Tomcat Users List users@tomcat.apache.org
 Cc:
 Sent:Thursday, December 30, 2010 1:57:56 PM
 Subject:Re: NetBeans Tomcat 5.5 problem

 Sasa Rakic wrote:
  Here is print screen of netstat -ano like image.jpg!
 
 Did I not warn you to not post these things as attachment, but paste the
 text right here ?

 Also, maybe stop posting the same problem multiple times with different
 subjects and descriptions.  That is a bit confusing to say the least.

 So what is your problem finally ? Tomcat 5.5 not starting properly, or your
 application not running ?




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




NetBeans Tomcat 5.5 problem

2010-12-29 Thread Sasa Rakic
Hello,

I use NetBeans 6.9 to create JavaServer Faces web application. I need Tomcat
5.5 because my web hosting only support this version. When i download Tomcat
6.0 from this site it works fine, but when i download Tomcat 5.5 and run
application NetBeans writes me message that server can not start. Does
anyone know what could be the problem since i am fighting with this three
days, i tried everything but i am running out of ideas.

Thank you very much and happy holidays,

Sasa!


Re: NetBeans Tomcat 5.5 problem

2010-12-29 Thread Mark Eggers
This is probably best asked on the NetBeans mailing lists or forums. However, I 
use NetBeans 6.9.1 and Tomcat 6.0.29 or Tomcat 5.5.31 all the time with no 
issues. NetBeans 7 is required to support Tomcat 7.0.x.

You don't say:

a. Complete version of Tomcat (hint, 5.5.x)
b. Java version
c. Platform
d. Actual error message that NetBeans generates

The way NetBeans works is that it uses catalina.sh (catalina.bat on Windows) to 
start and stop Tomcat. If you're working on Windows, you'll need to download 
the zip archive of the core distribution and use that (not the service 
installer). In the NetBeans Services pane, add a new server (under Servers) and 
point the location of the server to where you unzipped the archive. Make sure 
that the type of server you add is Tomcat 5.5. I don't think NetBeans will let 
you add a 5.5 server as a 6.0 server or vice versa.

If you right-mouse click on the added server, you'll be able to look at the 
properties of a particular server. For a single instance of Tomcat 5.5.x, make 
sure that the values for Catalina Home and Catalina Base point to where you 
unzipped the archive. There should be no need to change the other properties.

Make sure that you (as a user) have appropriate file permissions to the Tomcat 
installation.

. . . . just my two cents.

/mde/

- Original Message -
From:Sasa Rakic sas...@gmail.com
To:users@tomcat.apache.org
Cc:
Sent:Wednesday, December 29, 2010 11:42:36 AM
Subject:NetBeans Tomcat 5.5 problem

Hello,

I use NetBeans 6.9 to create JavaServer Faces web application. I need Tomcat
5.5 because my web hosting only support this version. When i download Tomcat
6.0 from this site it works fine, but when i download Tomcat 5.5 and run
application NetBeans writes me message that server can not start. Does
anyone know what could be the problem since i am fighting with this three
days, i tried everything but i am running out of ideas.

Thank you very much and happy holidays,

Sasa!



  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NetBeans Tomcat 5.5 problem

2010-12-29 Thread Sasa Rakic
I use same versions of NetBeans Tomcat 6.0.26 and Tomcat 5.5.31 and i
already did everything you told me about adding new server but it still not
works. And i think the server starts because i can access with
http://localhost:8080/ Tomcat start page from my browser after i run
project. But in my project run output says

: Deployment error:
Starting of Tomcat failed.
See the server log for details.


Tomcat 5.5 log:

Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()


in Tomcat 5.5 output says:

Using CATALINA_BASE:   C:\Users\Sasha\Desktop\apache-tomcat-5.5.31
Using CATALINA_HOME:   C:\Users\Sasha\Desktop\apache-tomcat-5.5.31
Using CATALINA_TMPDIR: C:\Users\Sasha\Desktop\apache-tomcat-5.5.31\temp
Using JRE_HOME:C:\Program Files\Java\jdk1.6.0_13
Using CLASSPATH:
C:\Users\Sasha\Desktop\apache-tomcat-5.5.31\bin\bootstrap.jar
Dec 30, 2010 3:07:43 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 30, 2010 3:07:43 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
Dec 30, 2010 3:07:44 AM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 30, 2010 3:07:44 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 3:07:44 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1121 ms
Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.31
Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2010 3:07:45 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 30, 2010 3:07:45 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 30, 2010 3:07:45 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Dec 30, 2010 3:07:45 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1041 ms.


Tomcet 6.0.26 works perfectly fine!


Re: NetBeans Tomcat 5.5 problem

2010-12-29 Thread Sasa Rakic
Java 6.23 and windows 7


Re: Tomcat 5.5 problem with log4j and policy

2008-01-09 Thread Roberto Riggio
As an alternative can you point me to an howto about best pratices 
in logging with tomcat?

R.

- Roberto Riggio [EMAIL PROTECTED] wrote:
 Hi,
 
 sorry for the mistake, this is the directory where I'm logging:
 
 drwxr-x--- 2 tomcat55 adm  4096 2008-01-08 09:23 tomcat5.5
 
 so the path that I'm using is:
 
 /var/log/tomcat5.5/myapp.log
 
 Tomcat is running under the user tomcat55
 
 R.
 
 - Vinu Varghese [EMAIL PROTECTED] wrote:
  Hi,
   
   Under which user the tomcat process is running?. It seems the user
 
  doesn't have enough privilege to write to the folder.
  
  regards
  
  
  Roberto Riggio wrote:
   Hi,
  
   I'm deploying a struts 1.3.x webapp on tomcat 5.5.
  
   I'm using log4j 1.2.13 for logging and I've configured to
   log everything at /var/tmp/myapp.log
  
   However when i try to deploy the app tomcat complains that
   the webapp is not allowed to write on /var/log/myapp.log.
  
   How should I modify the policy files in order to enable
   proper logging?
  
   Moreover: is it correct to specify the log name in the
  log4j.properties
   files inside the webapp? Is there another more general way to
   do this so i do not have to modify it if I deploy the webapp on
 win
   instead of linux?
  
   Thanks
   R
  
 
  
  -- 
  
  signature
 full-name Vinu Varghese /full-name
 company-email [EMAIL PROTECTED] /company-email
 company-website www.x-minds.org /company-website
 big-words
  Success always occurs in private, and failure in full view.
  /big-words
 company-name-big
  \/  ._ _   o  .__|   _
  /\  ~~  | | |  |  | |  (_|  _\  
  
  
  /company-name-big
  /signature
 
 
 -- 
 
 Roberto Riggio, PhD Student
 
 CREATE-NET
 Via alla Cascata 56/C 
 38100 Trento (Italy)
 
 E-mail: [EMAIL PROTECTED]
 HomePage: http://disi.unitn.it/~riggio/
 
 Tel: +39.0461.314.960
 Fax: +39.0461.314.972
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-- 

Roberto Riggio, PhD Student

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: [EMAIL PROTECTED]
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 problem with log4j and policy

2008-01-08 Thread Roberto Riggio
Hi,

I'm deploying a struts 1.3.x webapp on tomcat 5.5.

I'm using log4j 1.2.13 for logging and I've configured to
log everything at /var/tmp/myapp.log

However when i try to deploy the app tomcat complains that
the webapp is not allowed to write on /var/log/myapp.log.

How should I modify the policy files in order to enable
proper logging?

Moreover: is it correct to specify the log name in the log4j.properties
files inside the webapp? Is there another more general way to
do this so i do not have to modify it if I deploy the webapp on win
instead of linux?

Thanks
R

-- 

Roberto Riggio, PhD Student

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: [EMAIL PROTECTED]
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 problem with log4j and policy

2008-01-08 Thread Roberto Riggio
Hi,

sorry for the mistake, this is the directory where I'm logging:

drwxr-x--- 2 tomcat55 adm  4096 2008-01-08 09:23 tomcat5.5

so the path that I'm using is:

/var/log/tomcat5.5/myapp.log

Tomcat is running under the user tomcat55

R.

- Vinu Varghese [EMAIL PROTECTED] wrote:
 Hi,
  
  Under which user the tomcat process is running?. It seems the user 
 doesn't have enough privilege to write to the folder.
 
 regards
 
 
 Roberto Riggio wrote:
  Hi,
 
  I'm deploying a struts 1.3.x webapp on tomcat 5.5.
 
  I'm using log4j 1.2.13 for logging and I've configured to
  log everything at /var/tmp/myapp.log
 
  However when i try to deploy the app tomcat complains that
  the webapp is not allowed to write on /var/log/myapp.log.
 
  How should I modify the policy files in order to enable
  proper logging?
 
  Moreover: is it correct to specify the log name in the
 log4j.properties
  files inside the webapp? Is there another more general way to
  do this so i do not have to modify it if I deploy the webapp on win
  instead of linux?
 
  Thanks
  R
 

 
 -- 
 
 signature
full-name Vinu Varghese /full-name
company-email [EMAIL PROTECTED] /company-email
company-website www.x-minds.org /company-website
big-words
 Success always occurs in private, and failure in full view.
 /big-words
company-name-big
 \/  ._ _   o  .__|   _
 /\  ~~  | | |  |  | |  (_|  _\
 
 /company-name-big
 /signature


-- 

Roberto Riggio, PhD Student

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: [EMAIL PROTECTED]
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 problem with log4j and policy

2008-01-08 Thread Vinu Varghese

Hi,

Under which user the tomcat process is running?. It seems the user 
doesn't have enough privilege to write to the folder.


regards


Roberto Riggio wrote:

Hi,

I'm deploying a struts 1.3.x webapp on tomcat 5.5.

I'm using log4j 1.2.13 for logging and I've configured to
log everything at /var/tmp/myapp.log

However when i try to deploy the app tomcat complains that
the webapp is not allowed to write on /var/log/myapp.log.

How should I modify the policy files in order to enable
proper logging?

Moreover: is it correct to specify the log name in the log4j.properties
files inside the webapp? Is there another more general way to
do this so i do not have to modify it if I deploy the webapp on win
instead of linux?

Thanks
R

  


--

signature
  full-name Vinu Varghese /full-name
  company-email [EMAIL PROTECTED] /company-email
  company-website www.x-minds.org /company-website
  big-words
   Success always occurs in private, and failure in full view.
   /big-words
  company-name-big
\/  ._ _   o  .__|   _
/\  ~~  | | |  |  | |  (_|  _\ 
   /company-name-big

/signature



strange tomcat 5.5 problem/session handling?

2007-01-04 Thread Stefan Kuhn
Hi all,
I have got a rather strange problem with am application running on tomcat.
 The aplication is based on Jetspeed, which uses Turbine. The problem is with
 login, since user handling is session based I think it could be a problem
 with tomcat session handling.
Ok, it's a jetspeed 1.6 running in tomcat 5.5.20 on a debian machine. If a
user logs in sometimes he is logged out again as soon as clicking on any
link. If he logs in a second time, it works fine. It seems the problem is
restricted to that machine and to firefox (tested also konqueror and IE).
This is really one of these ugly hard-to-solve problems. Help would be much
appreciated.
Stefan
--
Stefan Kuhn B. Sc. M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: strange tomcat 5.5 problem/session handling?

2007-01-04 Thread Filip Hanik - Dev Lists
On the tomcat side, you can enable the RequestDumperValve to see what is 
going on,
on the browser side use Firefox with a little plugin called 
LiveHttpHeaders, lets you see all the traffic going back and forward


Filip

Stefan Kuhn wrote:

Hi all,
I have got a rather strange problem with am application running on tomcat.
 The aplication is based on Jetspeed, which uses Turbine. The problem is with
 login, since user handling is session based I think it could be a problem
 with tomcat session handling.
Ok, it's a jetspeed 1.6 running in tomcat 5.5.20 on a debian machine. If a
user logs in sometimes he is logged out again as soon as clicking on any
link. If he logs in a second time, it works fine. It seems the problem is
restricted to that machine and to firefox (tested also konqueror and IE).
This is really one of these ugly hard-to-solve problems. Help would be much
appreciated.
Stefan
--
Stefan Kuhn B. Sc. M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 problem with JRE 1.5 (Xalan and jstl 1.1 problem with transformer)

2006-10-02 Thread Valeria Pesce
Hello everyone,
I hope someone in this list can help me with this.
 
I developed a simple XML based document repository using JSTL xml tags 1.0
under Tomcat 4.0.
Now I am trying to do the same with Tomcat 5.5.12 using JSTL 1.1 but I keep
receiving an error message about the instantiation of the transformer:
 
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.transformer.TransformerImpl could not be instantiated:
java.lang.InstantiationException:
org.apache.xalan.transformer.TransformerImpl

This is my test environment:
- Windows XP
- JRE 1.5.0
- Tomcat 5.5.12
- A CMS compliant with Tomcat 5 and coming with JSTL 1.1 libraries
(InfoGlue: www.infoglue.org)

I see JRE 1.5.0 contains an internal version of xalan and xerces and
apparently I cannot override them.

I did the following to overcome the problem:
- download the latest versions of xalan.jar, xercesImpl.jar and 
xml-apis.jar and place them under the WEB-inf directory of my application
- place the same files under [TOMCAT_HOME]/common/endorsed
- place the same files under [JAVA_HOME]/lib/endorsed

This is my very simple transformer page (very very basic):
 
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
%@ taglib uri=http://java.sun.com/jsp/jstl/xml; prefix=x %
c:import var=xmlText url=${requestScope.xmlUrl} /
c:import var=xslText url=${requestScope.xslUrl} /
c:catch var=ex
  x:transform xslt=${xslText} doc=${xmlText}/x:transform
/c:catch
c:if test=${not empty ex}
  c:out value=${ex} /
/c:if
 
The request-scoped variables contain what they should (I tested them 
importing directly to the page without storing the imported contents in 
variables).
 
I really don't know what else to try.
 
Thank you to those who had the patience to read and to those who will be 
so kind to reply...
 
Valeria
 



Re: Tomcat 5.5 problem - container not serving up web content

2005-11-18 Thread Michael Niemaz

I have the same message when I try to deploy a war file that already exists.
I have to shutdown, remove the old war file and its deployed dir, copy 
the new war file and then re-start Linux Tomcat.

This probably has nothing to do with your problem but ... we never know ;-)

--mike

Jorge Rodriguez wrote:

I believe this to be a config issue, but have had no success resolving it 
for the past two days, so any help would be greatly appreciated.


When I access a JSP page directly on my localhost, it loads properly with 
images and the stylesheet.
However, when I access the JSP (or any other JSP for that matter) using a 
filter, servlet or the struts action forward, the JSP content loads up, 
but anything else (images, linked CSS files) do not get served up. 

I've tried every single variation of the img and link tags (relative, 
hardcoded, with a /) but that didn't work. My guess is that there is some 
additional configuration that I haven't completed, yet I don't see if 
anywhere in the docs. I tried adding MIME mapping info to my web.xml, but 
that didn't help either.


The only possible relevant info that shows up related to errors/warnings 
is the following log:
   Nov 17, 2005 1:50:23 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
   INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
My web.xml is located in \Web Content\WEB-INF\web.xml, which sounds like 
it should be ok.



Using Tomcat 5.5 on jdk1.5.0_05 and developing on Eclipse 3.1 with the Web 
tools project 0.7 and no other plugins. 


Please help me out if you know what's up.

TIA!
JR
 



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



Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Jorge Rodriguez
I believe this to be a config issue, but have had no success resolving it 
for the past two days, so any help would be greatly appreciated.

When I access a JSP page directly on my localhost, it loads properly with 
images and the stylesheet.
However, when I access the JSP (or any other JSP for that matter) using a 
filter, servlet or the struts action forward, the JSP content loads up, 
but anything else (images, linked CSS files) do not get served up. 

I've tried every single variation of the img and link tags (relative, 
hardcoded, with a /) but that didn't work. My guess is that there is some 
additional configuration that I haven't completed, yet I don't see if 
anywhere in the docs. I tried adding MIME mapping info to my web.xml, but 
that didn't help either.

The only possible relevant info that shows up related to errors/warnings 
is the following log:
Nov 17, 2005 1:50:23 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
My web.xml is located in \Web Content\WEB-INF\web.xml, which sounds like 
it should be ok.


Using Tomcat 5.5 on jdk1.5.0_05 and developing on Eclipse 3.1 with the Web 
tools project 0.7 and no other plugins. 

Please help me out if you know what's up.

TIA!
JR

Re: Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Hassan Schroeder
Jorge Rodriguez wrote:

 When I access a JSP page directly on my localhost, it loads properly with 
 images and the stylesheet.
 However, when I access the JSP (or any other JSP for that matter) using a 
 filter, servlet or the struts action forward, the JSP content loads up, 
 but anything else (images, linked CSS files) do not get served up. 
 
 I've tried every single variation of the img and link tags (relative, 
 hardcoded, with a /) but that didn't work. My guess is that there is some 
 additional configuration that I haven't completed

Nope, there isn't -- your app (or your install) is broken :-)

 The only possible relevant info that shows up related to errors/warnings 
 is the following log:
 Nov 17, 2005 1:50:23 PM org.apache.catalina.startup.ContextConfig 
 applicationWebConfig
 INFO: Missing application web.xml, using defaults only 
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
 My web.xml is located in \Web Content\WEB-INF\web.xml, which sounds like 
 it should be ok.

Sounds to me like it's *not* OK, and getting rid of that should be
the first order of business. For one thing, I'd use a path without
spaces in it -- the '\Web Content\' might well be the problem...

HTH!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Tomcat 5.5 problem - container not serving up web content

2005-11-17 Thread Rob Hills
Hi Jorge,

On 17 Nov 2005 at 11:53, Hassan Schroeder wrote:

 Jorge Rodriguez wrote:
 
  When I access a JSP page directly on my localhost, it loads properly with 
  images and the stylesheet.
  However, when I access the JSP (or any other JSP for that matter) using a 
  filter, servlet or the struts action forward, the JSP content loads up, 
  but anything else (images, linked CSS files) do not get served up. 
  
  I've tried every single variation of the img and link tags (relative, 
  hardcoded, with a /) but that didn't work. My guess is that there is some 
  additional configuration that I haven't completed
 
 Nope, there isn't -- your app (or your install) is broken :-)
 
  The only possible relevant info that shows up related to errors/warnings 
  is the following log:
  Nov 17, 2005 1:50:23 PM org.apache.catalina.startup.ContextConfig 
  applicationWebConfig
  INFO: Missing application web.xml, using defaults only 
  StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
  My web.xml is located in \Web Content\WEB-INF\web.xml, which sounds like 
  it should be ok.
 
 Sounds to me like it's *not* OK, and getting rid of that should be
 the first order of business. For one thing, I'd use a path without
 spaces in it -- the '\Web Content\' might well be the problem...

I've seen other scenarios that produces this problem, usually related to 
context.xml file(s).  For example, in Tomcat 5.5.12, I've found that if 
you have a context file anywhere within the docBase tree for your 
application, and it has problems, Tomcat will find it and then 
complain about not finding the web.xml.

I don't recall what the subtle problems were that we had in our 
context.xml when I discovered this, but it was not actually meant to 
have been used by Tomcat - it was just being stored in that part of the 
tree.

So, when you get this error message about web.xml, it may be your 
context.xml file that's the problem.

HTH,

Rob Hills
NetPaver Pty Ltd
Western Australia


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