We typically use a simple little filter to add cache-control headers to results.
Of course there is no guarantee the browser will respect it (although
the spec say it must be obeyed
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9).
In web.xml:
Cache-Control for Dynamic resour
Hi to all, i have a little requirement in my application. Clients need that,
after logout, When they press the browser Back button, it shows that user
doesn't have permission because he was already logged out. For example, if
i'm inside the application and in that right moment i'm seeing some sensi
Hi,
I'm trying to use JAAS with Struts2. I have my own implementation of JAAS
and if I use it in an application without Struts, it works fine. I'm using
FORM like authentication method.
But when I wan to use it with Struts 2, I get an 404 error (I have an
constraint with "/*"). If I deactivate th
the call reaches the server and returns me an
>>> exception :
>>> :35,013 ERROR [RPCError] java.util.HashMap cannot be cast to java.util.List
>>> java.lang.ClassCastException: java.util.HashMap cannot be cast to
>>> java.util.List
>>>
g.apache.struts2.json.JSONInterceptor.invoke(JSONInterceptor.java:204)
>> at
>> org.apache.struts2.json.JSONInterceptor.intercept(JSONInterceptor.java:131)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237
oke(DefaultActionInvocation.java:237)
> at
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
> at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
> at
> org.apache.struts2.dispatcher.FilterDispatcher.d
at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
I am also using Spring 2.5 and H
nani2ratna wrote:
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is
java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
ement "beans", must match
>> DOCTYPE root "null".
>>
>
> This problem is commonly caused by including a spring 1.x jar in your
> application instead of/as well as a spring 2. Have a look at the jars
> in WEB-INF/lib and ensure spring 1.x isn't t
ars
> in WEB-INF/lib and ensure spring 1.x isn't there. If it is, find the
> source and remove it.
>
> Hope that helps,
> Jeromy Evans
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-
nani2ratna wrote:
Hi,
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 11 in
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: Document root
element
ringframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
in the beans tag-- attribute called xsi:schemaLocation.
Even i am not getting index.jsp also.
What is the problem.
Are there any body who tried this previously.
Thanks and Regards
Ratna
--
View th
8, 2007 9:46 AM
To: 'Struts Users Mailing List'
Cc: 'Jae Lim'
Subject: RE: problem with Struts 2 setup -class file has wrong version 49.0,
should be 48.0
Ok, I have did all the steps below, and still can't fix this version problem
with Java.
1) Delete the "Ca
a?threadID=5121172
thanks,
Jack
-Original Message-
From: Jack Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 9:46 AM
To: 'Struts Users Mailing List'
Cc: 'Jae Lim'
Subject: RE: problem with Struts 2 setup -class file has wrong version 49.0,
should be 48.0
Ok,
The soltuoi
-Original Message-
From: Jack Yu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 9:46 AM
To: 'Struts Users Mailing List'
Cc: 'Jae Lim'
Subject: RE: problem with Struts 2 setup -class file has wrong version 49.0,
should be 48.0
Ok, I have did all
o download Java EE separately?
Thanks.
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 5:50 PM
To: [EMAIL PROTECTED]
Cc: Struts Users Mailing List
Subject: Re: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) i
, 2007 5:31 PM
Subject: RE: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) is not available
--- Jack Yu <[EMAIL PROTECTED]> wrote:
Yeah, I have tried this, but it still give me the
same problem. Thanks.
?! I hate to ask, but are you sure? If the compilation
i
gt; 1 error
> >
>
=======
> >
> > -Original Message-
> > From: Musachy Barroso [mailto:[EMAIL PROTECTED]
> > Sent: Monday, May 07, 2007 3:03 PM
> > To: Struts Users Mailing List
> > Subje
Yeah, I have tried this, but it still give me the same problem. Thanks.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 4:55 PM
To: Struts Users Mailing List
Subject: RE: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6
class HelloWorld_jsp extends
> org.apache.jasper.runtime.HttpJspBase
> ^
> 1 error
>
===
>
> -Original Message-
> From: Musachy Barroso [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 07, 2007 3:03 PM
> To: Struts Users Mailing List
> Subj
: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) is not available
That problem is definitely a jvm version issue. Run:
java -showversion
to see what version you have in the path and make sure it is 1.5 (1.6 should
be fine also)
musachy
On 5/7/07, Jack Yu <[EM
eClass0(Native Method)
===
-Original Message-
From: Patrick J Kobly [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 1:09 PM
To: Struts Users Mailing List
Subject: Re: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) is not available
Download a more rec
neClass0(Native Method)
===
-Original Message-
From: Patrick J Kobly [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 1:09 PM
To: Struts Users Mailing List
Subject: Re: problem with Struts 2 setup -The req
--- Patrick J Kobly <[EMAIL PROTECTED]> wrote:
> Looks like struts needs 1.5+...
Correct; S2 needs 1.5 unless you're using the
converted J4 jars.
d.
Now that's room service! Choose from over 150,000 hotels
Download a more recent JVM for Tomcat to use. Looks like struts needs
1.5+...
PK
Jack Yu wrote:
Ok, I found the error from the log
==
2007-05-07 12:51:55 StandardContext[/manager]HTMLManager: start: Starting
web application at '/struts2-b
.jav
a:683)
at java.lang.Thread.run(Thread.java:534)
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 12:58 PM
To: Struts Users Mailing List
Subject: Re: problem wit
n't know how to solve this
problem.
Thanks,
Jack
-Original Message-
From: Mike Baroukh [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 12:34 PM
To: Struts Users Mailing List
Subject: Re: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) is not available
: Monday, May 07, 2007 12:34 PM
To: Struts Users Mailing List
Subject: Re: problem with Struts 2 setup -The requested resource
(/struts2-blank-2.0.6/) is not available
May be you can first check
- if the war as been deployed
- if it has bean deployed with the expected path (/struts2-blank-2.0.6/)
-
May be you can first check
- if the war as been deployed
- if it has bean deployed with the expected path (/struts2-blank-2.0.6/)
- if there is any error on context start in catalina.out
?
Mike
Jack Yu a écrit :
Hello Everyone,
I'm new to Tomcat5 and Struts2, and I'm having problem setting
Hello Everyone,
I'm new to Tomcat5 and Struts2, and I'm having problem setting up struts.
I installed Tomcat 5, and checked that http://localhost:8080/ is working
fine.
Then I copied the sample war file "struts2-blank-2.0.6.war" from struts into
to the webapps directory under tomcat
pared boith and coudn't
find anything changed. lol.
--
View this message in context:
http://www.nabble.com/Problem-with-struts-2-tf3461208.html#a9667426
Sent from the Struts - User mailing list archive at Nabble.com.
-
To
e le distribuer ou de le reproduire.
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Martin Gainty"
<[EMAIL PROTECTED]>
Sent: Sunday, March 25, 2007 3:27 PM
Subject: Re: Problem with struts 2
>
--- Martin Gainty <[EMAIL PROTECTED]> wrote:
> Could we see the action from action-mappings
> (specifically path/type/name/scope config) from
> struts-config.xml ?
???
They're in the OP, although it's S2, not S1.
d.
___
stinataire de ce document, nous vous signalons qu'il est strictement interdit
de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "Dave Newton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Sunday, March 25, 2007 2
From: "struts2" <[EMAIL PROTECTED]>
> The requested resource
(/hello_world/example/HelloWorld.action)
> is not available.
I'd be suspicious of your deployment process; at first
glance, at least, the configuration seems okay.
Are there any startup errors in the log files? Do you
have devMode turne
.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
hope this would help you.
Thanks,
Nuwan.
- Original Message -
From: "struts2" <[EMAIL PROTECTED]>
To:
Sent: Sunday, March 25, 2007 4:01 AM
Subject: Problem with struts 2
Hi everyone,
I have just star
this.message = message;
}
public String getMessage() {
return message;
}
}
--
View this message in context:
http://www.nabble.com/Problem-with-struts-2-tf3461208.html#a9657134
Sent from the Struts - User mailing
37 matches
Mail list logo