Ok... I just did this a couple of minutes ago at home.  

I'm using:
1. Oc4j 10.1.2.0.2 (standalone oc4j)
2. I'm setting the jdk and java path via the startup script for this to java 5, 
like this:
set java_home=C:\jdk1.5.0_12
set path=C:\jdk1.5.0_12\bin;%path%
3. I used jdev 10.1.3.4 to make the ear to deploy to this standalone container, 
and deployed it from DOS.

Here's a log of more of the detail:

********************************************************************************
in jdev 10.1.3.4, create new workspace
create project based on import of struts mail reader
create deployment profile based oon web.xml - include jars in web-inf\lib
build war/ear
set project properties: j2ee properties
set context path and filenames
********************************************************************************

from standaloneusersguide.pdf oc4j 10.1.2.0.2:

java -jar c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 admin 
welcome -deploy -file StrutsMailReaderApplication.ear -deploymentName 
StrutsMailReader 

rem -targetPath applications/

You can bind any Web application through the admin.jar tool, as follows:

java -jar c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 admin 
welcome -bindWebApp StrutsMailReaderApplication StrutsMailReader http-web-site 
/StrutsMailReader

********************************************************************************

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd 
C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy

C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy>java -jar 
c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 adm
in welcome -deploy -file StrutsMailReaderApplication.ear -deploymentName 
StrutsMailReader
Notification ==> Application Deployer for StrutsMailReader STARTS [ 
2009-05-29T22:24:23.515EDT ]
Notification ==> Undeploy previous deployment
Notification ==> Removing files for app 
file:/C:/OC4J_101202/j2ee/home/applications/StrutsMailReader.ear
Notification ==> Copy the archive to 
C:\OC4J_101202\j2ee\home\applications\StrutsMailReader.ear
Notification ==> Unpack StrutsMailReader.ear begins...
Notification ==> Unpack StrutsMailReader.ear ends...
Notification ==> Initialize StrutsMailReader.ear begins...
Notification ==> Initialize StrutsMailReader.ear ends...
Notification ==> Initialize StrutsMailReader begins...
Notification ==> Initialize StrutsMailReader ends...
Notification ==> Application Deployer for StrutsMailReader COMPLETES [ 
2009-05-29T22:24:27.828EDT ]

***** bind it...

C:\Projects\jdev10134\Struts2Samples\StrutsMailReader\deploy>java -jar 
c:\oc4j_101202\j2ee\home\admin.jar ormi://localhost:23791 adm
in welcome -bindWebApp StrutsMailReader StrutsMailReader http-web-site 
/StrutsMailReader


********************************************************************************
http://localhost:8888/

http://localhost:8888/StrutsMailReader/index.html

500 error

********************************************************************************
modify oc4j's global-web-application.xml and add this:

               <init-param>
                   <param-name>debug_mode</param-name>
                   <param-value>true</param-value>
               </init-param>

restart it.

500 Internal Server Error
OracleJSP: 

JSP Error:

--------------------------------------------------------------------------------



Request URI:/StrutsMailReader/Welcome.jsp

Exception:
java.lang.NullPointerException
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at 
com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
 at 
com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java:143)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:256)
 at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:246)
 at oracle.jsp.parse.JspRTTag.<init>(JspRTTag.java:149)
 at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:575)
 at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:693)
 at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:184)
 at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:154)
 at 
oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:428)
 at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:303)
 at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:483)
 at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)
 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
 at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
 at 
com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
 at 
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:154)
 at 
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:361)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)
 at 
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
 at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
 at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at 
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
 at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
 at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
 at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
 at 
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
 at 
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
 at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
 at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
 at 
com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1052)
 at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:867)
 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
 at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
 at java.lang.Thread.run(Thread.java:595) 

________________________________________
From: Dave Newton [newton.d...@yahoo.com]
Sent: Friday, May 29, 2009 4:02 PM
To: Struts Users Mailing List
Subject: Re: S2: on Servlet 2.3

Givler, Eric wrote:
> I read a few threads on this and have not seen anything that reflects that 
> this can be done.

I've run older S2 under servlet 2.3, but that was pre-S2.1.

It'd be easier to describe any problems you're having, although I
suspect we won't put a huge amount of effort into supporting servlet
2.3--if it doesn't currently work.

Dave

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


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

Reply via email to