RE: Struts 1.x and Strtus2.x With Tiles 2.x

2012-09-05 Thread vsendhil
The issue is resolved.  I added struts-taglib-1.3.10.jar and it works fine. 
Thanks everyone for your support.


vsendhil wrote
> 
> I added "struts-tiles2-1.4.0-SNAPSHOT.jar" now and its in classpath as
> well, but still getting the same error. :(
> 
> 
> Shrinivas Parashar wrote
>> 
>> Hi,
>> Are you using struts-tiles2-1.4.0-SNAPSHOT.jar ?
>> This jar is required for Struts 1 to work with Tiles 2.
>> 
>> Regards,
>> Shrinivas
>> 
>> -Original Message-
>> From: vsendhil [mailto:vsendhil@] 
>> Sent: 30 August 2012 06:04
>> To: user@.apache
>> Subject: Re: Struts 1.x and Strtus2.x With Tiles 2.x
>> 
>> Struts 2 JSPs works perfectly, I have problem with JSPs having struts 1
>> tags.
>> I tried debugging and found the control goes to struts 1 action, the only
>> problem is in the JSP.
>> Am I missing something?
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://struts.1045723.n5.nabble.com/Struts-1-x-and-Strtus2-x-With-Tiles-2-x-tp5710543p5710546.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscribe@.apache
>> For additional commands, e-mail: user-help@.apache
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscribe@.apache
>> For additional commands, e-mail: user-help@.apache
>> 
> 




--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts-1-x-and-Strtus2-x-With-Tiles-2-x-tp5710543p5710587.html
Sent from the Struts - User mailing list archive at Nabble.com.

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



RE: getOutputStream() has already been called for this response

2012-09-05 Thread Martin Gainty

Imagine you are the connector-code

Someone has called getOutputStream to write (some Thread Local data) to your 
HttpServletResponse object
then the call to getOutputStream (to the same thread) of HttpServletResponse is 
called AGAIN
Which OutputStream is the connector supposed to write (its Thread Local Data) 
to HttpServletResponse?

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.




> Date: Mon, 3 Sep 2012 23:25:40 -0700
> From: tammi...@gmail.com
> To: user@struts.apache.org
> Subject: getOutputStream() has already been called for this response
> 
> hi to all,
> please any one help me .i am trying to export some data to excel
> file...while doing this i am getting following exceptionrecently i was
> done clustering with jboss and apache...then onwards i am getting  this
> error
> 
> Here is the stack trace...
> 
> Servlet.service() for servlet action threw exception:
> java.lang.IllegalStateException: getOutputStream() has already been called
> for this response
>   at org.apache.catalina.connector.Response.getWriter(Response.java:598)
> [:6.1.0.Final]
>   at
> org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199)
> [:6.1.0.Final]
>   at 
> org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
> [:6.1.0.Final]
>   at
> org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
> [:6.1.0.Final]
>   at
> org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)
> [:6.1.0.Final]
>   at
> org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:117)
> [:6.1.0.Final]
>   at
> org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76)
> [:6.1.0.Final]
>   at
> org.apache.jsp.pages.MozartCostLoginAdmin_jsp._jspService(MozartCostLoginAdmin_jsp.java:86)
>   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> [:6.1.0.Final]
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [:1.0.0.Final]
>   at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
> [:6.1.0.Final]
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
> [:6.1.0.Final]
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
> [:6.1.0.Final]
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [:1.0.0.Final]
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
> [:6.1.0.Final]
>   at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
> [:1.2.7]
>   at
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
> [:1.2.7]
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> [:1.2.7]
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> [:1.2.7]
>   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> [:1.2.7]
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
> [:1.0.0.Final]
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> [:1.0.0.Final]
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
> [:6.1.0.Final]
>   at
> com.zyom.security.LoginMonitorFilter.doFilter(LoginMonitorFilter.java:67)
> [:]
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
> [:6.1.0.Final]
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

getOutputStream() has already been called for this response

2012-09-05 Thread raghu88
hi to all,
please any one help me .i am trying to export some data to excel
file...while doing this i am getting following exceptionrecently i was
done clustering with jboss and apache...then onwards i am getting  this
error

