Re: BUG? - Mysterious chunked behavior

2007-03-12 Thread Peter Kennard
Aaack - I really REALLY have to oppolgize.  One of the people I 
manange gave me the dumper client, and I went through it and the 
problem is there :|


I'm really really sorry if I caused any flamage and wasted anyone's time.
I respect you people for hammering on me about it.  I'll try to audit 
things a bt more before posting in the future.


I stuck my neck out and am now under some pressure to prove the 
tomcat Apache infrastructure is an appropriate choice for a big 
project.  I am still conviced it is appropriate.


Peter K.

At 22:29 3/11/2007, you wrote:

 - Are the results I get from those 3 examples
 expected ?

I actually tried to reproduce your experience.

wget, FireFox etc. - all these HTTP-clients don't have any problems with
tomcat.


What HTTP-client are you using? Is it self-written maybe?




-
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: BUG? - Mysterious chunked behavior

2007-03-12 Thread Peter Kennard
Not that anyone cares, but the apparent lost chunk problem was 
caused by the header scanner in the dumper client.  He created an 
InputStreamReader() and it apparently reads exactly two lines ahead 
into it's buffer.  Since my test case was one line per chunk it 
would reliably drop (have in its buffer) the first chunk's length, 
and the following one text line.


I'm sorry for wasting anyone's time.
PK


-
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: Should mod_jk-1.2.21-apache-2.2.x-linux-i686 support Apache2.0 as well?

2007-03-12 Thread Peter . Henningsen
Hello,

thanks for the clarification. I suspected something like this although the 
maschine is still running reasonably well.
I will upgrade the Webserver to 2.2 as the present release came with 
Oracle and seems to have no apxs-Files.

Thanks a lot,

Peter Henningsen
Senior Consultant




Rainer Jung [EMAIL PROTECTED] 
09.03.2007 20:49
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
SPAM Re: Should mod_jk-1.2.21-apache-2.2.x-linux-i686 support Apache2.0 
as well?






Hello,

module binaries for Apache httpd 2.0 and 2.2 are definitely 
incompatible. Combining httpd 2.0 and mod_jk compiled for 2.2 will 
result in completely undefined behaviour!

Although most modules compile unchanged from source for 2.0 and 2.2 (so 
does mod_jk), the resulting binary only works for the httpd version (2.0 
or 2.2) it has been compiled for.

Since there are no 2.0 binaries for download available until now, you 
need to compile the module yourself. If you've got apxs/apxs2 on your 
system (a version that came with your httpd 2.0) and a gcc compiler, 
compiling mod_jk is *very* simple. Just ./configure 
--with-apxs=/path/to/apxs and then make.

Regards,

Rainer

[EMAIL PROTECTED] wrote:
 Hello,
 
 I guess everyone has heard about the security issue that was fixed in 
 mod_jk recently.
 
 I did install the new version, but since then I see a lot of log entries 

 from mod_jk like :
 
 jk_uri_worker_map.c (614)]: In jk_uri_worker_map_t::map_uri_to_worker, 
 wrong parameters
 
 The Apache Log shows entries like
 ...
 Destroying config 0x800b5c10
 Creating new config (0x800d8060) for (null)
 ...
 
 The maschines seem to work fine, but I suspect, I have installed a wrong 

 connector version.
 
 My Tomcat 5.5 and Apache2.0 are on a MACHTYPE=i686-suse-linux
 
 I installed  mod_jk-1.2.21-apache-2.2.x-linux-i686.so as binary as there 

 is no linux binary for apache2.0.
 I have not found decisive information about what version to use in the 
 documentation.
 
 So here is my question at last: Should the mod_jk apache2.2 binary 
support 
 also apache 2.0 (and the errors are caused by something else)?
 
 Kind regards,
 
 Peter Henningsen
 Senior Consultant

-
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: how to intimate the user when his session invalidation occurs in form based authentication

2007-03-12 Thread org


Hi SANGAMESHWAR,
I also had no luck with using error page tags in tomcat, they dont work.
I really think you should have a separate login page, and then let the users 
navigate to frames etc.
The only way I could get an tailor made error page to display properly was 
by using programmitic security in a servlet.. good luck



- Original Message - 
From: SANGAMESHWAR ALLADI [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, March 12, 2007 7:54 AM
Subject: how to intimate the user when his session invalidation occurs in 
form based authentication




*Scenario :*

I have developed a state full web application using form based Container
managed security of Tomcat 5.5.20. In this web application state of user 
is

maintained by container itself.



My web application consists of only JSP pages grouped into folder each
having index.jsp as default page and the access to it is protected by
Container using form based authentication. So when ever a request goes to
server, it sends a login page for the authentication.





The index page consists of two frames. One having the menu of this
application and other having the content of the menu item selected. Actual
problem occurs when the user clicks in the menu frame after session is
invalidated then the user is getting the login page in the content frame.



*How can I intimate the user about his session invalidation? *



And also



Some times I am getting *408 / 409(these two status code are coming in IE)
or connection reset (in Mozilla)* error when the login times out when he
enters the user id and password in the login page. I am handling status 
code
408 (login time out) error by using error page tag of web.xml. Then also 
it

is unable to send error handling page for some requests.

thanks in advance,

From,

Sangameshwar.A




-
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: Occasional XML parsing error when Tomcat is busy

2007-03-12 Thread Roberts, Gerallt
Thank you for the suggestion, I will check it again.

However since I managed to recreate the problem by issuing the requests 
serially, waiting for the previous request to finish before issuing the next, I 
thought I had eliminated any potential threading issues.
Is my assumption correct? If so, the problem is somewhere else.

Thanks
Gerallt

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: 10 March 2007 13:45
To: Tomcat Users List
Subject: Re: Occasional XML parsing error when Tomcat is busy

looks like a synchronization issue. check your code is threadsafe where
things are shared between threads. On request is propably overriding
datas while another is reading them.
Roberts, Gerallt a écrit :
 Hello,

  

 I have a web application that processes files, which has been working
 fine, however when it is put under a heavy load there is an occasional
 failure. I have managed to recreate the error by sending 128 documents
 at it in a serial fission, and I usually get 1 failure. Unfortunately
 there is no log of the actual error, but I do get
 org.xml.sax.SAXParseException: XML document structures must start and
 end within the same entity on the client.

  

 Can anyone suggest what the cause might be?

 The environment is:

 Tomcat 5.0.25 

 axis 1.1 

 xerces 1.4.4

  

 The, access log has the following entry, the third line is the failure,
 I think the first 500 is the internal server error, the second number
 is always 500 which suggest the cause is the same despite it's
 intermittent nature.

  

 199.196.51.54 - - [07/Mar/2007:15:54:13 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18244

 199.196.51.54 - - [07/Mar/2007:15:54:20 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18247

 199.196.51.54 - - [07/Mar/2007:15:54:25 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 500 500

 199.196.51.54 - - [07/Mar/2007:15:54:37 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18249

 199.196.51.54 - - [07/Mar/2007:15:54:43 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18244

  

 With logging set to debug mode I get the following error, I am hoping
 this is familiar to someone.

  

 AxisFault

  faultCode:
 {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 http://schemas.xmlsoap.org/soap/envelope/%7dServer.userException 

  faultSubcode: 

  faultString: org.xml.sax.SAXParseException: XML document structures
 must start and end within the same entity.

  faultActor: 

  faultNode: 

  faultDetail: 

   {http://xml.apache.org/axis/}stackTrace
 http://xml.apache.org/axis/%7dstackTrace :
 org.xml.sax.SAXParseException: XML document structures must start and
 end within the same entity.

   at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
 wn Source)

   at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
 Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)

   at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
 Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

   at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
 Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknow
 n Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
 patcher.dispatch(Unknown Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
 wn Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)

   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)

   at javax.xml.parsers.SAXParser.parse(Unknown Source)

   at
 org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
 nContextImpl.java:242)

   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)

   at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)

   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318)

   at
 org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

   at
 org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
 ava:339)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 

Re: File Content Not Saved To Server

2007-03-12 Thread org



Its been a really long time since I played with Applets, but if I remember 
correctly I think you screwed. I dont think an applet container will let you 
access a local file system and send it to a server, it would create huge 
security holes. So even if you get the code right, browser will start 
outputtung security exceptions if I understand correctly, cant actually 
make out how you accessing the local file.


I think you gonna have to use a file uploader... theres one on the apache 
site.
My general comment is that in general Java Applets are dead microsoft 
saw to that.


If the user has Java on their machine and you really really have to have a 
Swing type app then another way is to

maybe use http://coolese.100free.com/
I have a free application server... easy to use, you can let them run the 
Swing application FROM the server.
I think they would still have to pull a very small App from the browser, but 
it will start very quick.
I think as soon as you try run any local disk access from an Applet you 
outta luck.






