[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PHP on TOMCAT

jfrederic.clere@jboss.com do-not-reply at jboss.com
Thu Dec 4 02:28:34 EST 2008


anonymous wrote : LD_LIBRARY_PATH=/jboss/jboss-4.0.2/PHP/lib:jboss/jboss-4.0.2/bin/native;
  | export LD_LIBRARY_PATH;
and
anonymous wrote : java.lang.UnsatisfiedLinkError: /usr/lib/jdk1.5.0_15/jre/lib/i386/server/libphp5servlet.so: /usr/lib/jdk1.5.0_15/jre/lib/i386/server/libphp5.so: undefined symbol: xmlTextReaderSchemaValidate, no libphp5servlet in java.library.path(/usr/lib/jdk1.5.0_15/jre/lib/i386/server:/usr/lib/jdk1.5.0_15/jre/lib/i386:/usr/lib/jdk1.5.0_15/jre/../lib/i386:/jboss/jboss-4.0.2/PHP/lib:/jboss/jboss-4.0.2/bin/native) 

That looks fishy: The libphp5.so is in one place and you set LD_LIBRARY_PATH to another one. Follow the doc and don't try to put the bundle insde the JVM installation path.

1 - Check if you have a  libxml2.so in the php bundle. If not something went wrong will building.
2 - Use ldd libphp5.so and LD_LIBRARY_PATH to find the right value for LD_LIBRARY_PATH
3 - Use nm on libxml2.so  to check that xmlTextReaderSchemaValidate is an exported symbol.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194221#4194221

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194221



More information about the jboss-user mailing list