Here is the stack trace...

Servlet.service() for servlet action threw exception:
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:598)
[:6.1.0.Final]
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199)
[:6.1.0.Final]
at 
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
[:6.1.0.Final]
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
[:6.1.0.Final]
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)
[:6.1.0.Final]
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:117)
[:6.1.0.Final]
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76)
[:6.1.0.Final]
at
org.apache.jsp.pages.MozartCostLoginAdmin_jsp._jspService(MozartCostLoginAdmin_jsp.java:86)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
[:6.1.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[:1.0.0.Final]
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
[:6.1.0.Final]
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
[:6.1.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
[:6.1.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)
[:6.1.0.Final]
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
[:1.2.7]
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
[:1.2.7]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
[:1.2.7]
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
[:1.2.7]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
[:1.2.7]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
[:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.1.0.Final]
at
com.zyom.security.LoginMonitorFilter.doFilter(LoginMonitorFilter.java:67)
[:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
[:6.1.0.Final]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:6.1.0.Final]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j

Re: Best place to define properties for plugin

2012-09-05 Thread Umesh Awasthi
Thanks Gabriel  for the valuable inputs

On Wed, Sep 5, 2012 at 7:48 PM, Gabriel Belingueres
wrote:

> 2012/9/4 Umesh Awasthi :
> > I am in process to create a plugin and i need to pass provider class as
> > well some other properties to the plugin bean class.
> > though i can define them in side the plugin's  xml file but want these
> > properties to be configurable.
>
> I know of several ways of doing this:
>
> 1) Defining the property as usual with its own setter/getter in the
> plugin class. This will let you configure it with the  tag when
> you define your interceptor stack. You should provide a sensitive
> default value in case no  tag is present.
>
> 2) Declaring a  for injecting an instance of some class using
> the IoC container provided with Struts. In your plugin you need to
> annotate with @Inject the setter method that will be called to inject
> the instance.
>
> 3) Declare a  that will specify the *name* of a bean to
> inject. This is what is annotated with @Inject.
> Also you need to inject an instance of the Container class.
> In the init() method of the plugin, just call:
> container.getInstance(MyClass.class, myInjectedString);
> to get the proper instantiation of a given type. This is most useful
> when you have different strategies of accomplish some functionality
> and you can choose one by declaring a constant.
>
> 4) Idem 3), but instead of declaring a global  you use a
> property as in 1), then you can have different interceptor stacks with
> different values assigned to this particular functionality.
>
> > Since struts.xml loads after the plugin loading so i can not define the
> > properties there, any suggestion how to accomplish this ?
>
> The only constraint I know of is that a plugin must not depend on (nor
> interfere with) definitions done in other plugin.
>
> HTH,
> Gabriel
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/


Re: Best place to define properties for plugin

2012-09-05 Thread Gabriel Belingueres
2012/9/4 Umesh Awasthi :
> I am in process to create a plugin and i need to pass provider class as
> well some other properties to the plugin bean class.
> though i can define them in side the plugin's  xml file but want these
> properties to be configurable.

I know of several ways of doing this:

1) Defining the property as usual with its own setter/getter in the
plugin class. This will let you configure it with the  tag when
you define your interceptor stack. You should provide a sensitive
default value in case no  tag is present.

2) Declaring a  for injecting an instance of some class using
the IoC container provided with Struts. In your plugin you need to
annotate with @Inject the setter method that will be called to inject
the instance.

3) Declare a  that will specify the *name* of a bean to
inject. This is what is annotated with @Inject.
Also you need to inject an instance of the Container class.
In the init() method of the plugin, just call:
container.getInstance(MyClass.class, myInjectedString);
to get the proper instantiation of a given type. This is most useful
when you have different strategies of accomplish some functionality
and you can choose one by declaring a constant.

4) Idem 3), but instead of declaring a global  you use a
property as in 1), then you can have different interceptor stacks with
different values assigned to this particular functionality.

> Since struts.xml loads after the plugin loading so i can not define the
> properties there, any suggestion how to accomplish this ?

The only constraint I know of is that a plugin must not depend on (nor
interfere with) definitions done in other plugin.

HTH,
Gabriel

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