MyFaces upload question

J

jacksu

I am using fileupload function, as long as I added
enctype="multipart/form-data" in form tag,
I got the following exception

Gettting the following exceptoin:
[#|2006-10-09T22:13:02.490-0600|WARNING|sun-appserver-pe9.0|javax.enterpris­e.resource.webcontainer.jsf.lifecycle|_ThreadID=18;

_ThreadName=httpWorkerThread-8080-1;_RequestID=a08510b9-71db-4add-b1b6-acdc­408e37f1;|phase(RENDER_RESPONSE

6,
com.sun.faces.context.FacesContextImpl@1a2bc3) threw exception:
java.lang.NoClassDefFoundError null
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBef­oreBodyEnd(ExtensionsPhaseListener.java:115)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBefor­eBodyEnd(ExtensionsPhaseListener.java:96)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBe­foreBodyEnd(ExtensionsPhaseListener.java:86)

org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(E­xtensionsPhaseListener.java:66)

com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:287)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationF­ilterChain.java:397)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­ava:278)

org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:56­6)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex­tValve.java:240)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­ava:179)

org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:56­6)

com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18­2)

org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:56­6)

com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.j­ava:120)

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­a:137)

org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:56­6)

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(Proces­sorTask.java:667)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(Pr­ocessorTask.java:574)

com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTas­k.java:844)

com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(Read­Task.java:287)

com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)

com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)

com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java­:75)



But when I search the my faces source code, the line 115 of
ExtensionsPhaseListener.java is comment:


http://myfaces.apache.org/tomahawk/xref/index.html


Apparently either the jar file too old, or the source file is outdated.



Is there anyway to find the Myface java files for particiluar my faces
build?


my jar file is: tomahawk-1.1.3.jar , I believe is the latest one.


Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top