- Original Message - 
From: Teh Noranis Mohd Aris [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 5:10 AM
Subject: Re: File Content Not Saved To Server



Dear All,

 I really need this program to work as soon as possible and need urgent 
help! Mr. Christopher Schultz have given suggestions on how to solve the 
problem and I've tried his suggestions. Thank you so much, as half of the 
problem have been solved. I've created 3 files as suggested: 
SaveFileApplet.java, SaveFileApplet.html and SaveFileServlet.java. This 
solves the problem of the creation of a null file by the system. Now, a 
file name that was input by the user was created BUT the problem is that, 
when I open the file, the word null was written to the file NOT the file 
content. The filename parameter was sent from the applet to the servlet 
BUT the file content parameter was not sent. This means that the file 
content parameter does not exist and the servlet did not receive the file 
content parameter! Did I pass the file content correctly from 
SaveFileApplet.java and did the SaveFileServlet receive the parameter 
using req.getParameter(teditor);? I'm attaching the 3 files
(errer-free) as I mentioned. I really really hope that anyone can help me 
solve this problem. Thank you so much.


 FIRST FILE: SaveFileApplet.java

 // C:\jakarta-tomcat-4.1.31\webapps\ROOT\SaveFileApplet.java

 import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JApplet;
import javax.swing.text.BadLocationException;
import java.net.*;
import java.io.*;
import java.util.*;

 public class SaveFileApplet extends JApplet implements ItemListener, 
ActionListener

{

JPanel panel1, panellabel, panelbutton, paneltext;
JTextField namefile;
JButton jbtSave;
JTextArea textEditor;
JLabel labelfile;
public void init()
{

 Container container = getContentPane();
 namefile = new JTextField(10);
 panel1 = new JPanel();
 panellabel = new JPanel();
 panelbutton = new JPanel();
 paneltext = new JPanel();

 labelfile = new JLabel(File Name);

 panellabel.setLayout(new FlowLayout(FlowLayout.LEFT,50,0));
 panellabel.add(labelfile);
 panellabel.add(namefile);

 panelbutton.setLayout(new GridLayout(1,1));
 panelbutton.add(jbtSave = new JButton(Save));

 textEditor = new JTextArea(18,63);
 textEditor.setFont(new Font(monospaced,Font.PLAIN,12));
 JScrollPane scrollPane1 = new JScrollPane(textEditor);
 Linenumber linenumber1 = new Linenumber ( textEditor );
 scrollPane1.setRowHeaderView(linenumber1);
 paneltext.add(scrollPane1);

 panel1.add(panellabel);
 panel1.add(paneltext);
 panel1.add(panelbutton);
 container.add(panel1);

 jbtSave.addActionListener (
new ActionListener() {
 public void actionPerformed (ActionEvent en) {
  savefile();
 }
}
);

   } // end init

 public void actionPerformed(ActionEvent ae)
 {

 } // End action perform

 public void itemStateChanged(ItemEvent ie)
 {

 } // End item state changed

 public void savefile()
 {

   String filename = namefile.getText();
   String teditor = textEditor.getText();
 URL servletUrl = null;
   URLConnection con;

   String servletName = 
http://localhost:8080/examples/servlet/SaveFileServlet;

  try
{
 servletUrl = new URL(servletName + ?filename= + filename);
 con = servletUrl.openConnection();
 con.setDoOutput(true);
 con.connect();

 ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
 DataOutputStream out = new DataOutputStream(byteOut);
 out.writeUTF(teditor);
 out.flush();
 out.close();

 DataInputStream in = new DataInputStream(con.getInputStream());
 in.close();
}

catch(Exception e)
{
 System.out.println(Exception caught...+e);
}
} // end savefile
 } // end class SaveFileApplet

 SECOND FILE: SaveFile Applet.html

 html
head
titlesave file/title
/head
body BGCOLOR=WHITE
div align=center
table WIDTH=70% align=center
tr align=center bgcolor=#CCC66Htd SAVE FILE 

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-12 Thread Rajendra Sakpal

Thanks ORG.  The ServletContext method solved my problem.

Rajendra



On 3/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi Rajendra,

This also confused the hell out of me.

Here are some tips

If a url is relative, its relative to the page
eg
moreInfo/Details/SomePage.htm
So its going to depend on the page the user is viewing and go from
there...
just like normal HTML pages.

When you want it to go to an absolute relative page LOOK at the folders
under you project name, or the folders under Web Pages in netbeans ONLY.

So in Netbeans if you have Details/SomePage.jsp under Web Pages and you
want
the link to go there, you would write it as
/Details/SomePage.jsp

That little  / at the beginning makes it go to that page regardless of the
page it is in.

Now when you want to get at your class files, you normally just use the
class name, no paths.
eg:
jsp:useBean scope=request id=searchBean
class=com.myco.searchResultBean /

BUT if you want to get at say the actual bytes then one way is to
   ServletContext context = getServletContext();
   sWebInfPath = context.getRealPath(/WEB-INF/);

This will give you that actual location on your file system and then you
can
just
use (new File) etc to get at the physical file in the sub folder.

A more advanced function is to go the same way as you would if you wanted
to
extract the bytes of a class from a Jar file

   in = getClass().getResourceAsStream(sPackageName);

it also works on Tomcat.

Hope that helps.

Heres some free software for you  http://coolese.100free.com/
All done on the amazing Tomcat

- Original Message -
Hi,

I am using TOMCAT 5.5.  I am creating a file in class that is called from
a
JSP.  However, the relative path that I have specified in the class
doesn't
seem to work.  The path that I have used is
:/webapps/Jonathon/WEB-INF/etc/subscriber.txt.

Can someone please let me know, what is wrong with the relative path ?

thanks in advance,
Rajendra


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




HTTP 400 error when deployment descriptor (web.xml) is used.

2007-03-12 Thread Rajendra Sakpal

Hi,



I have created a web application that is running fine with the Invoker
servlet settings enabled in the Tomcat 5.5\conf\web.xml.  Next, I tried
the following:

1. Added a web.xml in the WEB-INF directory of my application.
2. Re-started my server.
3. Attempted to access the homepage of my application.

Result: I get a HTTP 400 error. Following is the error message:

===
*type* Status report

*message* */Jonathon/UI/Welcome.htm*

*description* *The requested resource (/Jonathon/UI/Welcome.htm) is not
available.*

===

Queries:

1. What could be wrong with the web.xml ? Do I need to revert the Invoker
servlet settings enabled in the Tomcat 5.5\conf\web.xml ?

2. Do all the servlets used in the application need to be registered in
web.xml of the deployment ?

3. Do I need to change the calls for the servlets made in the
JSPs/HTMLs/Servlets to one specified in the servlet-name parameter in the
web.xml ?

Example:



Earlier, [with no deployment descriptor], the HMTL reference to servlet
was as follows:

form action=/Jonathon/servlet/business.ResponseServlet_requestDispatch
method=POST

Do I need to change it to :

form action=/Jonathon/confirmation method=POST





I have attached the web.xml of my deployment with the mail for your
reference.




thanks  regards,

Rajendra

?xml version=1.0 encoding=ISO-8859-1?
web-app 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;
version=2.4

web-app

	servlet
	servlet-nameconfirmation/servlet-name
	servlet-classbusiness.ResponseServlet_requestDispatch/servlet-class
	/servlet

	servlet-mapping
	servlet-nameconfirmation/servlet-name
	url-pattern/servlet/business/*/url-pattern
	/servlet-mapping

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

Cannot start tomcat5 service with jrockit

2007-03-12 Thread Igor Shevchenko
Hello,
I'm experiencing problems with starting tomcat as a service under Win2003 
server with jrockit jvm.
Tomcat version is 5.5.20 and it starts successfully using startup.bat 
script, but when trying to start it as a service I have the following 
output in jakarta-service log:
[2007-03-12 04:45:48] [info] Running Service...
[2007-03-12 04:45:48] [info] Starting service...
[2007-03-12 04:45:48] [173  javajni.c] [error] The specified module could 
not be found.
[2007-03-12 04:45:48] [924  prunsrv.c] [error] Failed creating java 
C:\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\jrockit\jvm.dll
[2007-03-12 04:45:48] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-12 04:45:48] [info] Run service finished.
[2007-03-12 04:45:48] [info] Procrun finished.
I've tried googling and reading mailing archives but couldn't find a 
solution.

Best regards,
---
Igor Shevchenko


Re: Occasional XML parsing error when Tomcat is busy

2007-03-12 Thread David Delbecq
Threading issue might be due to unsafe sharing of a global variable. It
might be that in some case you don't clean it properly, explaining why
it seems to fails also with serialized request.

Also, best way to be sure request are serialized is to limit tomcat to
exactly one HTPP processor.

En l'instant précis du 12/03/07 10:50, Roberts, Gerallt s'exprimait en
ces termes:
 Thank you for the suggestion, I will check it again.

 However since I managed to recreate the problem by issuing the requests 
 serially, waiting for the previous request to finish before issuing the next, 
 I thought I had eliminated any potential threading issues.
 Is my assumption correct? If so, the problem is somewhere else.

 Thanks
 Gerallt

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: 10 March 2007 13:45
 To: Tomcat Users List
 Subject: Re: Occasional XML parsing error when Tomcat is busy

 looks like a synchronization issue. check your code is threadsafe where
 things are shared between threads. On request is propably overriding
 datas while another is reading them.
 Roberts, Gerallt a écrit :
   
 Hello,

  

 I have a web application that processes files, which has been working
 fine, however when it is put under a heavy load there is an occasional
 failure. I have managed to recreate the error by sending 128 documents
 at it in a serial fission, and I usually get 1 failure. Unfortunately
 there is no log of the actual error, but I do get
 org.xml.sax.SAXParseException: XML document structures must start and
 end within the same entity on the client.

  

 Can anyone suggest what the cause might be?

 The environment is:

 Tomcat 5.0.25 

 axis 1.1 

 xerces 1.4.4

  

 The, access log has the following entry, the third line is the failure,
 I think the first 500 is the internal server error, the second number
 is always 500 which suggest the cause is the same despite it's
 intermittent nature.

  

 199.196.51.54 - - [07/Mar/2007:15:54:13 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18244

 199.196.51.54 - - [07/Mar/2007:15:54:20 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18247

 199.196.51.54 - - [07/Mar/2007:15:54:25 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 500 500

 199.196.51.54 - - [07/Mar/2007:15:54:37 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18249

 199.196.51.54 - - [07/Mar/2007:15:54:43 +] POST
 /fdkservices/services/FdkWatermark HTTP/1.0 200 18244

  

 With logging set to debug mode I get the following error, I am hoping
 this is familiar to someone.

  

 AxisFault

  faultCode:
 {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 http://schemas.xmlsoap.org/soap/envelope/%7dServer.userException 

  faultSubcode: 

  faultString: org.xml.sax.SAXParseException: XML document structures
 must start and end within the same entity.

  faultActor: 

  faultNode: 

  faultDetail: 

   {http://xml.apache.org/axis/}stackTrace
 http://xml.apache.org/axis/%7dstackTrace :
 org.xml.sax.SAXParseException: XML document structures must start and
 end within the same entity.

   at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
 wn Source)

   at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
 Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)

   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
 Source)

   at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
 Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
 Source)

   at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

   at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
 Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknow
 n Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
 patcher.dispatch(Unknown Source)

   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
 wn Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)

   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
 Source)

   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)

   at javax.xml.parsers.SAXParser.parse(Unknown Source)

   at
 org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
 nContextImpl.java:242)

   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)

   at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)

   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:318)

   at
 

No run servlet

2007-03-12 Thread Cristian Nieto
I have uncomment the invoker parameter in tomcat's web.xml.

How i solver this error?

 

03/12/2007 12:12:34 PM org.apache.catalina.core.ApplicationContext log

INFO: Marcando el servlet
org.apache.catalina.INVOKER.org.empresa.general.mvc.listado.MyServlet como
no disponible

03/12/2007 12:12:34 PM org.apache.catalina.core.ApplicationContext log

GRAVE: Error loading WebappClassLoader

  delegate: false

  repositories:

-- Parent Classloader:

[EMAIL PROTECTED]

 org.empresa.general.mvc.listado.MyServlet

java.lang.ClassNotFoundException: org.empresa.general.mvc.listado.MyServlet

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1352)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1198)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
34)

at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)

at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:369)

at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
.java:368)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

at java.lang.Thread.run(Thread.java:595)

03/12/2007 12:12:34 PM org.apache.catalina.core.ApplicationContext log

GRAVE: invoker: No puedo reservar espacio para instancia de servlet para
trayectoria /servlet/org.empresa.general.mvc.listado.MyServlet

javax.servlet.ServletException: El Arropador (Wrapper) no puede hallar clase
de servlet
org.ciguadaira.sipal.general.mvc.listado.InformeListadoExcelServlet o una
clase de la que depende

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
42)

at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)

at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:369)

at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
.java:368)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at

Problem getting comet to work

2007-03-12 Thread mattd1812

I am trying to write a comet servlet using the new CometProcessor api.  I am
running version 6.0.10 on windows as a service.  I cannot get it to call the
event method.  I am using the Nio connector.  After running tomcat in debug
mode, I think I tracked the problem down to this line in
StandardWrapperValve:

if (servlet instanceof CometProcessor 
 request.getAttribute(org.apache.tomcat.comet.support)
== Boolean.TRUE) {

And to be more specific it seems to be the servlet instanceof
CometProcessor line.  I have read other places that custom classloaders can
cause this behavior.  So my question is, am I doing something wrong
specifically to cause this to happen, and if so is there a way that I can
remedy this?  Thanks everyone in advance for their help.
-- 
View this message in context: 
http://www.nabble.com/Problem-getting-comet-to-work-tf3389224.html#a9433691
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: Possible JSTL/EL bug in 6.0.10

2007-03-12 Thread Gerald Holl

Rémy Maucherat wrote:

On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote:

Well, I think I can't give you access to all the details of our (secret)
project. Anyway, thanks for the offer.


Ok, I am obviously not going to look at your application. What I meant
is I would look at a minimal war (containing only one JSP).


I tried the example from [1]and it works ...
I have no idea what's wrong with my application.

Gerald

[1] 
http://groups.google.com/group/javaee5/web/setup-enironment-tomcat-6-jsf-1-2-jstl-1-2


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



EJB 3.0 and Hibernate

2007-03-12 Thread Scott Purcell
Hello,

Looking at incorporating the Java Persistence API (EJB 3.0) and was wondering 
if Tomcat 5.5 supports this. It looks like we need container managed services 
and was wondering if we can use Tomcat instead of JBoss?

Thanks,
Scott


Re: Multiple instances problem...

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

Peter Björkman wrote:
 Hi! I'm setting up an environment where I need a lot of differens web
 containers running, and part of that is setting up tomcat5.0 to run
 multiple instances.
 
 I tried to find a startup/stop script and this is what I came up
 with:

[snip]

 but that won't work, it randomly starts, stopping stops all instances
 and the general behaviour is strange.
 
 Any ideas? Can you point me to a better startup script

Not sure what's wrong with your script, but I have used this one for
years. It's completely parameterized and intended to be used from ant,
although there's no reason not to use it directly from the command line.

Hope this helps,
- -chris

#!/bin/sh
# name: tomcat.sh
# args:
#   start|stop
#   java-home=S OPTIONAL (uses JAVA_HOME otherwise)
#   tomcat-home=S   REQUIRED
#   tomcat-port=N   REQUIRED
#   tomcat-shutdown-port=n  REQUIRED
#   project-base-dir=S  REQUIRED

SCRIPT=`basename $0`
USAGE=usage: ${SCRIPT} start|stop [java-home=S] tomcat-home=S
tomcat-port=N tomcat-shutdown-port=N project-base-dir=S

while test $# -gt 0
do
case x$1 in
xstart)
MODE=start
;;
xstop)
MODE=stop
;;
xjava-home=*)
JAVA_HOME=`expr $1 : 'java-home=\(.*\)'`
;;
xtomcat-port=*)
TOMCAT_PORT=`expr $1 : 'tomcat-port=\(.*\)'`
;;
xtomcat-shutdown-port=*)
TOMCAT_SHUTDOWN_PORT=`expr $1 :
'tomcat-shutdown-port=\(.*\)'`
;;
xproject-base-dir=*)
PROJECT_BASE_DIR=`expr $1 : 'project-base-dir=\(.*\)'`
;;
xtomcat-home=*)
TOMCAT_HOME=`expr $1 : 'tomcat-home=\(.*\)'`
;;
x*)
echo Invalid argument: $1.
echo ${USAGE}
exit 1
;;
esac
shift
done
if test -z ${TOMCAT_PORT} -o -z ${TOMCAT_SHUTDOWN_PORT} -o -z
${PROJECT_BASE_DIR} -o -z ${TOMCAT_HOME}
then
echo ${USAGE}
exit 1
fi
case x$MODE in
xstart|xstop)
;;
*)
echo ${USAGE}
exit 1
;;
esac

CATALINA_BASE=$PROJECT_BASE_DIR

export TOMCAT_SHUTDOWN_PORT TOMCAT_PORT CATALINA_BASE TOMCAT_HOME

echo ${SCRIPT}: JAVA_HOME is $JAVA_HOME
echo ${SCRIPT}: TOMCAT_PORT is $TOMCAT_PORT
echo ${SCRIPT}: TOMCAT_SHUTDOWN_PORT is $TOMCAT_SHUTDOWN_PORT
echo ${SCRIPT}: CATALINA_BASE is $CATALINA_BASE
echo ${SCRIPT}: TOMCAT_HOME is $TOMCAT_HOME

case x${MODE} in
xstart)
echo ${SCRIPT} signing off - exec'ing $TOMCAT_HOME/bin/startup.sh
exec $TOMCAT_HOME/bin/startup.sh
;;
xstop)
echo ${SCRIPT} signing off - exec'ing $TOMCAT_HOME/bin/shutdown.sh
exec $TOMCAT_HOME/bin/shutdown.sh
;;
esac
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9WQ19CaO5/Lv0PARAryDAJ9BGZGW6xCMX+O55lnhyntw0E99RQCgg/71
DPkGrIzaXMbwh+/5heCeTtc=
=uOP+
-END PGP SIGNATURE-

-
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: Keep Alive handling

2007-03-12 Thread Peter Kennard
Does Tomcat support Keep Alive, as a stand alone server, for multiple 
Client POST requests to different servlet paths where both request 
and response are Transfer-Encoding: chunked?


Is there a definition somewhere of when tomcat will drop a connection 
when keep-alive is specified?


Thanks.
PK


-
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: File Content Not Saved To Server

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Teh,

Teh Noranis Mohd Aris wrote:
 Now, a file name that was input by the user
 was created BUT the problem is that, when I open the file, the word
 null was written to the file NOT the file content.

You probably have a null content variable. String.valueOf(null) returns
null, so that's probably what's happening.

 The filename
 parameter was sent from the applet to the servlet BUT the file
 content parameter was not sent.

You're going to want to fix that.

 This means that the file content
 parameter does not exist and the servlet did not receive the file
 content parameter!

Sounds about right. If I were you, I would modify my program to do
nothing if there's no file content parameter. (Well, I would actually
use PUT and place the content in the body of the request, but...).

   servletUrl = new URL(servletName + ?filename= + filename);
   con = servletUrl.openConnection();
   con.setDoOutput(true);
   con.connect();

So far so good.

   ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
   DataOutputStream out = new DataOutputStream(byteOut);
   out.writeUTF(teditor);
   out.flush();
   out.close();

Uhh... you put your data into a ByteArrayOutputStream and then did
nothing with it at all. You need to write it to the URLConnection's
OutputStream:

If you are going to be using UTF, you need to specify that when
connecting to your server so it knows what character set you are using.
Use the Content-Type header for this:

con.setRequestProperty(Content-Type, text/plain; charset=UTF-8);

DataOutputStream uses modified UTF-8, and is actually intended to be
used with Java object serialization. Don't do this. Instead, use real
UTF-8 like this:

Instead of the above, do this:

OutputStreamWriter out
   = new OutputStreamWriter(con.getOutputStream(), UTF-8));
out.write(teditor, 0, teditor.length());
out.flush();
out.close();

   DataInputStream in = new DataInputStream(con.getInputStream());
   in.close();

To be correct, you ought to empty this inputstream before closing it.

Also, if you ever hope to use non-text data, you should change your
content type to application/octet-stream with no encoding at all (the
encoding is basically raw). You'll also want to write bytes instead of
Strings to your output stream and get rid of the OutputStreamWriter.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9WgG9CaO5/Lv0PARAmeOAJ9HpfJPFQxkH2MTUnFn0qWs0MZ/PwCfY1Fj
GvWkPIZAvF8TDKBzPTJ+p2E=
=crVh
-END PGP SIGNATURE-

-
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: EJB 3.0 and Hibernate

2007-03-12 Thread Ron Wheeler
You might look at Spring  to help make this hang together 
www.springframework.org


Ron

Scott Purcell wrote:

Hello,

Looking at incorporating the Java Persistence API (EJB 3.0) and was wondering 
if Tomcat 5.5 supports this. It looks like we need container managed services 
and was wondering if we can use Tomcat instead of JBoss?

Thanks,
Scott

  


-
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: GUI implementation with tomcat

2007-03-12 Thread Alicia Sánchez-Mora

Hi kristian,

thank you for your explanation but still the topic is not clear for me. As
far I understand from your answer, I have to run the Frame fom my Client.
ok, I did it. Then, each time I call a service  I try to add a new message
on my window, both from the service class and form the client class, and I
still have th same problem: or nothing apperas or i have to create a new
Frame for each message (for each call)

Any clue?

thanks in advance

Alicia

On 3/8/07, Kristian Rink [EMAIL PROTECTED] wrote:



Alicia;

first off; thanks for your explanation and pointing things out a little
more. :) I think I slightly understand the structure of your
application but honestly I doubt it will work out this way:


[Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007
16:24:33 +0100]

 public class ListItems  {
   List listOptions;
   private static ListItems instance;
   private Frame f;

This is java.awt.Frame, isn't it?

In my opinion (list people feel free to correct me if I'm all too wrong
here), the issue with your application is that you try to instantiate
and access the java.awt.Frame object from within code running on your
server but you actually want it to appear and work on your client. This
is not going to work out. To do so, you need to have the client code
(containing the Frame stuff) run locally on the client - the fact that
some window does actually appear is likely due to that server and
client runs on the same machine in your setup.

To achieve the desired effect, you should really try separating the web
service and the window connecting to it into two different, separate
applications (a webapp hosting the service, and a desktop application
or an applet running the window/frame). Then, you need to implement
logic in your client to remotely call the web service and possibly get
some meaningful data from it.

Don't know if this really is a helpful answer, feel free to ask if you
need more assistance. :)

Cheers,
Kristian

--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

-
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: Keep Alive handling

2007-03-12 Thread Peter Kennard

Anyway - I answered my own question.
I wrote a test, Keep Alive works fine with chunked content.

If anyone wants the test code let me know.  (should I post it?)  It 
is small - about 150 lines worth, all java.


PK

Does Tomcat support Keep Alive, as a stand alone server, for 
multiple Client POST requests to different servlet paths where both 
request and response are Transfer-Encoding: chunked?


Is there a definition somewhere of when tomcat will drop a 
connection when keep-alive is specified?


Thanks.
PK




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



Problem with Roles, too new to know where to look

2007-03-12 Thread Aurynn Shaw

I still need help with this.

The roles I have assigned to my users aren't getting picked up by the  
authentication system, either with Tomcat's LDAP auth module via  
JNDI, as well as trying it in JBoss via the JbossSecurityMgrRealm.


My roles ARE assuredly correct, as well as properly defined in my  
web.xml - I can see them as being able to be checked against when the  
authentication system tries to walk over the user roles that aren't  
there.


As it happens with all three - both the Tomcat JNDI connector, as  
well as the Jboss connectors, it leads me to believe that it's a  
problem in the Tomcat side of the authentication/role checking.


I don't know where to look, however, to check WHY my user's roles are  
being loaded.


Please help?
-A

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



Problem with deploy servlet

2007-03-12 Thread Cristian Nieto
I am developer in netbeans 5.5 and tomcat 5.5.17.
I have nine servlet and i am uncomment the function INVOKER in the tomcat's 
web.xml, but tomcat not find the servlet and send me this error:

03/12/2007 03:46:50 PM org.apache.catalina.core.ApplicationContext log
INFO: Marcando el servlet 
org.apache.catalina.INVOKER.org.empresa.general.mvc.listado.MyServlet como no 
disponible
03/12/2007 03:46:50 PM org.apache.catalina.core.ApplicationContext log
GRAVE: Error loading WebappClassLoader
  delegate: false
  repositories:
-- Parent Classloader:
[EMAIL PROTECTED]
 org.empresa.general.mvc.listado.MyServlet 
java.lang.ClassNotFoundException: org.empresa.general.mvc.listado.MyServlet 
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at  
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
03/12/2007 03:46:50 PM org.apache.catalina.core.ApplicationContext log
GRAVE: invoker: No puedo reservar espacio para instancia de servlet para 
trayectoria /servlet/org.empresa.general.mvc.listado.MyServlet
javax.servlet.ServletException: El Arropador (Wrapper) no puede hallar clase de 
servlet org.empresa.general.mvc.listado.MyServlet o una clase de la que depende
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1042)
at  
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at  
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 

Re: EJB 3.0 and Hibernate

2007-03-12 Thread Markus Schönhaber
Scott Purcell wrote:

 Looking at incorporating the Java Persistence API (EJB 3.0) and was
 wondering if Tomcat 5.5 supports this. It looks like we need container
 managed services and was wondering if we can use Tomcat instead of JBoss?

Tomcat doesn't support the JPA out of the box. But since it's possible to 
write standalone applications using JPA I don't see a reason why it shouldn't 
be possible with Tomcat. You have to provide the relevant classes to your 
WebApp, though. Since you seem to be working with Hibernate: AFAIR the 
Hibernate Annotations package contains ejb3-persistence.jar which should get 
you going.

Wrt the container managed services you need, I can't help you. Whether or not 
Tomcat is an option for you propably depends on which services you really 
need.

Regards
  mks

-
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: Multiple instances problem...

2007-03-12 Thread Kirchhoff, Florian
Hi Peter,

are you making sure to use different ports for each instance
for Shutdown, HTTP/HTTPS and AJP?

Florian

-Original Message-
From: Peter Björkman [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 11, 2007 6:22 PM
To: users@tomcat.apache.org
Subject: Multiple instances problem...


Hi! I'm setting up an environment where I need a lot of differens web 
containers running, and part of that is setting up tomcat5.0 to run multiple 
instances.

I tried to find a startup/stop script and this is what I came up with:

#!/bin/bash
RETVAL=$?
# Installation directory
export CATALINA_HOME=/app/webcontainers/tomcat50
# Configuration directory
export CATALINA_BASE=/etc/webcontainers/tomcat50/dev
case $1 in
 start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
  then
echo $Starting Tomcat
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
 stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
  then
echo $Stopping Tomcat
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
 *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac
exit $RETVAL

As you see I have tomcat installed under:
export CATALINA_HOME=/app/webcontainers/tomcat50
And the base for this instance is:
export CATALINA_BASE=/etc/webcontainers/tomcat50/dev

I then want to start a new instance on:
export CATALINA_BASE=/etc/webcontainers/tomcat50/live

but that won't work, it randomly starts, stopping stops all instances and the 
general behaviour is strange.

Any ideas? Can you point me to a better startup script

Regards
Peter Björkman

PETER BJÖRKMAN - SYSTEM ARCHITECT
josh / together is better / www.josh.se
sveavagen 59 / 113 59 stockholm / sweden phone +46 (0)8 650 21 07 / mobile +46 
(0)709 687 884 ###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

-
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: EJB 3.0 and Hibernate

2007-03-12 Thread Rajesh Chandra

Not sure whether this is a new module you are trying to implement or
refactoring the existing implementation...

As Ron Wheeler suggested, spring framework is one option you can try.

Regards,
Rajesh

On 3/12/07, Markus Schönhaber [EMAIL PROTECTED] wrote:


Scott Purcell wrote:

 Looking at incorporating the Java Persistence API (EJB 3.0) and was
 wondering if Tomcat 5.5 supports this. It looks like we need container
 managed services and was wondering if we can use Tomcat instead of
JBoss?

Tomcat doesn't support the JPA out of the box. But since it's possible to
write standalone applications using JPA I don't see a reason why it
shouldn't
be possible with Tomcat. You have to provide the relevant classes to your
WebApp, though. Since you seem to be working with Hibernate: AFAIR the
Hibernate Annotations package contains ejb3-persistence.jar which should
get
you going.

Wrt the container managed services you need, I can't help you. Whether or
not
Tomcat is an option for you propably depends on which services you really
need.

Regards
  mks

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




apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread acec acec
Hi,
I tested tomcat 6.0.10 using jmeter. I found the
following problem.

I defined three thread groups:
First
thread-group
thread Properties:
  Number of Threads(users): 50
  Ramp-Up Period(in seconds): 10
  Loop Count: 1000

HTTP Request
  path: /examples/servlets/servlet/HelloWorldExample

Constant Timer
  Thread Delay (in milliseconds): 10

Second
thread-group
thread Properties:
  Number of Threads(users): 50
  Ramp-Up Period(in seconds): 10
  Loop Count: 1000

HTTP Request
  path: /examples/jsp/tagplugin/foreach.jsp

Constant Timer
  Thread Delay (in milliseconds): 10

Third
thread-group
thread Properties:
  Number of Threads(users): 1
  Ramp-Up Period(in seconds): 1
  Loop Count: 1000

HTTP Request
  path: /manager/status
  Send parameter with request: XML(Name) true(Value)

Constant Timer
  Thread Delay (in milliseconds): 1000
===

I found tomcat 6.0.10 will use 100% CPU in a few
minutes, then I stop sending http request in jmeter.
After that, I accessed another jsp page:
/examples/jsp/jsp2/el/basic-arithmetic.jsp in web
browser , but tomcat gave me the following response:

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:
java.lang.OutOfMemoryError: Java heap space

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause 
java.lang.OutOfMemoryError: Java heap space

note The full stack trace of the root cause is
available in the Apache Tomcat/6.0.10 logs.

I installed Tomcat 5.5.20 and did the same testing, I
could not produce this problem on tomcat 5.5.20.
Thanks.
Arden

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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: Keep Alive handling

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

Peter Kennard wrote:
 Anyway - I answered my own question.
 I wrote a test, Keep Alive works fine with chunked content.

So... what was the problem? For days you've been railing against Tomcat
for not supporting this properly. Is there something that you overlooked?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9aru9CaO5/Lv0PARApD2AJ0VyMgAbLB5bbQKUPQLmFWkVxSP0QCfQQfO
nWs/nWmRab0FYuVE9+8jcTw=
=F1Cy
-END PGP SIGNATURE-

-
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: EJB 3.0 and Hibernate

2007-03-12 Thread org


Hi Scott,

Not sure what you mean by container managed service, tomcat on its own is a 
servlet container, not an application container, like JBoss, maybe you saw 
hibernate referenced in Spring which is a whole collection of frameworks 
built on top of servlet technology, it uses hibernate, and has an EJB 
container and everything else you can think of.  Spring competes with JBoss 
and the Sun spec. Some say the reason for EJB3 is because of Springs rapid 
growth and good idea's.


Personally I'm thankful Tomcat hasnt tried to become a Super Can... hope 
it never does.


I'm pretty certain that in the Hibernate manual on their site, I saw an 
example of how to persist in servlet technology, but remember its still not 
an application server, all they doing is allowing you to save a session bean 
to disk (dB).  Hibernate is amazing technology, didnt have time to find out 
exactly how they do it, but I think they use reflection to pick up the get 
and set methods and then, insert some method probably via BCEL into the java 
binary class constructor, so that when the class loads it gets the data from 
the dB and populates the properties but thats all it really does, its 
not a container on its own.


You can run Hibernate against any Java bean type class, doesnt have to be in 
Tomcat or anything, but I think if your code is something that was written 
for JBOSS and you trying to port it to another container... its going to be 
very very difficult. Probably uses all sorts of annotations that glue it to 
JBOSS.


Anyway if you knew all this, ignore my lecture... and its not a stupid 
question, its seems there are pure application servers out there that 
consider servlet technology to be a component of the application server... 
think it stems from the Sun spec and JBOSS is one of them. Tomcat is just a 
component in JBOSS.
Then there is the Spring framework which seems to have grown off the top of 
Servlet technology, and then there is also RESIN, which most people call a 
very good servlet container, but it also has an EJB container built in. So I 
think its becoming a grey area... Servlet technology is so powerful, I think 
its a natural rival to any other container out there.


Just to prove the point... I wrote an Application server for Tomcat, but I 
must warn you that I dont like the complexity of the Super Cans, and its 
very very simple in comparison... means you will get it running in an hour, 
but if you want to use hibernate, you have to do it yourself, there are no 
annotations or xml glue.

Can get it at http://coolese.100free.com
Anyway its interesting... will the application server absorb the servlet, or 
will the servlet trample the stand alone application server into 
extinction... I think Servlets are winning and will win, which kinda creates 
all sorts of problems for the Sun Specs. Will probably end up as, if you 
want to run a bank... use JBOSS or the Sun equiv, but for everything else I 
think its going to be servlets.


So, dont know what you doing, but dont write off Tomcat or servlets... its 
an absolutely amazing technology... worth a good look.
If it is just a web application you trying to port, and its used some Super 
Can technology for persistance, I think its going to be easier to replace 
that.

Think you'll find Tomcat a whole lot easier to learn than JBOSS.
Whew! I can waffel :)

- Original Message - 
From: Scott Purcell [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 4:11 PM
Subject: EJB 3.0 and Hibernate


Hello,

Looking at incorporating the Java Persistence API (EJB 3.0) and was 
wondering if Tomcat 5.5 supports this. It looks like we need container 
managed services and was wondering if we can use Tomcat instead of JBoss?


Thanks,
Scott


-
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: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Filip Hanik - Dev Lists
add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip 
up the file that gets generated, make it available to us and I'll take a 
look at it


Filip

acec acec wrote:

Hi,
I tested tomcat 6.0.10 using jmeter. I found the
following problem.

I defined three thread groups:
First
thread-group
thread Properties:
  Number of Threads(users): 50
  Ramp-Up Period(in seconds): 10
  Loop Count: 1000

HTTP Request
  path: /examples/servlets/servlet/HelloWorldExample

Constant Timer
  Thread Delay (in milliseconds): 10

Second
thread-group
thread Properties:
  Number of Threads(users): 50
  Ramp-Up Period(in seconds): 10
  Loop Count: 1000

HTTP Request
  path: /examples/jsp/tagplugin/foreach.jsp

Constant Timer
  Thread Delay (in milliseconds): 10

Third
thread-group
thread Properties:
  Number of Threads(users): 1
  Ramp-Up Period(in seconds): 1
  Loop Count: 1000

HTTP Request
  path: /manager/status
  Send parameter with request: XML(Name) true(Value)

Constant Timer
  Thread Delay (in milliseconds): 1000
===

I found tomcat 6.0.10 will use 100% CPU in a few
minutes, then I stop sending http request in jmeter.
After that, I accessed another jsp page:
/examples/jsp/jsp2/el/basic-arithmetic.jsp in web
browser , but tomcat gave me the following response:

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:

java.lang.OutOfMemoryError: Java heap space

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause 
java.lang.OutOfMemoryError: Java heap space


note The full stack trace of the root cause is
available in the Apache Tomcat/6.0.10 logs.

I installed Tomcat 5.5.20 and did the same testing, I
could not produce this problem on tomcat 5.5.20.
Thanks.
Arden

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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: Keep Alive handling

2007-03-12 Thread Peter Kennard

I answered my own question here:

The client must send the *complete* sequence

\r\n0\r\n\r\n or tomcat *will* hang attempting to read the last 
\r\n after the last zero length chunk  No one including myself caught this.


PK


-
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: EJB 3.0 and Hibernate

2007-03-12 Thread org

Here you go http://www.hibernate.org/114.html
shows you how to use it in Tomcat


-
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 6 Scales

2007-03-12 Thread Michael Clovis

Filip,
  Great article. We were already having some memory issues using the 
NIO connector in 6.0.10 yet REALLY need this functionality. Our quick 
question is the following , can we in your estimation use the nightly 
build of your code and apply to 6.0.10 until version 11 releases?



Filip Hanik - Dev Lists wrote:
I wrote a blog entry on how one of our connectors was developed the 
challenges you face doing that.

Its not super technical as I'm saving the juicy details for ApacheCon

And since no one reads my blog, I'll let you guys get it from here :)

http://blog.covalent.net/roller/covalent/entry/20070308

Filip

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



The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad

I've set my JULI logging to FINE to figure out why I always get The
requested resource (/) is not available.  Unfortunately, the log
seems to indicate that the ROOT context was started up all right:

Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig deployDirectory
FINE: Deploying web application directory ROOT
...
Mar 12, 2007 2:32:56 PM org.apache.catalina.core.StandardContext start
FINE: Starting ROOT

And there are no errors in the log.  Any suggestions on where to go to
figure out why my webapp stopped working all of a sudden?  I don't
recall making any changes that should have broken it.

Thanks!

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



Unable to install tomcat 5.5 native libraries on Red Hat Enterprise Linux 4

2007-03-12 Thread Todd Nine

Hi all,
 I'm trying to make and install the native runtime libraries for
Tomcat 5.5 on RHEL4, with Apache 2.0.52, OpenSSL 0.9.7a Feb 19 2003,
APR version 0.9.4, and JDK 1.5.  I'm able to configure and make with
the following commands.  Note that configure won't find apr without
the explicit location of the config file.

./configure --with-apr=/usr/bin/apr-config  make  make install


However I receive this errors when I attempt to install it

make[1]: Leaving directory `/root/tomcat-native-1.1.3/jni/native'
make[1]: Entering directory `/root/tomcat-native-1.1.3/jni/native'
make[1]: Nothing to be done for `local-all'.
make[1]: Leaving directory `/root/tomcat-native-1.1.3/jni/native'
/usr/local/apr/include/apr-1 /usr/local/apr/lib/pkgconfig \
/usr/local/apr/lib /usr/local/apr/bin
make: /usr/local/apr/include/apr-1: Command not found
make: *** [install] Error 127


There is no /usr/local/apr directory.  Am I missing another
configuration option?  I have an apr-0 at the location
/usr/include/apr-0.  Any help would be greatly appreciated.

Thanks,
Todd

-
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: Cannot start tomcat5 service with jrockit

2007-03-12 Thread Mr. Steve Burrus
look you say that your Tomcat version is 5.5.20. Why don't u 
simply try/attempt to get version 6.x of Tomcat by now??? I mean any 
kind of version 5 is way too old by now! Capiche? [Understand?] 


Igor Shevchenko wrote:


Hello,
I'm experiencing problems with starting tomcat as a service under Win2003 
server with jrockit jvm.
Tomcat version is 5.5.20 and it starts successfully using startup.bat 
script, but when trying to start it as a service I have the following 
output in jakarta-service log:

[2007-03-12 04:45:48] [info] Running Service...
[2007-03-12 04:45:48] [info] Starting service...
[2007-03-12 04:45:48] [173  javajni.c] [error] The specified module could 
not be found.
[2007-03-12 04:45:48] [924  prunsrv.c] [error] Failed creating java 
C:\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\jrockit\jvm.dll

[2007-03-12 04:45:48] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-12 04:45:48] [info] Run service finished.
[2007-03-12 04:45:48] [info] Procrun finished.
I've tried googling and reading mailing archives but couldn't find a 
solution.


Best regards,
---
Igor Shevchenko

 




-
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: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Rémy Maucherat

On 3/12/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip
up the file that gets generated, make it available to us and I'll take a
look at it


Most likely it's because of session creation. (you should not be too
naive about problem reports, I think :D)

- Add %@ page session=false % before testing the page, or make
the client send a cookie with the session id.

Rémy

-
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: [ANN] Apache Tomcat 6.0.10 released

2007-03-12 Thread Filip Hanik - Dev Lists

Tomcat 6.0.10 stable libraries, mavenized, can be found at:
http://tomcat.apache.org/dev/dist/m2-repository/

Filip

Remy Maucherat wrote:

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.10 stable. This release is the first stable release of the
6.0.x branch.

Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

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



[OT] RE: Cannot start tomcat5 service with jrockit

2007-03-12 Thread gb1071nx
Warning: 
rant about 'religion' follows (not quite on par with where the opening '{' 
goes, but close!): 
 
I feel like such a fool!   I had no idea the way too old mark had been moved 
to older than 6 months  and/or 3 point releases behind HEAD.   Of course, 
_everyone_ should _always_ use the most recent version of _every_ software 
package, and it's a particularly good idea to use it if it's just been voted 
stable within the last 30 days.
 
Because, we should always trust that there there are no remaining problems in a 
newly-declared-as-stable piece of software.  That's why 5.0 didn't need 32 
point releases, and 5.5 didn't need 23 point releases.
 
Plus, the maintainers can just finally give up on that antiquated 5.5 branch!  
Thanks for your heroic efforts so far, tomcat team.  
 
In the future, I wish people would STFU about get a newer version, unless 
they specifically know that the bug someone is asking about (and in this 
case, perhaps not even a bug) has been fixed in a newer version.   The sooner 
people like Mr. Burrus understand that some people are unable or unwilling to 
upgrade to the latest and greatest, the sooner my blood pressure will return 
to normal.  
 
There, _I_ feel better.  anyone else? 
 
signed,
 
A completely satisifed tomcat 5.0.29 user. 
(so there)
 
 
 



From: Mr. Steve Burrus [mailto:[EMAIL PROTECTED]
Sent: Mon 3/12/2007 4:59 PM
To: Tomcat Users List
Subject: Re: Cannot start tomcat5 service with jrockit



look you say that your Tomcat version is 5.5.20. Why don't u
simply try/attempt to get version 6.x of Tomcat by now??? I mean any
kind of version 5 is way too old by now! Capiche? [Understand?]

Igor Shevchenko wrote:

Hello,
I'm experiencing problems with starting tomcat as a service under Win2003
server with jrockit jvm.
Tomcat version is 5.5.20 and it starts successfully using startup.bat
script, but when trying to start it as a service I have the following
output in jakarta-service log:
[2007-03-12 04:45:48] [info] Running Service...
[2007-03-12 04:45:48] [info] Starting service...
[2007-03-12 04:45:48] [173  javajni.c] [error] The specified module could
not be found.
[2007-03-12 04:45:48] [924  prunsrv.c] [error] Failed creating java
C:\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\jrockit\jvm.dll
[2007-03-12 04:45:48] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-12 04:45:48] [info] Run service finished.
[2007-03-12 04:45:48] [info] Procrun finished.
I've tried googling and reading mailing archives but couldn't find a
solution.

Best regards,
---
Igor Shevchenko

 



-
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: [OT] Tomcat 5.5.23 Will Not Unpackage Application

2007-03-12 Thread neilac333

That is a good thought, but I have included all the Commons files in my WAR
file as you can see.  According to the documentation, Digester has a
dependency on Collections, and that JAR is in WEB-INF/lib
(commons-collections-3.1.jar).

Any other suggestions?

Neil



Pierre Goupil wrote:
 
 Hello !
 
 NoClassDefFoundError is not the same thing as ClassNotFoundError. The
 second
 one eventually means that the JVM can't find your class (and hence, your
 .jar). But NoClassDefFoundError means that it does found it, but that
 then,
 some resource needed by it is not found.
 
 Maybe you should check Common Digester's dependencies ?
 
 
 HTH,
 
 
 
 Pierre
 
 -- 
 Sans ami était le grand Maître des mondes,
 Eprouvait manque - ce pour quoi il créa des esprits
 Miroirs bienheureux de sa béatitude !
 L'être suprême ne trouva au vrai aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui - l'Infinité.
 
 (Schiller, poète allemand : L'amitié)
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.23-Will-Not-Unpackage-Application-tf3383274.html#a9445322
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]



How to develop filter for tomcat ?

2007-03-12 Thread Erica Zhang

Hi,

I am new for Tomcat. I have read througth the documents on web site. I 
could not find the answer. So I ask this questions here.


On client, I aggregated some requests into a xml file and then post them 
to the server. I want to make a filter to enable those requests to be 
separate as they are sent one by one to the server and the server 
application could process them as usual. Then after the server 
application send those responses,  my another filter could catch those 
responses and aggregated them into one xml file and send it to the client .


I want to develop filter for tomcat to do this work. However, I did not 
find any document on developing filters for Tomcat. Could anyone help me 
about it ? Additionally, I noticed that there is an Application Filter 
Chain. Should I add my filters to it ? Or according to my idea, where 
should I add my filter ?


Thanks,

Erica

-
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 getting comet to work

2007-03-12 Thread Mike Broadbear
You could try Pushlets (and let me know how it goes!)

 Date: Mon, 12 Mar 2007 05:32:25 -0700 From: [EMAIL PROTECTED] To: 
 users@tomcat.apache.org Subject: Problem getting comet to work   I am 
 trying to write a comet servlet using the new CometProcessor api. I am 
 running version 6.0.10 on windows as a service. I cannot get it to call the 
 event method. I am using the Nio connector. After running tomcat in debug 
 mode, I think I tracked the problem down to this line in 
 StandardWrapperValve:  if (servlet instanceof CometProcessor   
 request.getAttribute(org.apache.tomcat.comet.support) == Boolean.TRUE) { 
  And to be more specific it seems to be the servlet instanceof 
 CometProcessor line. I have read other places that custom classloaders can 
 cause this behavior. So my question is, am I doing something wrong 
 specifically to cause this to happen, and if so is there a way that I can 
 remedy this? Thanks everyone in advance for their help. --  View this 
 message in context: 
 http://www.nabble.com/Problem-getting-comet-to-work-tf3389224.html#a9433691 
 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] 
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline

Re: The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad

Thanks for the suggestion.

It turns out that the problem was that my web.xml was a symlink.  I
had to figure this out through trial and error.  Is there no better
way to debug this sort of thing?

Cheers,
Aditya

On 3/12/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

I had a similar problem too, I did a few things that got it resolved.

One thing I remember is, setting the directory listings to true in server.xml 
, at that time if there's no index page in the directory
it listed the directory listings instead of giving a 404 error.

Other possible causes:

-Check for conflicting ports - see if another app is using the same port as 
Tomcat. On my machine Oracle 10g HTML interface was using port 8080, so I 
changed
Tomcat port to 9090.

-Check CATALINA_HOME path

-Rashmi

- Original Message 
From: Aditya Prasad [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, March 12, 2007 5:35:39 PM
Subject: The requested resource (/) is not available.


I've set my JULI logging to FINE to figure out why I always get The
requested resource (/) is not available.  Unfortunately, the log
seems to indicate that the ROOT context was started up all right:

Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig deployDirectory
FINE: Deploying web application directory ROOT
...
Mar 12, 2007 2:32:56 PM org.apache.catalina.core.StandardContext start
FINE: Starting ROOT

And there are no errors in the log.  Any suggestions on where to go to
figure out why my webapp stopped working all of a sudden?  I don't
recall making any changes that should have broken it.

Thanks!




Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

-
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: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Martin Gainty
in the meanwhile you can use jhat to analyze your heap results ..this comes 
with a nice browser interface to allow you to see heap usage by each class
http://java.sun.com/developer/technicalArticles/J2SE/monitoring/

you can also use JConsole to monitor the number of objects pending finalisation 
(same link)
http://java.sun.com/developer/technicalArticles/J2SE/monitoring/

M--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 4:16 PM
Subject: Re: apache-tomcat-6.0.10 OutOfMemoryError


 add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip 
 up the file that gets generated, make it available to us and I'll take a 
 look at it
 
 Filip
 
 acec acec wrote:
 Hi,
 I tested tomcat 6.0.10 using jmeter. I found the
 following problem.

 I defined three thread groups:
 First
 thread-group
 thread Properties:
   Number of Threads(users): 50
   Ramp-Up Period(in seconds): 10
   Loop Count: 1000

 HTTP Request
   path: /examples/servlets/servlet/HelloWorldExample

 Constant Timer
   Thread Delay (in milliseconds): 10

 Second
 thread-group
 thread Properties:
   Number of Threads(users): 50
   Ramp-Up Period(in seconds): 10
   Loop Count: 1000

 HTTP Request
   path: /examples/jsp/tagplugin/foreach.jsp

 Constant Timer
   Thread Delay (in milliseconds): 10

 Third
 thread-group
 thread Properties:
   Number of Threads(users): 1
   Ramp-Up Period(in seconds): 1
   Loop Count: 1000

 HTTP Request
   path: /manager/status
   Send parameter with request: XML(Name) true(Value)

 Constant Timer
   Thread Delay (in milliseconds): 1000
 ===

 I found tomcat 6.0.10 will use 100% CPU in a few
 minutes, then I stop sending http request in jmeter.
 After that, I accessed another jsp page:
 /examples/jsp/jsp2/el/basic-arithmetic.jsp in web
 browser , but tomcat gave me the following response:

 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:
 java.lang.OutOfMemoryError: Java heap space
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 root cause 
 java.lang.OutOfMemoryError: Java heap space

 note The full stack trace of the root cause is
 available in the Apache Tomcat/6.0.10 logs.

 I installed Tomcat 5.5.20 and did the same testing, I
 could not produce this problem on tomcat 5.5.20.
 Thanks.
 Arden

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.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: Problem getting comet to work

2007-03-12 Thread Rémy Maucherat

On 3/12/07, mattd1812 [EMAIL PROTECTED] wrote:

servlet instanceof CometProcessor


Will return true (regardless of your custom CL hierarchy) if your
servlet implements the interface. That interface is in the
lib/catalina.jar JAR, and should be loaded from there.

Rémy

-
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: The requested resource (/) is not available.

2007-03-12 Thread Martin Gainty
Prasad-

If you can get Tomcat to resolve any of the hundreds of OS specific binary or 
construct (such as symlink)..
you can always exit the VM to the OS thru Runtime.exec() ..but then again that 
would spawn a process 

Anyone else?
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Aditya Prasad [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 8:15 PM
Subject: Re: The requested resource (/) is not available.


 Thanks for the suggestion.
 
 It turns out that the problem was that my web.xml was a symlink.  I
 had to figure this out through trial and error.  Is there no better
 way to debug this sort of thing?
 
 Cheers,
 Aditya
 
 On 3/12/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
 I had a similar problem too, I did a few things that got it resolved.

 One thing I remember is, setting the directory listings to true in 
 server.xml , at that time if there's no index page in the directory
 it listed the directory listings instead of giving a 404 error.

 Other possible causes:

 -Check for conflicting ports - see if another app is using the same port as 
 Tomcat. On my machine Oracle 10g HTML interface was using port 8080, so I 
 changed
 Tomcat port to 9090.

 -Check CATALINA_HOME path

 -Rashmi

 - Original Message 
 From: Aditya Prasad [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, March 12, 2007 5:35:39 PM
 Subject: The requested resource (/) is not available.


 I've set my JULI logging to FINE to figure out why I always get The
 requested resource (/) is not available.  Unfortunately, the log
 seems to indicate that the ROOT context was started up all right:

 Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig 
 deployDirectory
 FINE: Deploying web application directory ROOT
 ...
 Mar 12, 2007 2:32:56 PM org.apache.catalina.core.StandardContext start
 FINE: Starting ROOT

 And there are no errors in the log.  Any suggestions on where to go to
 figure out why my webapp stopped working all of a sudden?  I don't
 recall making any changes that should have broken it.

 Thanks!



 
 Don't pick lemons.
 See all the new 2007 cars at Yahoo! Autos.
 http://autos.yahoo.com/new_cars.html

 -
 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: The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad

I guess all I'm looking for is something like could not find a
web.xml for resource or somesuch.

On 3/12/07, Martin Gainty [EMAIL PROTECTED] wrote:

Prasad-

If you can get Tomcat to resolve any of the hundreds of OS specific binary or 
construct (such as symlink)..
you can always exit the VM to the OS thru Runtime.exec() ..but then again that 
would spawn a process

Anyone else?
M-
---
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
---
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: Aditya Prasad [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 8:15 PM
Subject: Re: The requested resource (/) is not available.


 Thanks for the suggestion.

 It turns out that the problem was that my web.xml was a symlink.  I
 had to figure this out through trial and error.  Is there no better
 way to debug this sort of thing?

 Cheers,
 Aditya

 On 3/12/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:
 I had a similar problem too, I did a few things that got it resolved.

 One thing I remember is, setting the directory listings to true in 
server.xml , at that time if there's no index page in the directory
 it listed the directory listings instead of giving a 404 error.

 Other possible causes:

 -Check for conflicting ports - see if another app is using the same port as 
Tomcat. On my machine Oracle 10g HTML interface was using port 8080, so I changed
 Tomcat port to 9090.

 -Check CATALINA_HOME path

 -Rashmi

 - Original Message 
 From: Aditya Prasad [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, March 12, 2007 5:35:39 PM
 Subject: The requested resource (/) is not available.


 I've set my JULI logging to FINE to figure out why I always get The
 requested resource (/) is not available.  Unfortunately, the log
 seems to indicate that the ROOT context was started up all right:

 Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig 
deployDirectory
 FINE: Deploying web application directory ROOT
 ...
 Mar 12, 2007 2:32:56 PM org.apache.catalina.core.StandardContext start
 FINE: Starting ROOT

 And there are no errors in the log.  Any suggestions on where to go to
 figure out why my webapp stopped working all of a sudden?  I don't
 recall making any changes that should have broken it.

 Thanks!



 

 Don't pick lemons.
 See all the new 2007 cars at Yahoo! Autos.
 http://autos.yahoo.com/new_cars.html

 -
 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: Problem getting comet to work

2007-03-12 Thread Filip Hanik - Dev Lists

Mike Broadbear wrote:

You could try Pushlets (and let me know how it goes!)
  
pushlets, if made correctly, would be built on top of comet to get 
around the thread-per-connection limit


Filip
  
Date: Mon, 12 Mar 2007 05:32:25 -0700 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Problem getting comet to work   I am trying to write a comet servlet using the new CometProcessor api. I am running version 6.0.10 on windows as a service. I cannot get it to call the event method. I am using the Nio connector. After running tomcat in debug mode, I think I tracked the problem down to this line in StandardWrapperValve:  if (servlet instanceof CometProcessor   request.getAttribute(org.apache.tomcat.comet.support) == Boolean.TRUE) {  And to be more specific it seems to be the servlet instanceof CometProcessor line. I have read other places that custom classloaders can cause this behavior. So my question is, am I doing something wrong specifically to cause this to happen, and if so is there a way that I can remedy this? Thanks everyone in advance for their help. --  View this message in context: http://www.nabble.com/Problem-getting-comet-to-work-tf3389224.html#a9433691 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] 


_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.8/718 - Release Date: 3/11/2007 9:27 
AM
  




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



How does one configure Plain host domain url to run web app?

2007-03-12 Thread John Moore

(Tomcat 4.x)

I have the following url that runs an application (pseudo url for 
discussion only)



http://www.mydomain.com/mysite/thecontext

works fine..

I would like to configure it so that..

http://www.mydomain.com

gets me to the same place..

I can place a redirect html page at

http://www.mydomain.com/mysite/index.html

which redirects to

http://www.mydomain.com/mysite/thecontext

but have yet to get a plain

http://www.mydomain.com

to work.. I keep getting either the No Context configured. error 
or the dreaded index of the directory..


I've tried Aliaes, Document root, Directory, and various JkMount 
settings in the Virtual host conf file that seemed like it might work, 
but so far, no joy..  (Tried Googling it, but have not come up with the 
right key words..)


Some of the things I have tried  in the conf file..

==
Alias /mysite usr/tomcat/webapps/mysite
Alias / usr/tomcat/webapps/mysite

DocumentRoot /usr/local/tomcat/webapps/mysite/

Directory /usr/local/tomcat/webapps/mysite
   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp
 /Directory

   JkMount /mysite/thecontext  ajp13
   JkMount /mysite/*.jsp  ajp13

..variations of..
   JkMount /*.jsp  ajp13  -- gives me a dreaded index of the correct 
directory

  JkMount /*.html  ajp13  -- same as above
  JkMount /*.  ajp13  -- blank document (strange)
  JkMount /*  ajp13  -- context error
=

Suggestions appreciated..

(all of my other machines are running Tomcat 5.. I will be moving this 
app next month.. so a Tomcat 5 suggestion would be welcome as well)


John..



-
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: How does one configure Plain host domain url to run web app?

2007-03-12 Thread Rashmi Rubdi
I think an application runs on the root context / by default, if it's 
configured this way in server.xml :

Engine name=Catalina defaultHost=localhost
   Host name=localhost appBase=webapps/projectname
Context path= docBase=C:\dev\projects\projectname 
reloadable=true /
Logger className=org.apache.catalina.logger.FileLogger/
   /Host
/Engine

server.xml is located at : ..\apache-tomcat-5.x\conf\ 

On Windows XP , you can try something similar in Unix.

-Rashmi

- Original Message 
From: John Moore [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 9:28:59 PM
Subject: How does one configure Plain host domain url to run web app?


(Tomcat 4.x)

I have the following url that runs an application (pseudo url for 
discussion only)


http://www.mydomain.com/mysite/thecontext

works fine..

I would like to configure it so that..

http://www.mydomain.com

gets me to the same place..

I can place a redirect html page at

http://www.mydomain.com/mysite/index.html

which redirects to

http://www.mydomain.com/mysite/thecontext

but have yet to get a plain

http://www.mydomain.com

to work.. I keep getting either the No Context configured. error 
or the dreaded index of the directory..

I've tried Aliaes, Document root, Directory, and various JkMount 
settings in the Virtual host conf file that seemed like it might work, 
but so far, no joy..  (Tried Googling it, but have not come up with the 
right key words..)

Some of the things I have tried  in the conf file..

==
Alias /mysite usr/tomcat/webapps/mysite
Alias / usr/tomcat/webapps/mysite

DocumentRoot /usr/local/tomcat/webapps/mysite/

Directory /usr/local/tomcat/webapps/mysite
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
  /Directory

JkMount /mysite/thecontext  ajp13
JkMount /mysite/*.jsp  ajp13

..variations of..
JkMount /*.jsp  ajp13  -- gives me a dreaded index of the correct 
directory
   JkMount /*.html  ajp13  -- same as above
   JkMount /*.  ajp13  -- blank document (strange)
   JkMount /*  ajp13  -- context error
=

Suggestions appreciated..

(all of my other machines are running Tomcat 5.. I will be moving this 
app next month.. so a Tomcat 5 suggestion would be welcome as well)

John..



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


 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

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



Can one map a servlet to a specific connctor?

2007-03-12 Thread Peter Kennard


On a stand alone tomcat with more than one connector (port)
Is it possible to map a servlet to only one or a subset of connectors?

Thanks PK


-
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-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
This is probably something very dumb on my part (: but, when I try to 
use the manager app in a fresh tomcat 6 install, i get the following 
message.


You are not authorized to view this page. If you have not changed any 
configuration files, please examine the file conf/tomcat-users.xml in 
your installation. That file will contain the credentials to let you use 
this webapp.


It then tells me to put:

role rolename=manager/
user username=tomcat password=s3cret roles=manager/

In tomcat-users.xml (I had already put something in there). And it 
didn't really fix it. There are no errors in the logs directory. I 
cannot work out the problem and google was no help on this one. Any 
thoughts?


Thanks, Jacob

__
Jacob Rhoden - http://www.jacobrhoden.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: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Parsons Technical Services

Jacob,

Did you restart Tomcat?

Can you post your tomcat-users.xml?

Doug


- Original Message - 
From: Jacob Rhoden [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 11:12 PM
Subject: tomcat-users.xml config in tomcat 6


This is probably something very dumb on my part (: but, when I try to 
use the manager app in a fresh tomcat 6 install, i get the following 
message.


You are not authorized to view this page. If you have not changed any 
configuration files, please examine the file conf/tomcat-users.xml in 
your installation. That file will contain the credentials to let you use 
this webapp.


It then tells me to put:

role rolename=manager/
user username=tomcat password=s3cret roles=manager/

In tomcat-users.xml (I had already put something in there). And it 
didn't really fix it. There are no errors in the logs directory. I 
cannot work out the problem and google was no help on this one. Any 
thoughts?


Thanks, Jacob

__
Jacob Rhoden - http://www.jacobrhoden.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: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
Sorry I should have mentioned, yes I did restart. There are no reported 
errors with parsing or anything like that. The users file is now currently:


?xml version='1.0' encoding='utf-8'?
tomcat-users
 role rolename=manager/
 user username=tomcat password=s3cret roles=manager/
/tomcat-users


Parsons Technical Services wrote:

Jacob,

Did you restart Tomcat?

Can you post your tomcat-users.xml?

Doug


- Original Message - From: Jacob Rhoden [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 11:12 PM
Subject: tomcat-users.xml config in tomcat 6


This is probably something very dumb on my part (: but, when I try to 
use the manager app in a fresh tomcat 6 install, i get the following 
message.


You are not authorized to view this page. If you have not changed 
any configuration files, please examine the file 
conf/tomcat-users.xml in your installation. That file will contain 
the credentials to let you use this webapp.


It then tells me to put:

role rolename=manager/
user username=tomcat password=s3cret roles=manager/

In tomcat-users.xml (I had already put something in there). And it 
didn't really fix it. There are no errors in the logs directory. I 
cannot work out the problem and google was no help on this one. Any 
thoughts?


Thanks, Jacob

__
Jacob Rhoden - http://www.jacobrhoden.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]




--
__
Jacob Rhoden - http://www.jacobrhoden.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: Can one map a servlet to a specific connctor?

2007-03-12 Thread Caldarale, Charles R
 From: Peter Kennard [mailto:[EMAIL PROTECTED] 
 Subject: Can one map a servlet to a specific connctor?
 
 On a stand alone tomcat with more than one connector (port)
 Is it possible to map a servlet to only one or a subset of connectors?

No, but you can use a filter or valve to restrict access any way you
want.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Can one map a servlet to a specific connctor?

2007-03-12 Thread Peter Kennard

I guess a corrollary question to this would be.
Can I determine the connector port connected to for a request from 
service() I don't see it in the servlet API but am willing to access 
somthing tomcat specific.

PK

At 21:57 3/12/2007, you wrote:


On a stand alone tomcat with more than one connector (port)
Is it possible to map a servlet to only one or a subset of connectors?

Thanks PK


-
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: Unable to install tomcat 5.5 native libraries on Red Hat Enterprise Linux 4

2007-03-12 Thread Mladen Turk

Todd Nine wrote:

Hi all,
 I'm trying to make and install the native runtime libraries for
Tomcat 5.5 on RHEL4, with Apache 2.0.52, OpenSSL 0.9.7a Feb 19 2003,
APR version 0.9.4, and JDK 1.5.  I'm able to configure and make with
the following commands.  Note that configure won't find apr without
the explicit location of the config file.



Apache 2.0.xx comes with apr-0.9
Tomcat native requires apr-1.2.7+, so you will need either to install
apr-1 and apr-1-devel or build apr from sources by yourself.

Regards,
Mladen.

-
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: [OT] Tomcat 5.5.23 Will Not Unpackage Application

2007-03-12 Thread Caldarale, Charles R
 From: neilac333 [mailto:[EMAIL PROTECTED] 
 Subject: Re: [OT] Tomcat 5.5.23 Will Not Unpackage Application
 
 That is a good thought, but I have included all the Commons 
 files in my WAR file as you can see.

Which will be a problem if they're already in the common/lib or
shared/lib.  A given class must not appear in more than one place in a
given class loader branch, or you will get NCDFE problems.

Take a look at:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Can one map a servlet to a specific connctor?

2007-03-12 Thread Caldarale, Charles R
 From: Peter Kennard [mailto:[EMAIL PROTECTED] 
 Subject: Re: Can one map a servlet to a specific connctor?
 
 Can I determine the connector port connected to for a request from 
 service() I don't see it in the servlet API but am willing to access 
 somthing tomcat specific.

ServletRequest.getServerPort() is inherited by HTTPServletRequest.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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