Re: tomcat 6/php5

2007-12-17 Thread Fabbris Pierluigi

Richard Dunne ha scritto:

Does anyone have or know of a work around for Tomcat 6 and PHP5?

Richard.


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
  
I've read about that php5 can be used with Tomacat 6 but I don't know 
what. However I know that php5 work on apache. If you want can you use, 
how I have made, mod_jk2. You find this module online with the 
information to install. You used tomacat for Java (servlet, etc...) and 
through mod_jk2 connect apache a tomacat. This connector is important to 
connect tomcat and apache. If I've read right then tomacat uses php 5 
only in cgi version. The solution above allow to use php5 in cgi or in 
module.

Hope this help is good.
Sincerally yours,
Fabbris Pierluigi


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



Local String Problem

2007-08-07 Thread Fabbris Pierluigi

Hello,
I've this Exception in the Log:

7-ago-2007 10.38.05 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet invoker threw exception
java.util.MissingResourceException: Can't find bundle for base name 
LocalStrings, locale it_IT
  at java.util.ResourceBundle.throwMissingResourceException(Unknown 
Source)

  at java.util.ResourceBundle.getBundleImpl(Unknown Source)
  at java.util.ResourceBundle.getBundle(Unknown Source)
  at HelloWorldExample.doGet(HelloWorldExample.java:39)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402) 

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

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 

  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) 

  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) 

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

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

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

  at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) 

  at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

  at java.lang.Thread.run(Unknown Source)

The HelloWorldExample that I use is the HelloWorldExample for the 
Example of Tomcat. This file start when I start with example, but not in 
my web-apps to give me the Exception above. The code of 
HelloWorldExample is:

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id: HelloWorldExample.java 500674 2007-01-27 23:15:00Z markt $
*
*/

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
* The simplest possible servlet.
*
* @author James Duncan Davidson
*/

public class HelloWorldExample extends HttpServlet {


  public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws IOException, ServletException
  {
  ResourceBundle rb =
  ResourceBundle.getBundle("LocalStrings",request.getLocale());
  response.setContentType("text/html");
  PrintWriter out = response.getWriter();

  out.println("");
  out.println("");

  String title = rb.getString("helloworld.title");

  out.println("" + title + "");
  out.println("");
  out.println("");

  // note that all links are created to be relative. this
  // ensures that we can move the web application that this
  // servlet belongs to to a different place in the url
  // tree and not have any harmful side effects.

  // XXX
  // making these absolute till we work out the
  // addition of a PathInfo issue

  out.println("");
  out.println("");
  out.println("");
  out.println("");
  out.println("" + title + "");
  out.println("");
  out.println("");
  }
}


The problem I believe is in:
 ResourceBundle rb =
  ResourceBundle.getBundle("LocalStrings",request.getLocale());
but I don't know how can I resolve.
The code with this line I think common and I want to resolve the problem 
forever.

How?
Sincerally yours,
Fabbris Pierluigi

-
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 and servlet the nightmare

