how to virtual hosting with apache 13.x, tomcat 4.0.3, mod_webapp

2002-06-04 Thread pascal GEND

Hello,

I used apache with mod_jserv (no jsp) and I known how to configure virtual hosting in 
httpd.conf.
VirtualHost 193.10.10.25
DocumentRoot /path/to/website1
ServerName www.website1.org
...
/VirtualHost

VirtualHost 193.10.10.25
DocumentRoot /path/to/website2
ServerName www.website2.org 

/VirtualHost

Since I am working with tomcat 4.0.3 with mod_webapp,I don't know how to do in my 
httpd.conf: Where to put, for instance

WebAppConnection conn warp localhost:8008
WebAppDeploy website1 conn /website1 (I have now to use the bad way 
http://www.myweb.org/website1 which is totally incorrect
WebAppDeploy website2 conn /website2 (I have now to use the bad way 
http://www.myweb.org/website2 which is totally incorrect)

Pascal



Managing applications with apache/tomcat403/mod_webapp

2002-06-04 Thread pascal GEND

Hello,

I installed tomcat403 and mod_webapp. 
I read in the documentation that it is possible to manage applications (for instance 
mytomcatapp1 and mytomcatapp2) with:
http://www.mywebsite.org:8080/manager/reload?path=mytomcatapp1

It works with tomcat which is running in standalone on port 8080: I can start, stop, 
reload mytomcatapp1 without reloading mytomcatapp2 for instance 

But mytomcatapp1 and mytomcatapp2 are also declared at the end of  my apache 
httpd.conf file:
WebAppConnection conn warp localhost:8008
WebAppDeploy website1 conn /mytomcatapp1
WebAppDeploy website2 conn /mytomcatapp2

I tried to do the same using apache which talks to tomcat:
http://www.mywebsite.org/manager/reload?path=mytomcatapp1 

and I got an error because of a security problem (at the end of this message): so I 
have to reload the whole Tomcat server for only one application I have to reload
HOW TO DO please?

Pascal

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Error allocating a servlet instance
..

root cause 
java.lang.SecurityException: Servlet of class 
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this 
web application
..




uploading files software

2002-05-17 Thread pascal GEND

Hello,

I'm using a package I found over the internet 2 years later and permitting upload of 
files through a POST on a java servlet.
But it doesn't work correctly with data files bigger than 1 megabyte.
Has anyone such a package (I use j2sdk 1.4) or where can I find it?

thanks

Pascal



mod_webapp for apache under windows 98

2002-05-14 Thread pascal GEND

Hi,

does anyone use mod_webapp for apache under windows 98?
Where to find it?

Pascal



FORM submission POST to a server

2001-06-28 Thread pascal GEND



Hi,

I'd like to POST data to an http server with a java 
program (in the same way a www browser does it), in order to parse the response 
and do something with it. I have an example with the GET method but not 
POST.

For instance, consider the example 
below:

form action="http://host/cgi-bin/program" 
method=post
input type="hidden" name="field1" 
value="valuefield1"

input type="text" name="field2" 
value="valuefield2"
input type="submit" name="submit" value="submit"

What is the corresponding JAVA code (I use the JDK 117B)?

Many thanks,

Pascal


problems with jsp

2001-04-10 Thread pascal GEND



Hi,

I've just installed tomcat 3.2.1 with apache 
1.3.12, windows 98.
I checked my installation with the examples 
supplied with tomcat.
Concerning servlets, it works but when I try with a 
.jsp I always get the following message in the browser:

Error: 500
Location: /test/realPath.jspInternal Servlet Error:org.apache.jasper.JasperException: Unable to compile class for JSPjsp-javac: invalid flag: -encoding
use: jsp-javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d dir] file.java...

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)And in the DOS window of tomcat I get:2001-04-10 06:07:00 - Ctx( /test ): JasperException: R( /test + /realPath.jsp +null) Unable to compile class for JSPjsp-javac: invalid flag: -encodinguse: jsp-javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d dir] file.java...I can't understand this message because -encoding is a correct option of javacCould someone help meMany thanks,Pascal