struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Wyatt" <jwy...@itree.com.au>
Subject RE: [S2] Struts2, JDK 1.4, retrotranslator
Date Mon, 04 Jun 2007 02:00:03 GMT
Thanks Taras. 

I ran retrotranslator on each of the struts2 jars one-by-one, as they each
showed the same kind of version issue. 
Makes sense as they are all compiled for JDK 1.5. 

S2 now seems to be running OK on Oracle App Server 10R2. I only needed to
covert the struts2-*.jar files.

Regards
Jason



-----Original Message-----
From: Taras Puchko [mailto:taras.puchko@gmail.com] 
Sent: Friday, 1 June 2007 5:08 PM
To: Struts Users Mailing List
Subject: Re: [S2] Struts2, JDK 1.4, retrotranslator

Hi, you have to translate struts2-codebehind-plugin-2.0.6.jar since the
distribution has only struts2-core-2.0.6.jar and xwork-2.0.1.jar translated.

Cheers,
Taras

On 5/31/07, Jason Wyatt <jwyatt@itree.com.au> wrote:
> Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, 
> which uses JDK1.4, and I'm getting an error:
>
> Caused by: java.lang.UnsupportedClassVersionError:
> org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported 
> major.minor version 49.0)
>
> I included the backported Struts 2 and retrotranslator libraries and 
> removed the j5 equivalent struts-core and xwork jars.
>
> I'm wondering if I need to backport some other jars?
>
> The full stack trace:
>
> 500 Internal Server Error
>
> Unable to load bean: type:com.opensymphony.xwork2.UnknownHandler
> class:org.apache.struts2.codebehind.CodebehindUnknownHandler - bean - 
> jndi:/opt/oracle/product/9.0.4/j2ee/IACD2b/applications/iacd/iacd/WEB-
> INF/li
> b/struts2-codebehind-plugin-2.0.6.jar/struts-plugin.xml:8:-1
>        at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regi
> ster(X
> mlConfigurationProvider.java:209)
>        at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Stru
> tsXmlC
> onfigurationProvider.java:101)
>        at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(Defaul
> tConfi
> guration.java:131)
>        at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(C
> onfigu
> rationManager.java:52)
>        at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dis
> patche
> r.java:398)
>        at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>        at
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.j
> ava:20
> 1)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].server.http.HttpApplication.getFilterConfig(HttpApplicati
> on.jav
> a:7432)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].server.http.FileRequestDispatcher.handleWithFilter(FileRe
> questD
> ispatcher.java:50)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].server.http.FileRequestDispatcher.forwardInternal(FileReq
> uestDi
> spatcher.java:192)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequest
> Handle
> r.java:788)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g
> (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g
> (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(Releas
> ableRe
> sourcePooledExecutor.java:192)
>        at java.lang.Thread.run(Thread.java:536)
> Caused by: java.lang.UnsupportedClassVersionError:
> org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported 
> major.minor version 49.0)
>        at java.lang.ClassLoader.defineClass0(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>        at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureCla
> ssLoad
> er.java:172)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g
> (9.0.4.1.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.
> java:1
> 154)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g 
> (9.0.4.1.0)].naming.ContextClassLoader.findClass(ContextClassLoader.ja
> va:390
> )
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>        at com.evermind[Oracle Application Server Containers for J2EE 
> 10g
> (9.0.4.1.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.ja
> va:138
> )
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>        at
>
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:
> 139)
>        at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regi
> ster(X
> mlConfigurationProvider.java:181)
>
>
> Thanks a lot,
> Jason
>
>
> -----
> Falun Dafa  Truth - Compassion - Forbearance
>
> A mind & body practice under persecution in China
>
> http://www.faluninfo.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message