This week's book giveaway is in the Android forum.
We're giving away four copies of Learning Java by Building Android Games and have Jean-Marcel Belmont on-line!
See this thread for details.
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Weblogic 12c and webaplication servlets 2.5 Cannot forward a response that is already committed  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I'm working with Weblogic 12c and my web aplicatión versión is 2.

It seems that my aplicatión have a collision due to the Servlet 3.0 especificatión that Weblogic use.
How can I use Weblogic 12c as a 2.5 Servlet container?

web.xml:
<web-app version="2.4" ...

pp:module module:Miapp.war path:null spec-version:3.0]] Servlet failed with an Exception
java.lang.IllegalStateException: Cannot forward a response that is already committed
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:125)


Nevertheless, in Weblogic documentation its writed the following:

http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm#WBAPP637
JSP Behavior and Buffer Suffix

-If a Web application version is 2.5 (for example, its web.xml has a version attribute of 2.5) and the backward-compatibility flag is set to false, then:

All version 2.1 JSP/TAG files will follow the new JSP behavior.
All version 2.0 or earlier JSP/TAG files will follow the previous JSP 2.0 or earlier behavior.

-If a Web application version is 2.5 and the backward-compatibility flag is set to true, then all JSP/TAG files will follow the previous JSP 2.0 or earlier behavior.

-If the Web application version is 2.4 or earlier, then all JSP/TAG files will follow the previous JSP 2.0 or earlier behavior no matter how the backward-compatibility flag is set.
Implicit Servlet 2.5 Package Imports

The Servlet 2.5 specification mandates that only the java.lang., javax.servlet., javax.servlet.jsp., and javax.servlet.http. packages be implicitly imported. In compliance with the Servlet 2.5 specification, WebLogic Server will only import these mandated packages. Whereas, previous releases of WebLogic Server also imported the java.io., java.util., and javax.servlet.jsp.tagext.* packages.

WebLogic Server will follow the previous 2.4 or earlier behavior and import the non-mandated packages, if any of the following occur:

-The backward-compatible flag is set to true in the weblogic.xml descriptor file.
-The Web application version is 2.4 or earlier.
-The individual JSP/TAG files in a version 2.5 Web application are version 2.0 or earlier.

So I suppose that my applicantion should work. I also have tried with the weblogic.xml backward compatibility configuration
<backward-compatible>true</backward-compatible>

My app works fine in Tomcat 6.0 with JSP 2.1 API and Servlet 2.5

Does anyone have any suggestions?
 
Ranch Hand
Posts: 348
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you publish web.xml, weblogic.xml and the servlet ?
 
Alex Ale
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have attached the web.xml but i can't see the link in the page.
The web.xml belongs to Openxava framework. for this reason I can't avoid the forward.




and the weblogic.xml




 
German Gonzalez-Morris
Ranch Hand
Posts: 348
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Besides both XML has different version schema: 2.4 & 2.5

I don't see any problem on them.

What about the Servlet ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!