ID:               20608
 Updated by:       [EMAIL PROTECTED]
 Reported By:      gusmail at gmx dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Servlet related
 Operating System: Win32
 PHP Version:      4.2.3
 New Comment:

This should be fixed now. Please check latest stable build from
snaps.php.net in approx. 6 hours.


Previous Comments:
------------------------------------------------------------------------

[2003-01-02 17:50:49] brady at dontspam_me_moritzdesigns dot com

a little more detail- the DLL call failing is 'php_module_startup',
perhaps the call is failing due to the error in the compile shown
below. 

...
servlet.c
c:\php4build\snap\sapi\servlet\servlet.c(261) : warning C4047:
'function' : 'struct _zend_module_entry *' differs in levels of
indirection from 'struct _zend_module_entry *[1]'
c:\php4build\snap\sapi\servlet\servlet.c(261) : warning C4024:
'php_module_startup' : different types for formal and actual parameter
2
Linking...
   Creating library ..\..\Release_TS/phpsrvlt.lib and object
..\..\Release_TS/phpsrvlt.exp

phpsrvlt.dll - 0 error(s), 2 warning(s)

------------------------------------------------------------------------

[2003-01-02 17:47:03] brady at dontspam_me_moritzdesigns dot com

I noticed the missing java libraries as well and retrieved the ones
from cvs to use. now Im getting a problem with the JNI call to the
servlet dll and it causes tomcat to crash. I did this same thing in the
RC2 and it seemed to all work correctly, the full version bombs bad.

------------------------------------------------------------------------

[2002-12-31 16:34:29] pmiotti at ubicomp dot ch

PHP tomcat servlet integration (W2K): 
I compiled my own servlet.jar (including formatting.java, reflect.java,
servlet.java) (J2SDKEE1.4). 
While running tomcat and querying http://localhost:8080/test.php I
still got 
javax.servlet.ServletException: Error allocating a servlet instance
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:662)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
...
root cause 

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:730)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:874)
... 

What instance (class) is missing?

------------------------------------------------------------------------

[2002-12-01 02:41:18] schmuklers at attbi dot com

The same bug is in the new PHP 4.3.0RC2 binary and source releases.

Stuart

------------------------------------------------------------------------

[2002-12-01 02:37:05] schmuklers at attbi dot com

When building a batch file to fix this bug I found out that
servlet.java requires the JDK 1.4.x version of 'URLEncoder.encode'. 

I have not seen that JDK 1.4.x is required.

Stuart

PS: I can not run JDK 1.4.x on my XP box, there is a bug.
So, I need a JDK 1.3.x version.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20608

-- 
Edit this bug report at http://bugs.php.net/?id=20608&edit=1

Reply via email to