Re: AW: Enhancing Tomcat Speed

2007-12-24 Thread Rakesh Rajan
Read about memcached http://www.danga.com/memcached/ in case you have more
than one webnode.

-Rakesh

On Dec 24, 2007 2:40 AM, Pid [EMAIL PROTECTED] wrote:

 Richard G. Reyes wrote:
  Hi Pid, All,
 
  Hope you could tell me more about caching...isn't it automatic in
 tomcat?

 Not until you've profiled your app and tuned the DB accesses - which is
 where most of your slowdown is likely to be.

 Caching is esoteric and application specific, and can refer to static
 files as well as objects.  Don't assume it's a magic bullet, sort out
 the basics of your app first.

 p



  Pid wrote:
 
  And look, we haven't even mentioned caching yet...
 
  p
 
 
 
  -
  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]




NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread AbelMacAdam

Hi,

I'm trying to bootstrap my knowledge on Struts. As I tried an example I got
the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

Searching on this error I got the impression I needed j2ee.jar. I downloaded
and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I 
I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
library contains the following jar files:
javaee.jar (and that jar file includes a
javax/servlet/jsp/tagext/TagExtraInfo.class!)
j2ee.jar
j2ee-svc.jar

After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
need to do the remove this error and continue with the example?

TIA,
Abel

FWIW - Environment:
Apache 2.2.6
Java 1.6.0_03
Java EE 5
Struts 1.3.8
Tomcat 6.0
Windows XP
-- 
View this message in context: 
http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp14487034p14487034.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread Martin Gainty
Abel
put jsp-api.jar in /WEB-INF/lib
M-
- Original Message -
From: AbelMacAdam [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, December 24, 2007 6:58 AM
Subject: NoClassDefFoundError: TagExtraInfo missing?



 Hi,

 I'm trying to bootstrap my knowledge on Struts. As I tried an example I
got
 the following error:
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

 Searching on this error I got the impression I needed j2ee.jar. I
downloaded
 and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
 I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
 library contains the following jar files:
 javaee.jar (and that jar file includes a
 javax/servlet/jsp/tagext/TagExtraInfo.class!)
 j2ee.jar
 j2ee-svc.jar

 After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
 need to do the remove this error and continue with the example?

 TIA,
 Abel

 FWIW - Environment:
 Apache 2.2.6
 Java 1.6.0_03
 Java EE 5
 Struts 1.3.8
 Tomcat 6.0
 Windows XP
 --
 View this message in context:
http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
34p14487034.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 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]



Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread AbelMacAdam

Hi,

Thanks for the feedback. I just saw that both el-api.jar and jsp-api.jar are
part of my TOMCAT-HOME/lib directory. And these jar files are part of my
'Java Build Path' in Eclipse. So I'm still scratching my head :-(.

Abel


