Opened 9 years ago

Closed 9 years ago

#1090 closed defect (fixed)

Embedded Jetty needs addon to support JSP for SECORE

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.2
Component: secore Version: development
Keywords: jetty, embedded, Cc: Dimitar Misev
Complexity: Medium

Description

problem is localhost:8080/def/browse.jsp or even index.jsp could not display (reason embedded Jetty 7 do not support JSP by default, return error 500 - JSP do not support). I've known this for time but could not found out solution for embedded Jetty 7 which use Java JDK 1.6 (even standard Jetty 7 needs to download JSP support libraries and run as argument but cannot do the same way with embedded Jetty).

After lot of time to find a way (as it is out-date version but supported from Java 1.6 instead of Java 1.8 like Jetty 9.3) , I try with my solution:

+ Download org.apache.jasper.jar and extract org.apache directory.
+ Download org-apache-commons-logging.jar and extract org directory. (Logging Factory)
+ Download com.spingsource.org.apache.coomons.el-1.0.0.jar and extract org directory (ExpressionEvaluatorImpl).

Put all of these files into jetty/org/apache and jar -cvf jetty.jar . to create jetty supported JSP.

And now user can update SECORE database with def/browse.jsp or view some links in def/index.jsp.

I will not open a thread with code review, if you want to test please download in attachment.

Attachments (1)

jetty.jar (3.5 MB ) - added by Bang Pham Huu 9 years ago.
Jetty with addon to support JSP on SECORE

Change History (6)

by Bang Pham Huu, 9 years ago

Attachment: jetty.jar added

Jetty with addon to support JSP on SECORE

comment:1 by Bang Pham Huu, 9 years ago

When you agree, I will submit a patch for this as this, thanks.

comment:2 by Bang Pham Huu, 9 years ago

Owner: changed from Dimitar Misev to Bang Pham Huu
Status: newassigned

comment:3 by Bang Pham Huu, 9 years ago

with this jar I can test the JSP functionalities with ticket http://www.rasdaman.org/ticket/1093 without error so I'd suggest you "OK" :).

comment:4 by Dimitar Misev, 9 years ago

OK

comment:5 by Bang Pham Huu, 9 years ago

Resolution: fixed
Status: assignedclosed

close as patch has been accepted.

Note: See TracTickets for help on using tickets.