phax / ph-oton

The complete ph websuite
Apache License 2.0
3 stars 5 forks source link

Running in Jetty? #4

Closed wdeclerc closed 5 years ago

wdeclerc commented 5 years ago

Hi Philip,

Running in Tomcat works well. But when running RunInJettyPHOTONDEMO_BS4, I get: [ERROR] [main] Failed to start Jetty RunInJettyPHOTONDEMO_BS4! -- com.helger.photon.jetty.JettyStarter.run(JettyStarter.java:603) java.lang.IllegalStateException: No global web scope object has been set!

(Same for RunInJettySMPSERVER_SQL.)

How should I set the global web scope object in this case?

phax commented 5 years ago

@wdeclerc How are you running the Jetty? They are "optimized" for running within Eclipse IDE. If e.g. run from IntelliJ, you need to modify the startup directory, because it defaults to "src" if I remember correctly. Can you also check, if the "WEB-INF/web.xml" file reside in "target/webapp-classes/WEB-INF/web.xml"? Thx

wdeclerc commented 5 years ago

I'm using IntelliJ and changing the working directory to the root of the module solved it. Thank you!

phax commented 5 years ago

Great - thanks for the feedback.