mgainty wrote:
 
 Abel
 put jsp-api.jar in /WEB-INF/lib
 M-
 - Original Message -
 From: AbelMacAdam [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, December 24, 2007 6:58 AM
 Subject: NoClassDefFoundError: TagExtraInfo missing?
 
 

 Hi,

 I'm trying to bootstrap my knowledge on Struts. As I tried an example I
 got
 the following error:
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

 Searching on this error I got the impression I needed j2ee.jar. I
 downloaded
 and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
 I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
 library contains the following jar files:
 javaee.jar (and that jar file includes a
 javax/servlet/jsp/tagext/TagExtraInfo.class!)
 j2ee.jar
 j2ee-svc.jar

 After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
 need to do the remove this error and continue with the example?

 TIA,
 Abel

 FWIW - Environment:
 Apache 2.2.6
 Java 1.6.0_03
 Java EE 5
 Struts 1.3.8
 Tomcat 6.0
 Windows XP
 --
 View this message in context:
 http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
 34p14487034.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp14487034p14487725.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: javax.servlet.ServletException

2007-12-24 Thread rameau rameau1982

I've done this and the problem is still there ... I don't know what to do...


To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 
19:28:06 -0500From: [EMAIL PROTECTED]



In that case you're dealing with a flawed architecture as you have no input 
mechamismyour web.xml should contain at least 1 welcome display file such as 
this input declaration in web.xml
welcome-file-listwelcome-fileLogin.html
/welcome-file/welcome-file-listGood LuckM--

- Original Message - 
From: rameau rameau1982 
To: [EMAIL PROTECTED] 
Sent: Sunday, December 23, 2007 6:00 PM
Subject: RE: javax.servlet.ServletException
I don't use jsp. I use html pages for static content and .view pages for 
dynamic content.If you want to see the aplication you have to deploy a .war 
archive in tomcatThe .view pages get data from a servletrequest (through the 
framework, wich I don't have access to it), present static content and send 
requests to the controller (detailed in the controller.xml) wich interactuates 
with the model (MailMessageSession.java and all the DAO's classes and JDBC)


To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 
17:28:23 -0500From: [EMAIL PROTECTED]


Hello Rameau
I did'nt see any jsp's included (for viewing the webapp)
?M--

- Original Message - 
From: rameau rameau1982 
To: users@tomcat.apache.org 
Sent: Sunday, December 23, 2007 4:57 PM
Subject: javax.servlet.ServletException
Hi again, by a problem with hotmail I have only been sending messages with one 
person. I'll put it all again with a rar that is all my project. Hi!I'm 
studying at the university an assignature based on web applications 
developement using java servlets, tomcat, Model-view-controller, and a 
framework done by my teacher that is a simplification of struts (we use his 
.jar to implement all te classes of his framework and he has told us that 
everything is correct and that we cannot modify his classes). He has invented a 
language called VIEW.The dynamic pages terminate with the sufix .view What I'm 
doing is a web application that has some users(with passwords) in a postgresql 
database (here everything correct) and that they login and send/receive 
messages to/from the rest of the users.I'm also using eclipse, so everything is 
well compilatedWhen a user logins, tomcat sends me an exception and doesn't 
shows the main dynamic page where the logged user views recieved messages and 
can send messages to other users.I give you the code of the mail.view page: 
?xml version='1.0' encoding='ISO-8859-1'?v:view 
xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' 
component-element-prefixes='b'HTMLHEAD TITLEDisseny d'aplicacions WEB: 
P3/TITLE LINk rel='stylesheet' href='styles.css' 
type='text/css'//HEADBODYcentertable width='700' border='0' 
cellspacing='0' cellpadding='0'trtdbr/b:set var='srv' 
value='${request.session.getAttribute('message_srv')}'/b:if test='${not 
srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p 
hr color='#1E90FF'/ a HREF='index.html'Volver/a/b:ifb:if 
test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/b:set 
var='recmess' value='${srv.receivedMessages()}'/b:if test='${not recmess}'  
H2No hay mensajes recibidos/H2/b:ifb:if test='${recmess}' H2Mensajes 
recibidos:/H2 FORM METHOD='POST' ACTION='delete.do'   !-- Lista de 
mensajes  --  table border='2' style='border-color: #1E90FF' cellspacing='1' 
align='center' tr tdfontremitente/font/td 
tdfontmensaje/font/td tdfontfecha/font/td 
tdfonteliminar/font/td /trb:for-each var='message' 
items='${srv.receivedMessages()}'trtd${message.from}/tdtdpre${message.text}/pre/tdtdpre${message.date}/pre/tdtdinput
 type='checkbox' name='message_id' 
value='${message.id}'//td/tr/b:for-each  /table  pINPUT 
TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM/b:if hr 
color='#1E90FF'/FORM METHOD='POST' 
ACTION='send.do'fontDestinatario/s:/fontbr/select name='receiver' 
multiple='multiple'b:for-each var='user' items='${srv.userListToSend()}'  
option 
value='${user.name}'${user.name}/option'/b:for-each/selectbr/fontMensaje:/font
  pTEXTAREA NAME='message' ROWS='10' COLS='100'/TEXTAREA/p  pINPUT 
TYPE='submit' NAME='send' VALUE='Enviar'//p /FORM hr color='#1E90FF'/ 
FORM METHOD='POST' ACTION='logout.do'  pINPUT TYPE='submit' 
VALUE='Logout'//p 
/FORM/b:if/td/tr/table/center/BODY/HTML/v:view I think that 
the problem is at:b:set var='srv' 
value='${request.session.getAttribute('message_srv')}'/ can somebody help me?? 
Oh! and the tomcat exception:Estado HTTP 500 - 
type
 Informe de Excepciónmensaje descripción El servidor encontró un error interno 
() que hizo que no pudiera rellenar este requerimiento.excepción 
javax.servlet.ServletException: Cannot execute view page '/mail.view': 
webprofe.webfw.view.processor.ViewException: Error in call to component: 

RE: multi-connector capability in Tomcat

2007-12-24 Thread Hitesh Raghav
Thanks Mark for reminding my mistake. I'll resend my query again
appropriately.

Thanks,
-Hitesh


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 23, 2007 11:54 PM
To: Tomcat Users List
Subject: Re: multi-connector capability in Tomcat

When starting a new thread (ie sending a message to the list about a new
topic) please do not reply to an existing message and change the subject
line. This is known as thread hijacking and to many of the list
archiving services and mail clients used by list subscribers this makes
your new message appear as part of the old thread. This makes it harder
for other users to find relevant information when searching the lists.

It should also be noted that many list subscribers automatically ignore
any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Thanks,

Mark
 


-
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]



multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Hitesh Raghav
Hi,
 
Does Tomcat support multi-connector capabilities for HTTPS?
 
Edit The Tomcat Configuration File section in Tomcat's User-Guide
(http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html ) gives
impression that Tomcat could be configured using multiple connectors to
support HTTPS protocols on multiple ports simultaneously.
 
Your expert advise/suggestion are highly appreciated.
 
 
Thanks,
-Hitesh


Re: multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Mark Thomas
Hitesh Raghav wrote:
 Hi,
  
 Does Tomcat support multi-connector capabilities for HTTPS?

Yes.

 Edit The Tomcat Configuration File section in Tomcat's User-Guide
 (http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
 http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html ) gives
 impression that Tomcat could be configured using multiple connectors to
 support HTTPS protocols on multiple ports simultaneously.

You can have multiple SSL connectors. Whilst connectors can listen on
multiple addresses, there can only be one connector listening on each
address/port combination.

Mark

-
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: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Sorry Martin, but bad advice.  In recent versions of tomcat, jsp-api is 
provided in the /lib directory of tomcat.  If you have your own in your 
webapp (or in the jave environment for that manner), please remove it as 
it will cause many a wonderous error.


Also tomcat does not work with j2ee as j2ee comes with it's own copy of 
a servlet container and the two will clash with each other.   Replace 
your Java EE environment with the java sdk or java jre environments to 
use tomcat.


The bottom line is jars in tomcat can only exist once along any 
classloader branch.  If it's in the JVM, it can be in tomcat's /lib or 
the webapp's /WEB-INF/lib directories.  If it's in tomcat's /lib, it 
can't exist in the webapp.


Come back with a complete stack trace including any root causes of your 
problem once those are fixed.


--David

Martin Gainty wrote:

Abel
put jsp-api.jar in /WEB-INF/lib
M-
- Original Message -
From: AbelMacAdam [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, December 24, 2007 6:58 AM
Subject: NoClassDefFoundError: TagExtraInfo missing?


  

Hi,

I'm trying to bootstrap my knowledge on Struts. As I tried an example I


got
  

the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

Searching on this error I got the impression I needed j2ee.jar. I


downloaded
  

and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
library contains the following jar files:
javaee.jar (and that jar file includes a
javax/servlet/jsp/tagext/TagExtraInfo.class!)
j2ee.jar
j2ee-svc.jar

After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
need to do the remove this error and continue with the example?

TIA,
Abel

FWIW - Environment:
Apache 2.2.6
Java 1.6.0_03
Java EE 5
Struts 1.3.8
Tomcat 6.0
Windows XP
--
View this message in context:


http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
34p14487034.html
  

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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]

  



-
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: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Just out of curiousity, are you trying to run your webapp from within 
Eclipse?  If so, try it without Eclipse -- deploy it to your installed 
tomcat and see if the error continues.  If the error goes away, it may 
be something funky with your Eclipse -- missing .jar file or something.


--David

AbelMacAdam wrote:

Hi,

Thanks for the feedback. I just saw that both el-api.jar and jsp-api.jar are
part of my TOMCAT-HOME/lib directory. And these jar files are part of my
'Java Build Path' in Eclipse. So I'm still scratching my head :-(.

Abel


mgainty wrote:
  

Abel
put jsp-api.jar in /WEB-INF/lib
M-
- Original Message -
From: AbelMacAdam [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, December 24, 2007 6:58 AM
Subject: NoClassDefFoundError: TagExtraInfo missing?




Hi,

I'm trying to bootstrap my knowledge on Struts. As I tried an example I
  

got


the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

Searching on this error I got the impression I needed j2ee.jar. I
  

downloaded


and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
library contains the following jar files:
javaee.jar (and that jar file includes a
javax/servlet/jsp/tagext/TagExtraInfo.class!)
j2ee.jar
j2ee-svc.jar

After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
need to do the remove this error and continue with the example?

TIA,
Abel

FWIW - Environment:
Apache 2.2.6
Java 1.6.0_03
Java EE 5
Struts 1.3.8
Tomcat 6.0
Windows XP
--
View this message in context:
  

http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
34p14487034.html


Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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]






  



-
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: javax.servlet.ServletException

2007-12-24 Thread David Smith
I'm looking at your original post on this problem and what I see is you 
are trying to do stuff against how the EL expression language works.


Stuff like ${request.session.getAttribute('message_srv')  can't work.  
Instead, this expression should access attributes as if they were bean 
properties of the page, request, or session, e.g. 
${sessionScope.message_srv}.  See JSP.2 of the JSP 2.0 specification.


Looking at ${srv.receivedMessages()}, I would expect you need something 
more like:


b:set var=recmessjsp:expressionpageContext.getAttribute( srv 
).receivedMessages()/jsp:expressoin/b:set

b:if test=${not recmess}/b:if

Overall, the EL expression language was designed around the idea of 
accessing information via JavaBean patterns and doesn't work with 
straight function calls like your are attempting.  Use the 
jsp:expression tag to evaluate such things and store the result in a 
pageContext variable for later use.


--David

rameau rameau1982 wrote:

I've done this and the problem is still there ... I don't know what to do...


To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 
19:28:06 -0500From: [EMAIL PROTECTED]



In that case you're dealing with a flawed architecture as you have no input 
mechamismyour web.xml should contain at least 1 welcome display file such as 
this input declaration in web.xml
welcome-file-listwelcome-fileLogin.html
/welcome-file/welcome-file-listGood LuckM--

- Original Message - 
From: rameau rameau1982 
To: [EMAIL PROTECTED] 
Sent: Sunday, December 23, 2007 6:00 PM

Subject: RE: javax.servlet.ServletException
I don't use jsp. I use html pages for static content and .view pages for 
dynamic content.If you want to see the aplication you have to deploy a .war 
archive in tomcatThe .view pages get data from a servletrequest (through the 
framework, wich I don't have access to it), present static content and send 
requests to the controller (detailed in the controller.xml) wich interactuates 
with the model (MailMessageSession.java and all the DAO's classes and JDBC)


To: [EMAIL PROTECTED]: Re: javax.servlet.ServletExceptionDate: Sun, 23 Dec 2007 
17:28:23 -0500From: [EMAIL PROTECTED]


Hello Rameau
I did'nt see any jsp's included (for viewing the webapp)
?M--

- Original Message - 
From: rameau rameau1982 
To: users@tomcat.apache.org 
Sent: Sunday, December 23, 2007 4:57 PM

Subject: javax.servlet.ServletException
Hi again, by a problem with hotmail I have only been sending messages with one person. I'll put it all again with a rar that is all my project. Hi!I'm studying at the university an assignature based on web applications developement using java servlets, tomcat, Model-view-controller, and a framework done by my teacher that is a simplification of struts (we use his .jar to implement all te classes of his framework and he has told us that everything is correct and that we cannot modify his classes). He has invented a language called VIEW.The dynamic pages terminate with the sufix .view What I'm doing is a web application that has some users(with passwords) in a postgresql database (here everything correct) and that they login and send/receive messages to/from the rest of the users.I'm 
also using eclipse, so everything is well compilatedWhen a user logins, tomcat sends me an exception and doesn't shows the main dynamic page where the logged user views recieved messages and can send messages to other users.I give you the code of the mail.view page: ?xml version='1.0' encoding='ISO-8859-1'?v:view xmlns:v='http://soft0.upc.es:8080/web/NS/webfw/view' xmlns:b='/base.vlib' component-element-prefixes='b'HTMLHEAD TITLEDisseny d'aplicacions WEB: P3/TITLE LINk rel='stylesheet' href='styles.css' type='text/css'//HEADBODYcentertable width='700' border='0' cellspacing='0' cellpadding='0'trtdbr/b:set var='srv' 
value='${request.session.getAttribute('message_srv')}'/b:if test='${not srv}' h1ERROR/h1 pspan style='color: #FF;'Session Error/span/p hr color='#1E90FF'/ a HREF='index.html'Volver/a/b:ifb:if test='${srv}' H1${srv.userName}/H1 hr color='#1E90FF'/b:set var='recmess' value='${srv.receivedMessages()}'/b:if test='${not recmess}'  H2No hay mensajes recibidos/H2/b:ifb:if test='${recmess}' H2Mensajes recibidos:/H2 FORM METHOD='POST' ACTION='delete.do'   !-- Lista de mensajes  --  table border='2' style='border-color: #1E90FF' cellspacing='1' align='center' tr 
tdfontremitente/font/td tdfontmensaje/font/td tdfontfecha/font/td tdfonteliminar/font/td /trb:for-each var='message' items='${srv.receivedMessages()}'trtd${message.from}/tdtdpre${message.text}/pre/tdtdpre${message.date}/pre/tdtdinput type='checkbox' name='message_id' value='${message.id}'//td/tr/b:for-each  /table  pINPUT TYPE='submit' NAME='delete' VALUE='Eliminar'//p /FORM/b:if hr color='#1E90FF'/FORM METHOD='POST' 
ACTION='send.do'fontDestinatario/s:/fontbr/select name='receiver' multiple='multiple'b:for-each var='user' 

[ANN] Apache Tomcat JK 1.2.26 Web Server Connector released

2007-12-24 Thread Rainer Jung
The Apache Tomcat team is pleased to announce the immediate availability
of version 1.2.26 of the Apache Tomcat Connectors.

It contains connectors, which allow a web server such as Apache HTTPD,
Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web
application server.

This version contains a few enhancements and fixes a number of minor
bugs of the previous versions.

See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
for a complete list of changes.

Source distribtions can be downloaded from an Apache Software Foundation
mirror at:

http://tomcat.apache.org/download-connectors.cgi

Binary distributions for a number of different operating systems and
web servers can be downloaded from an Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Syncing the release to the download mirrors might take up to 48 hours.

Documentation for using Apache Tomcat Connectors can be found at:

http://tomcat.apache.org/connectors-doc/

Thank you,

-- The Apache Tomcat Team

P.S.: Merry Christmas!



-
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: problem with tomcat admin tool

2007-12-24 Thread Abubakar Gurnah
Hi there!

Hope you are fine and in good health

I am getting this error when i am trying to open admin page, all the
folders i downloaded are empty, please advice

Dec 24, 2007 7:11:39 PM
org.apache.catalina.authenticator.FormAuthenticator forwardToLoginPage
WARNING: Unexpected error forwarding to login page
java.lang.NullPointerException
at
org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1161)
at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1024)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:224)
at admin.login_jsp._jspx_meth_bean_005fmessage_005f0(login_jsp.java:135)
at admin.login_jsp._jspService(login_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

-
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: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread Pid
Martin Gainty wrote:
 Abel
 put jsp-api.jar in /WEB-INF/lib
 M-

*Never* do that.

It will already be present in tomcat/server/lib or tomcat/lib depending
on your version, copying it to WEB-INF/lib will cause your app and web
server to behave unpredictably, and likely fail to work as intended.

p


 - Original Message -
 From: AbelMacAdam [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, December 24, 2007 6:58 AM
 Subject: NoClassDefFoundError: TagExtraInfo missing?
 
 
 Hi,

 I'm trying to bootstrap my knowledge on Struts. As I tried an example I
 got
 the following error:
 java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

 Searching on this error I got the impression I needed j2ee.jar. I
 downloaded
 and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
 I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
 library contains the following jar files:
 javaee.jar (and that jar file includes a
 javax/servlet/jsp/tagext/TagExtraInfo.class!)
 j2ee.jar
 j2ee-svc.jar

 After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
 need to do the remove this error and continue with the example?

 TIA,
 Abel

 FWIW - Environment:
 Apache 2.2.6
 Java 1.6.0_03
 Java EE 5
 Struts 1.3.8
 Tomcat 6.0
 Windows XP
 --
 View this message in context:
 http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
 34p14487034.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 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]
 
 


-
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: Fw: Processing of multipart/form-data request failed. Socket read failed

2007-12-24 Thread jesus


Hi,

I have the same problem. I use Apache 2.2.3 (with APR 1.2.7) in front  
of Tomcat 5.5.20, both connected by AJP (mod_proxy_ajp module). The  
error is the same when unloading a file. It only works when:


 - The request is sent directly to tomcat.

 or

 - If I disable using libtcnative (the tomcat JNI wrapper for APR) in tomcat.

I do not know any other solution to this problem.


Regards
Jesús

Respondiendo a Boom [EMAIL PROTECTED]:



Hi,
I have the same setup (apache ajp - tomcat) and got the same error when
uploading a file. Have you figured out what causes it? The same upload works
if the request is sent directly to tomcat and not through apache. Going
through apache only works if the request comes in from the same domain.
Thanks.
Boom


宋杨 wrote:


Hi all:

I use ajp between Apache2.2.6 and tomcat5.5.25, when I upload a file
Exception occurred like below, anybody could tell me why? Thanks.
I think the key is  java.io.IOException: Socket read failed
org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1037)
Is it a Apr error when I install apache and tomcat? I'm not sure about
it.


Regards
Derek


HTTP Status 500 -



type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Processing of multipart/form-data request
failed. Socket read failed
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

root cause
javax.servlet.ServletException: Processing of multipart/form-data request
failed. Socket read failed
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:194)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:405)
org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

