[jboss-jira] [JBoss JIRA] Commented: (JBWEB-138) java.lang.UnsatisfiedLinkError: Can't find SAPI class using PHP module

Mladen Turk (JIRA) jira-events at lists.jboss.org
Wed Apr 22 14:10:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWEB-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12463914#action_12463914 ] 

Mladen Turk commented on JBWEB-138:
-----------------------------------

Hi,

Yes the SAPI should be in the class path.
Can you try with Java5?
Think the problem is how JVM handles OnLoad.
Think we would need a special method that would be called outside JNI_OnLoad.


> java.lang.UnsatisfiedLinkError: Can't find SAPI class using PHP module
> ----------------------------------------------------------------------
>
>                 Key: JBWEB-138
>                 URL: https://jira.jboss.org/jira/browse/JBWEB-138
>             Project: JBoss Web
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tomcat
>    Affects Versions:  JBossWeb-2.1.2.GA 
>         Environment: Windows XP, JDK 1.6.0
>            Reporter: Derek Cornelius
>            Assignee: Mladen Turk
>
> The php5sevlet.dll is loaded and uses JNI to load the org.jboss.web.php.SAPI class which fails returning NULL. 
> The SAPI class should be in class path since the DLL is loaded by the Library.java
> .
> Apr 21, 2009 5:11:45 PM org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /php-examples.war threw load() exception
> java.lang.UnsatisfiedLinkError: Can't find SAPI class, no libphp5servlet in java.library.path(C:\jdk1.6.0_07\bin;.;C:\WINXP\Sun\Java\bin;C:\WINXP\system32;C:\WINXP;C:\RetAdv\Trunk/DevRoot/rai-jboss/src/jboss-web-2.1.2.GA\PHP\bin;C:\RetAdv\Trunk/DevRoot/rai-jboss/src/jboss-web-2.1.2.GA/bin;C:\RetAdv\Trunk/DevRoot/rai-jboss/src/jboss-web-2.1.2.GA/bin;...)
> 	at org.jboss.web.php.Library.<init>(Library.java:65)
> 	at org.jboss.web.php.Library.initialize(Library.java:104)
> 	at org.jboss.web.php.Handler.init(Handler.java:104)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:800)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:780)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
> 	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:557)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1211)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:315)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1064)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:523)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list