andjarnic
10-29-2009, 09:41 PM
Hi all,
New to the forum. I am trying to get quercus to run in jetty 7. The only examples I find show one of two ways to do this. Either I drop the quercus war file into webapps, and then I am to add php files to the expanded quercus web app... or I copy the contents of the quercos.war/WEB-INF/lib into the jetty/lib location. Either way, trying to access the localhost:8080/quercos throws a nice exception in the server console, or when I try to access a php page in my own web app that I deploy and use the approach of putting the quercos lib files into the jetty/lib location, I get exception saying the QuercosServlet can't be found. I also tried putting the quercos/WEB-INF/lib files into my own WAR/WEB-INF/lib files, and when I start jetty, it gives the same exception. Without displaying the full exception stack trace its:
com.caucho.quercus.QuercusRuntimeException: java.lang.ClassNotFoundException: 'org.eclipse.jetty.server.AsyncContext' is not a known Java class: java.lang.ClassNotFoundException: org.eclipse.jetty.server.AsyncContext
I am lost as to how to make use of PHP pages in my own web app while using quercos. I originally thought I could put the quercos.war file into the jetty/webapps folder, deploy my own app and somehow it would magically work.. of course knowing that webapps are separate contexts, I was unclear what magic was done to make my app see the quercos app and work. lol.
I also want to get this working in glassfish v3 and tomcat 5 and/or 6. Is there a "general" way regardless of app server to deploy quercos, be it as part of my own web app in the web-inf/lib location, OR by putting the necessary files in the tomcat/jetty/glassfish global lib path so it can find quercos? Do I need to configure a file other than the web.xml for my web-app to make it work?
Thank you.
New to the forum. I am trying to get quercus to run in jetty 7. The only examples I find show one of two ways to do this. Either I drop the quercus war file into webapps, and then I am to add php files to the expanded quercus web app... or I copy the contents of the quercos.war/WEB-INF/lib into the jetty/lib location. Either way, trying to access the localhost:8080/quercos throws a nice exception in the server console, or when I try to access a php page in my own web app that I deploy and use the approach of putting the quercos lib files into the jetty/lib location, I get exception saying the QuercosServlet can't be found. I also tried putting the quercos/WEB-INF/lib files into my own WAR/WEB-INF/lib files, and when I start jetty, it gives the same exception. Without displaying the full exception stack trace its:
com.caucho.quercus.QuercusRuntimeException: java.lang.ClassNotFoundException: 'org.eclipse.jetty.server.AsyncContext' is not a known Java class: java.lang.ClassNotFoundException: org.eclipse.jetty.server.AsyncContext
I am lost as to how to make use of PHP pages in my own web app while using quercos. I originally thought I could put the quercos.war file into the jetty/webapps folder, deploy my own app and somehow it would magically work.. of course knowing that webapps are separate contexts, I was unclear what magic was done to make my app see the quercos app and work. lol.
I also want to get this working in glassfish v3 and tomcat 5 and/or 6. Is there a "general" way regardless of app server to deploy quercos, be it as part of my own web app in the web-inf/lib location, OR by putting the necessary files in the tomcat/jetty/glassfish global lib path so it can find quercos? Do I need to configure a file other than the web.xml for my web-app to make it work?
Thank you.