root cause
org.apache.commons.fileupload.FileUploadBase$IOFileUploadException:
Processing of multipart/form-data request failed. Socket read failed
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302)
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:185)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:405)
org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50)
org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)

Re: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread Martin Gainty
Obviously its not there otherwise he wouldnt be getting the error
in other words copying some jar (you dont know anything about) to server/lib
is the preferred action?
I know that the container supports only a certain Servlet / JSP spec and I
also know these libraries are supposed to be there
I was giving the op the safest way to test TagLib functionality from a
(unknown) jar and NOT crash tomcat in the process

It would be easy to back out in case it did'nt work but to back out
something placed in server/lib ?

M-

- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, December 24, 2007 12:16 PM
Subject: Re: NoClassDefFoundError: TagExtraInfo missing?


 Martin Gainty wrote:
  Abel
  put jsp-api.jar in /WEB-INF/lib
  M-

 *Never* do that.

 It will already be present in tomcat/server/lib or tomcat/lib depending
 on your version, copying it to WEB-INF/lib will cause your app and web
 server to behave unpredictably, and likely fail to work as intended.

 p


  - Original Message -
  From: AbelMacAdam [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Sent: Monday, December 24, 2007 6:58 AM
  Subject: NoClassDefFoundError: TagExtraInfo missing?
 
 
  Hi,
 
  I'm trying to bootstrap my knowledge on Struts. As I tried an example I
  got
  the following error:
  java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo
 
  Searching on this error I got the impression I needed j2ee.jar. I
  downloaded
  and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
  I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
  library contains the following jar files:
  javaee.jar (and that jar file includes a
  javax/servlet/jsp/tagext/TagExtraInfo.class!)
  j2ee.jar
  j2ee-svc.jar
 
  After rebooting Tomcat (6.0) in Eclipse I still got that error. What do
I
  need to do the remove this error and continue with the example?
 
  TIA,
  Abel
 
  FWIW - Environment:
  Apache 2.2.6
  Java 1.6.0_03
  Java EE 5
  Struts 1.3.8
  Tomcat 6.0
  Windows XP
  --
  View this message in context:
 
http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
  34p14487034.html
  Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
  -
  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]
 
 


 -
 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]