2007-08-06 Thread Fabbris Pierluigi
net.SocketPermission "*.noaa.gov:80", "connect";
// };
//
// The permissions granted to the context WEB-INF/classes directory
grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/classes/-" {
};
//
// The permission granted to your JDBC driver
// grant codeBase 
"jar:file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/-" {
//  permission java.net.SocketPermission 
"dbhost.mycompany.com:5432", "connect";

// };
// The permission granted to the scrape taglib
// grant codeBase 
"jar:file:${catalina.home}/webapps/examples/WEB-INF/lib/scrape.jar!/-" {

//  permission java.net.SocketPermission "*.noaa.gov:80", "connect";
// };

With this I can enter in web-inf and servlet of my webapp, but this is 
the nighmare.
I try to enter in the example page and the servlet is displayed white 
pages, and the servlet in my webapps displayed white page.
Why? The servelet to try my webapps is the servlet for the example 
HelloWorldExample that before the modification of web-user and grant 
displayed correct content.

What do I miss?
Sincerally yours,
Fabbris Pierluigi

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



javax.servlet.ServletException: Cannot allocate servlet instancefor path /servlet/HelloWorld (repost I don't resolve the problem with your reply)

2007-08-02 Thread Fabbris Pierluigi
 application/x-ustar
   
   
   vxml
   application/voicexml+xml
   
   
   xbm
   image/x-xbitmap
   
   
   xht
   application/xhtml+xml
   
   
   xhtml
   application/xhtml+xml
   
   
   xml
   application/xml
   
   
   xpm
   image/x-xpixmap
   
   
   xsl
   application/xml
   
   
   xslt
   application/xslt+xml
   
   
   xul
   application/vnd.mozilla.xul+xml
   
   
   xwd
   image/x-xwindowdump
   
   
   wav
   audio/x-wav
   
   
   svg
   image/svg+xml
   
   
   svgz
   image/svg+xml
   
   
   vsd
   application/x-visio
   
   
   
   wbmp
   image/vnd.wap.wbmp
   
   
   
   wml
   text/vnd.wap.wml
   
   
   
   wmlc
   application/vnd.wap.wmlc
   
   
   
   wmls
   text/vnd.wap.wmlscript
   
   
   
   wmlscriptc
   application/vnd.wap.wmlscriptc
   
   
   wmv
   video/x-ms-wmv
   
   
   wrl
   x-world/x-vrml
   
   
   Z
   application/x-compress
   
   
   z
   application/x-compress
   
   
   zip
   application/zip
   
   
   xls
   application/vnd.ms-excel
   
   
   doc
   application/vnd.ms-word
   
   
   ppt
   application/vnd.ms-powerpoint
   

 
 
 
 
 
 
 

 
 
 
 


   
   index.html
   index.htm
   index.jsp
   



I write this long email to describe better the problem to get your help.
How can I resolve this Exception?
Sincerally yours,
Fabbris Pierluigi


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



javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld

2007-08-02 Thread Fabbris Pierluigi

Hi,
I've a problem with test of Servlet. I created a Hello World Severlet in the 
directory classes on Tomcat. I've try with: 
http://localhost:8080/servlet/Helloworld, but I've this Excpetion:

javax.servlet.ServletException: Cannot allocate servlet instance for path 
/servlet/HelloWorld

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:380)

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

*root cause*

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not 
access a member of class HelloWorld with modifiers ""
sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:361)

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Why? And how I remove this problem?
Tanks for the help that you give me.
Sincerally yours,
Fabbris Pierluigi


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



New Problem to configure servlet on Tomcat

2007-08-01 Thread Fabbris Pierluigi

Hi,
I've configured Servlet on Tomcat, and more problem I've resolved, but 
I've this problem:



 HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

java.util.MissingResourceException: Can't find bundle for base name 
LocalStrings, locale it_IT
java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
java.util.ResourceBundle.getBundleImpl(Unknown Source)
java.util.ResourceBundle.getBundle(Unknown Source)
HelloWorldExample.doGet(HelloWorldExample.java:39)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

*note* _The full stack trace of the root cause is available in the 
Apache Tomcat/6.0.13 logs._





 Apache Tomcat/6.0.13

Why? How can I resolve this?
Tank for the help you give me.
Sincerally yours,
Fabbris Pierluigi

-
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 to configure servelet on Tomcat6

2007-07-31 Thread Fabbris Pierluigi

Hi,
I've configured Tomacat 6 for Servlet but I've this error:

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

javax.servlet.ServletException: Servlet.init() for servlet default threw 
exception
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) 

  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852) 

  
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584) 


  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
  java.lang.Thread.run(Unknown Source)

*root cause*

java.lang.NumberFormatException: For input string: ""
  java.lang.NumberFormatException.forInputString(Unknown Source)
  java.lang.Integer.parseInt(Unknown Source)
  java.lang.Integer.parseInt(Unknown Source)
  
org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:221)

  javax.servlet.GenericServlet.init(GenericServlet.java:212)
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) 

  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852) 

  
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584) 


  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
  java.lang.Thread.run(Unknown Source)

*note* _The full stack trace of the root cause is available in the 
Apache Tomcat/6.0.13 logs._





   Apache Tomcat/6.0.13

How can resolve this problem?
Hoping a reply.
Sincerally yours,
Fabbris Pierluigi


-
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: Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error

2007-05-28 Thread Fabbris Pierluigi

