Running PHP on Tomcat


I am trying to install JavaScriptSpellcheck for our intranet web app that run by Apache tomcat and out development environment is Eclipse IDE, so I am trying to make things to work in Eclipse.

Basically, I followed this link:!searchin/javascriptspellcheck/apache$20tomcat/javascriptspellcheck/A4K3WXjGwik/OdTTtvQnjgQJ

And I was able to run the JavaBridge in my eclipse successfully.

Now, I am stuck when I apply this in our intranet web app,(let say IntranetABC.) so let me know if I miss anything.

I created folder, lib and cgi in root folder(apache-tomcat-7.0.39/wtpwebapps/IntranetABC/), copied the contents of lib and cgi from the JavaBridge/WebContent/WEB-INF/ and copied the web.xml part (#3 in the above link) in the IntranetWebApp/WEB-INF/web.xml.

When I start tomcat, it complaints about

(IntranetABC is Struts framework, so I commented out that part.)
And then I get this error:
SEVERE: Error configuring application listener of class

What am I missing here?

thanks in advance...
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to compile PHP yourself
take approach with apache serving static parts, and redirectmatch to dynamic parts - JSP-s and PHPs (in case of php - php-fcgi.exe)

btw tomcat is at 7.0.61 now, and fixes exactly http protocol parser in the meantime.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.