RE: multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Hitesh Raghav
Hi Mark,

I'm little confused about it.

Let assume my m/c ip is: 10.212.85.8
SSL connector are configured on ports: 8443  8553

I need to deploy one web app (myapp01.war) on port 8443 and another on
web app (myapp02.war) on 8553. Is there any way to configure to access
these web apps as:
https://10.212.85.8:8443/myapp01/
and
https://10.212.85.8:8553/myapp02/

Please find enclosed my conf file (i.e. server.xml) for reference.

Please let me know in case any other details are needed.

Thanks,
-Hitesh
 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 24, 2007 7:41 PM
To: Tomcat Users List
Subject: Re: multi-connector capability for HTTPS in Tomcat

Hitesh Raghav wrote:
 Hi,
  
 Does Tomcat support multi-connector capabilities for HTTPS?

Yes.

 Edit The Tomcat Configuration File section in Tomcat's User-Guide 
 (http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
 http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html ) gives 
 impression that Tomcat could be configured using multiple connectors 
 to support HTTPS protocols on multiple ports simultaneously.

You can have multiple SSL connectors. Whilst connectors can listen on
multiple addresses, there can only be one connector listening on each
address/port combination.

Mark

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

?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  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/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
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

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download 

Re: multi-connector capability for HTTPS in Tomcat

