Thanks to both Bryan and yourself for your responses.

To answer your question, there is no requirement to setting up jetty manually using the embedded model. I've been learning several new elements in the software stack I've selected, including jetty and shiro, and I'm still trying to understand the tradeoffs with the different approaches to wireing everthing together while I'm learning the API's and technology at the same time.

My first approach to getting started was to use the tools that I understand which is Eclipse with a plain old java project.

At the moment, I've duplicated your example web app at http://svn.apache.org/repos/asf/shiro/trunk/samples/web without using JSP, Maven or any plugins. It's just a java application that uses the jetty embedded model with shiro. It has a couple static html pages and a couple Servlets.

My plan is to get this embedded project working correctly and then do the same thing with Maven and the jetty plugin as your example shows, without using the jetty embedded model. That way, I can compare the two development models and judge for myself which one will be better for me and my project.

Currently, my jetty embedded project is working, but whenever I login using my login.html page, it always redirects me back to the login page.

I'm going to post a question about this particular problem in a separate thread.

Again, thanks for your responses, they've been very helpful.

Best Regards,
James


----- Original Message ----- From: "Les Hazlewood" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 09, 2011 12:38 PM
Subject: Re: Runtime error in web app


Hi James,

Here is the sample web app's pom.xml file to which Bryan referred.
You'll see the Jetty config there:

http://svn.apache.org/repos/asf/shiro/trunk/samples/web/pom.xml

Although its jetty-plugin config is nearly identical to what Bryan
already posted.  You also might find browsing other sample apps useful
here:

http://svn.apache.org/repos/asf/shiro/trunk/samples

That being said, do you have a requirement to set up Jetty yourself?
Is the Jetty maven plugin not sufficient?

Cheers,

Les

--
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com


Reply via email to