Thank Bill, where I can find the patch? I've Apache on Windows xp. :-(
Fabbris Pierluigi
Bill Barker ha scritto:
The Tomcat auto-config was originally designed for Httpd 1.3.x (yes, it's 
that old :).  It hasn't really kept up with Httpd, so some of the directives 
are now out of date.  Patches are always welcome ;-).


"Fabbris Pierluigi" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
  
I've configure the Tomcat 6 and Apache 2.2.4 with module_jk2.2.4  how must 
I, but I've a error:
Thu May 24 23:27:13 2007] [notice] Apache/2.2.4 (Win32) mod_jk/1.2.23 
PHP/5.2.2 configured -- resuming normal operations

[Thu May 24 23:27:13 2007] [notice] Server built: Jan  9 2007 23:17:20
[Thu May 24 23:27:13 2007] [notice] Parent: Created child process 5620
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
124.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
129.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
162.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
167.

[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
124.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
129.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
162.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 
167.

[Thu May 24 23:27:13 2007] [notice] Child 5620: Child process is running
[Thu May 24 23:27:13 2007] [notice] Child 5620: Acquired the start mutex.
[Thu May 24 23:27:13 2007] [notice] Child 5620: Starting 250 worker 
threads.
[Thu May 24 23:27:13 2007] [notice] Child 5620: Starting thread to listen 
on port 80.

The Apache would have to give Start Ok, instead it gives  this error.
Why?
Fabbris Pierluigi

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



Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error

2007-05-25 Thread Fabbris Pierluigi
I've configure the Tomcat 6 and Apache 2.2.4 with module_jk2.2.4  how 
must I, but I've a error:
Thu May 24 23:27:13 2007] [notice] Apache/2.2.4 (Win32) mod_jk/1.2.23 
PHP/5.2.2 configured -- resuming normal operations

[Thu May 24 23:27:13 2007] [notice] Server built: Jan  9 2007 23:17:20
[Thu May 24 23:27:13 2007] [notice] Parent: Created child process 5620
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 124.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 129.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 162.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 167.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 124.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 129.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 162.
[Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 167.
[Thu May 24 23:27:13 2007] [notice] Child 5620: Child process is running
[Thu May 24 23:27:13 2007] [notice] Child 5620: Acquired the start mutex.
[Thu May 24 23:27:13 2007] [notice] Child 5620: Starting 250 worker 
threads.
[Thu May 24 23:27:13 2007] [notice] Child 5620: Starting thread to 
listen on port 80.

The Apache would have to give Start Ok, instead it gives  this error.
Why?
Fabbris Pierluigi

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



Re: Problem with mod_jk-apache-2.2.4.so

2007-05-24 Thread Fabbris Pierluigi

Mladen Turk ha scritto:

Fabbris Pierluigi wrote:

I've problem to use Apache 2.2.4 and Tomcat 6 together.


You really need that, right ;)




Use:
Listener className="org.apache.jk.config.ApacheConfig"

Just out of curiosity, how did you came up with
org.apache.ajp.tomcat6.config.ApacheConfig class ?

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]


Tank for your help. Now I say you  how I arrive at className="org.apache.ajp.tomcat6.config.ApacheConfig".

The manual of |mod_jk-2.0.43.dll say for Tomcat 4:
append="true" forwardAll="false" 
modJk="c:/apache/Apache2/modules/mod_jk-2.0.43.dll" />.

I remove 4 and write 6. I hadn't idea.
Fabbris Pierluigi

|

-
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 mod_jk-apache-2.2.4.so

2007-05-24 Thread Fabbris Pierluigi

I've problem to use Apache 2.2.4 and Tomcat 6 together.
I install Apache 2.2.4 and Tomcat 6.
I put mod_jk-apache-2.2.4.so in the directory modules in Apache and
configure in http.conf di apache in this way: LoadModule jk_module
modules/mod_jk-apache-2.2.4.so
Until this no problem Apache starts.
Now I open server.xml in Tomcat 6 to modify the file in right way:
below  insert:

below   insert:

After I modify this I start Tomcat, but if I read a older manual now
before I create workers.properties and last thing in Apache in http.conf
there are a problem.
In the directory /conf/auto/  doesn' exist mod_jk.conf.
This file doesn't create when I start Tomcat.
What do I miss?
Hoping in a help.
Fabbris Pierluigi


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