2007-12-24 Thread Mark Thomas
Hitesh Raghav wrote:
 Hi Mark,
 
 I'm little confused about it.
 
 Let assume my m/c ip is: 10.212.85.8
 SSL connector are configured on ports: 8443  8553
 
 I need to deploy one web app (myapp01.war) on port 8443 and another on
 web app (myapp02.war) on 8553. Is there any way to configure to access
 these web apps as:
 https://10.212.85.8:8443/myapp01/
 and
 https://10.212.85.8:8553/myapp02/

If you want each port to only allow access to a single webapp then you
would need to configure a service (with a connector, engine, host etc) for
each webapp.

Mark


-
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: Configuring tomcat, servlet not found error

2007-12-24 Thread cuco2772

Yes, that was the problem. It didnt have the servlet-mapping element with
the right tags.
Thanks for the reply.


Steve R Burrus wrote:
 
 hi. you say that you added the servlet/servlet tag to the * bottom *
 of 
 your Deployment Descriptor file, the web.xml. Now I hope that you know --
 u 
 should know -- that that it is the very * first * thing contained in a 
 web.xml file and you also need the servlet-mapping tag right under that. 
 It contains the servlet-name and the url-pattern tags. Hope that that 
 helps you to fly right with trying to get the servlet viewed in Tomcat.
 
 - Original Message - 
 From: cuco2772 [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, December 19, 2007 3:43 PM
 Subject: Configuring tomcat, servlet not found error
 
 

 I keep getting this error:

 'The requested resource (/servlet/HelloServlet) is not available'. (404)
 The servlet is not getting located by tomcat for some reason. This
 happens
 when I go to localhost:8080/servlet/HelloServlet.
 The servlet engine is running, tomcat is running.

 I did this:

 javac -classpath 
 /usr/local/tomcat/apache-tomcat-6.0.14/lib/servlet-api.jar
 HelloServlet.java

 and I was able to at least compile the servlet into a .class file.

 If  you have tomcat installed, there should be an html document on how to
 configure it somewhere like here :
 file:///usr/local/tomcat/apache-tomcat-6.0.14/webapps/docs/config/server.html
 I've been studying this document trying to figure out what I need to do, 
 but
 so far to no avail.

 I added the folowing Context element to my context.xml, located in
 $CATALINA_HOME/conf:

 Context path= docBase=webapps/ROOT debug=0 reloadable=true

crossContext=true
/Context


 My HelloServlet.class is located in .../webapps/ROOT/WEB-INF/classes
 In addition I added the following element to the bottom of my
 /webapps/ROOT/WEB-INF/web.xml to try to provide some sort of servlet
 mapping, I think:

 servlet
 servlet-nameHelloWorld/servlet-name
 servlet-classHelloWorld/servlet-class
  /servlet

 I got this info mostly from doing Google research, so I dont know
 how well this applies. The only thing I can think of at this point is 
 maybe
 I need to set my
 java -classpath also,  but attempts to set it to my .../classes directory
 fail. I'm not sure exactly what it needs to be set to, and if you have
 to provide a .class filename every time. Could anybody help clarify
 some of this ? Thanx
 -- 
 View this message in context: 
 http://www.nabble.com/Configuring-tomcat%2C-servlet-not-found-error-tp14425976p14425976.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-tomcat%2C-servlet-not-found-error-tp14425976p14490718.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: NoClassDefFoundError: TagExtraInfo missing?

2007-12-24 Thread David Smith
Not obviously.  J2EE contains all the stuff tomcat contains plus some.  
I suspect the duplication of the servlet and jsp api classes in both 
tomcat and j2ee is causing the issues.  The OP should either 1) use a 
j2sdk w/ tomcat or 2) use j2ee w/o tomcat, but never j2ee with tomcat.  
Adding the jsp-api to the webapp's WEB-INF/lib directory compounds the 
issue further rather than cleaning anything up.


