Ralph,

You were right on, and since others might run into this as they upgrade I thought I would send the fix along. We were using Tomcat 5.0, which did not have a java version specified, which it is in Tomcat 5.5. This was not necessary for for earlier versions of dspace.

We had to alter/add the following lines of code to our /usr/share/tomcat5/conf/web.xml file:

<servlet>
       <servlet-name>jsp</servlet-name>
       <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
       <init-param>
           <param-name>fork</param-name>
           <param-value>false</param-value>
       </init-param>
       <init-param>
           <param-name>xpoweredBy</param-name>
           <param-value>false</param-value>
       </init-param>
       <init-param>
         <param-name>compilerSourceVM</param-name>
         <param-value>1.5</param-value>
       </init-param>
       <init-param>
         <param-name>compilerTargetVM</param-name>
         <param-value>1.5</param-value>
       </init-param>
       <load-on-startup>3</load-on-startup>
   </servlet>


and the browse indexes are working and no longer  defaulting to 1.3 rules.


Bill



LeVan,Ralph wrote:

Bill, I believe your compiler is telling you that it can't compile the code using java version 1.3 rules. You are either running an old java 1.3 for your DSpace or there's a "-source 1.3" rule somewhere.

Ralph

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Bill Kelm
*Sent:* Wednesday, May 28, 2008 6:25 PM
*To:* dspace-tech@lists.sourceforge.net
*Subject:* [Dspace-tech] Upgrade 1.5 browse issue...


Just curios if anyone else has run into this problem. We upgraded from 1.41 to 1.5.0, and I knew the browse indexing was going to change so we did the inidex-init, and index-update, but for some reason in the jspui (which we will soon not be using) on the browse by title and date they generate an internal error.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 335 in the jsp file: /browse/full.jsp
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/jspui/org/apache/jsp/browse/full_jsp.j
ava:510: generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        Set<SortOption> sortOptions = SortOption.getSortOptions();
           ^


An error occurred at line: 342 in the jsp file: /browse/full.jsp
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/jspui/org/apache/jsp/browse/full_jsp.j
ava:522: for-each loops are not supported in -source 1.3
(try -source 1.5 to enable for-each loops)
                for (SortOption sortBy : sortOptions)
                                       ^
2 errors

The java on the machine is 1.5, so I'm not sure where the 1.3 is coming from?

Thanks,
Bill


--
Bill G. Kelm - Systems Librarian
Willamette University Library
900 State Street - Salem, OR 97301
Phone: 503-375-5332   Fax: 503-370-6141

--
Bill G. Kelm - Systems Librarian
Willamette University Library
900 State Street - Salem, OR 97301
Phone: 503-375-5332   Fax: 503-370-6141

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to