jpos and jetty jsp error

116 views
Skip to first unread message

Alejandro Perretta

unread,
Jan 13, 2015, 2:13:44 PM1/13/15
to jpos-...@googlegroups.com
Hi , im trying to configure jetty on pos. 
I have my jtty server working but when i want to deploy a war file , i get a 

HTTP ERROR 500

Problem accessing /hello/index.jsp. Reason:

    JSP support not configured




when i  add this line to the context file (hello.xml) , get a a service unavailable error

      <Set name="defaultsDescriptor">/cfg/webdefault.xml</Set>



my conf


cfg/hello.xml
<?xml version="1.0"  encoding="ISO-8859-1"?>
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/hello</Set>
    <Set name="war">
        <SystemProperty name="jetty.home" default="."/>/webapps/hello/HelloWorld.war
    </Set>
</Configure>


any idea? thanks in advance .


Alejandro


Alejandro Revilla

unread,
Jan 13, 2015, 2:25:41 PM1/13/15
to jPOS Users
You probably need to enable JSP support in your cfg/jetty.xml, that probably involves adding the path to your tools.jar file so that JSP can be compiled.


--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/ba42b185-1ad2-4668-8f1d-16286506ef3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alejandro Perretta

unread,
Jan 13, 2015, 2:49:57 PM1/13/15
to jpos-...@googlegroups.com
how i set that path?
i didnt find any reference on this group , ive search in google and i find examples but for embebed server code, not as stand-alone server

Alejandro Revilla

unread,
Jan 13, 2015, 2:51:24 PM1/13/15
to jPOS Users
It's a Jetty configuration question.


galih.l...@gmail.com

unread,
Jan 13, 2015, 10:02:52 PM1/13/15
to jpos-...@googlegroups.com
maybe this can help you,
i'm using intellijidea for my ide and jpos template where you can get from github.com/jpos

first after making the project an intellij project by doing gradle idea, add

compile ('org.jpos.ee:jposee-jetty:2.0.6-SNAPSHOT')
compile 'org.mortbay.jetty:jsp-2.1:
compile 'org.mortbay.jetty:jetty:6.1.26'

in your build.gradle then do a gradle installResources then gradle idea.
that should solve your problem, if you wanna add web.xml add it inside root/WEB-INF/web.xml

Reply all
Reply to author
Forward
0 new messages