--David

Martin Gainty wrote:

Obviously its not there otherwise he wouldnt be getting the error
in other words copying some jar (you dont know anything about) to server/lib
is the preferred action?
I know that the container supports only a certain Servlet / JSP spec and I
also know these libraries are supposed to be there
I was giving the op the safest way to test TagLib functionality from a
(unknown) jar and NOT crash tomcat in the process

It would be easy to back out in case it did'nt work but to back out
something placed in server/lib ?

M-

- Original Message -
From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, December 24, 2007 12:16 PM
Subject: Re: NoClassDefFoundError: TagExtraInfo missing?


  

Martin Gainty wrote:


Abel
put jsp-api.jar in /WEB-INF/lib
M-
  

*Never* do that.

It will already be present in tomcat/server/lib or tomcat/lib depending
on your version, copying it to WEB-INF/lib will cause your app and web
server to behave unpredictably, and likely fail to work as intended.

p




- Original Message -
From: AbelMacAdam [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, December 24, 2007 6:58 AM
Subject: NoClassDefFoundError: TagExtraInfo missing?


  

Hi,

I'm trying to bootstrap my knowledge on Struts. As I tried an example I


got
  

the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

Searching on this error I got the impression I needed j2ee.jar. I


downloaded
  

and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
library contains the following jar files:
javaee.jar (and that jar file includes a
javax/servlet/jsp/tagext/TagExtraInfo.class!)
j2ee.jar
j2ee-svc.jar

After rebooting Tomcat (6.0) in Eclipse I still got that error. What do


I
  

need to do the remove this error and continue with the example?

TIA,
Abel

FWIW - Environment:
Apache 2.2.6
Java 1.6.0_03
Java EE 5
Struts 1.3.8
Tomcat 6.0
Windows XP
--
View this message in context:


http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
  

34p14487034.html
  

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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]


  

-
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]

  



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