Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 17 Jul 2008 20:35:09 -0000 Issue 8148

user-digest-help

2008-07-17


Author LoginPost Reply

user Digest 17 Jul 2008 20:35:09 -0000 Issue 8148

Topics (messages 189048 through 189055):

Re: s:div Append Href
 189048 by: cree

Re: [S2] attempts to access www.opensymphony.com on Struts startup???
 189049 by: Pierre Thibaudeau

Re: Help please TOMCAT 5 + Struts
 189050 by: Jianshuo Niu
 189052 by: STRUTS SL. Mailing List
 189054 by: Jianshuo Niu

Action form in session scope
 189051 by: Zhang, Larry (L.)

Wildcard mappings and Annotations
 189053 by: Eric Rank

Re: [SPAM] Re: Help please TOMCAT 5 + Struts
 189055 by: STRUTS SL. Mailing List

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

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

Attachment: user_189048.ezm (zipped)

That's exactly what I am looking for thank you very much! You hit it right
on the nail.


Musachy Barroso wrote:
>
> what you are looking for is the "formId" attribute. You can specify
> the id of a form, and the fields of the form will be submitted when
> the request is made. Check showcase for examples.
>
> musachy
>
> On Thu, Jul 17, 2008 at 11:38 AM, cree <vint@(protected):
>>
>> Hello All,
>>
>> I am trying to use an s:div tag but need to update the href dynamically.
>>
>> To give an idea I have a <s:div listenTopic="/refresh" id="updateDiv"
>> href="testAction.action?" theme="ajax"/>. I would like to on some user
>> event to either in javascript or any other way allow the href to append
>> specific variables. I have tried to href="testAction?someVar=%{someVar}"
>> where someVar can be say a text field with the name someVar.
>>
>> That initially didnt work (not sure if I am missing something), but the
>> next
>> attempt I did was to invoke a javascript function that would directly
>> append
>> to the href of the div. I read a bit and understand that the href is
>> stripped from the s:div tag, but I would like to at least append to it or
>> even use the variables that have been changed in the text field.
>>
>> Thanks in advance
>> --
>> View this message in context:
>> http://www.nabble.com/s%3Adiv-Append-Href-tp18511393p18511393.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189049.ezm (zipped)
apache.org is currently down.
"Big deal!", you might say... Well with my recurring problem of Struts2.1.2
always trying to access that website on startup, I cannot restart my local
server!!!! This is very infuriating!

Are we agreed that Struts should not be attempting to access any remote
server on startup? If it does, there is a problem somewhere, either in my
setup or in struts' code---probably in both.

I would appreciate any suggestion, any hint, any hunch and any far-fetched
hypothesis. Am willing --- to an extent --- to dive into xwork/struts2 code
if need be.

Here is the most recent error trace:

12:43:11,340 INFO XmlConfigurationProvider:32 - Parsing configuration file
[struts-default.xml]
12:43:11,659 INFO XmlConfigurationProvider:32 - Parsing configuration file
[struts-plugin.xml]
2008-07-17 12:43:32 org.apache.catalina.core.StandardContext filterStart
GRAVE: Exception au démarrage du filtre action2
Unable to load configuration. - [unknown location]
  at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:58)
  at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:371)
  at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:424)
  at
org.apache.struts2.dispatcher.FilterDispatcher.init (FilterDispatcher.java:213)
  at
org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:275)
  at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:397)
  at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
  at
org.apache.catalina.core.StandardContext.filterStart (StandardContext.java:3709)
  at
org.apache.catalina.core.StandardContext.start (StandardContext.java:4356)
  at
org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:791)
  at
org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:771)
  at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:525)
  at
org.apache.catalina.startup.HostConfig.deployDirectory (HostConfig.java:924)
  at
org.apache.catalina.startup.HostConfig.deployDirectories (HostConfig.java:887)
  at
org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:492)
  at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1147)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:311)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:117)
  at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1053)
  at org.apache.catalina.core.StandardHost.start (StandardHost.java:719)
  at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1045)
  at
org.apache.catalina.core.StandardEngine.start (StandardEngine.java:443)
  at
org.apache.catalina.core.StandardService.start (StandardService.java:516)
  at
org.apache.catalina.core.StandardServer.start (StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start (Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke (Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:413)
Caused by: Unable to load
file:/D:/applications/apache-tomcat-6.0.16/webapps/myapp/WEB-INF/classes/struts.xml
- [unknown location]
  at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (XmlConfigurationProvider.java:875)
  at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (XmlConfigurationProvider.java:161)
  at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (XmlConfigurationProvider.java:130)
  at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (DefaultConfiguration.java:155)
  at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:55)
  ... 30 more
Caused by: Connection timed out: connect - [unknown location]
  at com.opensymphony.xwork2.util.DomHelper.parse (DomHelper.java:122)
  at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (XmlConfigurationProvider.java:870)
  ... 34 more
Caused by: java.net.ConnectException: Connection timed out: connect
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect (PlainSocketImpl.java:333)
  at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:195)
  at java.net.PlainSocketImpl.connect (PlainSocketImpl.java:182)
  at java.net.Socket.connect (Socket.java:518)
  at java.net.Socket.connect (Socket.java:468)
  at sun.net.NetworkClient.doConnect (NetworkClient.java:157)
  at sun.net.www.http.HttpClient.openServer (HttpClient.java:389)
  at sun.net.www.http.HttpClient.openServer (HttpClient.java:516)
  at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
  at sun.net.www.http.HttpClient.New (HttpClient.java:306)
  at sun.net.www.http.HttpClient.New (HttpClient.java:318)
  at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
  at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
  at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
  at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
  at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
  at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
  at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source)
  at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
  at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
  at com.opensymphony.xwork2.util.DomHelper.parse (DomHelper.java:120)
  ... 35 more

Attachment: user_189050.ezm (zipped)
It looks like that something wrong in your code/archtechture. Was it slow
right after you deployed the app, or gettting slower during the operation?

On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli <
paoloniccolo.giubelli@(protected):

> Maybe you got some memory leak in your code. Use a memory-inspecting tool
> and check for static objects.
> If you check your memory usage, maybe you'll find that you eat all the
> memory available, so you should tune your tomcat server changing the memory
> parameters.
> Regards,
> Paolo Niccolò Giubelli
>
> STRUTS SL. Mailing List ha scritto:
>
> Hello for everybody;
>>
>>
>> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
>> working properly, as we can see. The problem is concerning to the Web
>> Project. It's frizzing randomly. It doesn't matter how many time was
>> reloaded. From this moment never user can get in the Web Site. At the
>> browser address bar we can see the session id that was assigned to the new
>> session, but never the home page is presented, and we must be going to
>> reload it. This reloading is making on the Tomcat Server.
>>
>>
>> Web application historical summary:
>>
>>
>> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
>> installed in our offices. It was working almost properly, but slowly. Cause
>> that, we decided to get out this Server to be housing at office's ISP, front
>> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of
>> troubles.
>>
>>
>> We are adjusting the Web Application and the Tomcat Server continuously.
>> We resolved problems with DB connection, someone errors with SMTP server. In
>> addition we adjusted several Tomcat's and JVM's parameters. Now we are doing
>> some tests. We have assumed that the problem is the difference between
>> servlet.jar used by our Web Project, and the servlet.jar used by Tomcat
>> Server.
>>
>>
>> We want to thank in advance any help from any body.
>>
>> Best regard;
>>
>>
>> /* Some mistakes catalina.out */
>>
>>
>> Exception in thread "DefaultQuartzScheduler_Worker-0"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
>> PermGen space
>>
>> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError:
>> PermGen space
>>
>> Exception in thread
>> "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
>>
>> INFO: Pausing Coyote HTTP/1.1 on http-80
>>
>> java.lang.reflect.InvocationTargetException
>>
>> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>>
>> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener
>> lifecycleEvent
>>
>> INFO: The Apache Tomcat Native library which allows optimal performance in
>> production environments was not found on the java.library.path:
>> /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
>>
>> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
>>
>>
>>
>> ********************************
>>
>> Christian A. Villamizar Lamus.
>>
>> Dpto. Informática – Trapsatur.
>>
>> Tel: 91.542.6666 – Fax: 91.548.0044
>>
>> Э-mail: c.villamizar@(protected)>
>> www.trapsatur.com <http://www.trapsatur.com/>
>> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
>> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
>> C/ San Bernardo 5 – 7.
>> 28013 – Madrid. España.
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Jianshuo Niu

Attachment: user_189052.ezm (zipped)
The application is started well and after a few hours or minutes that stays frozen. without accepting more users.

 thanks to all are very helpful

________________________________

De: Jianshuo Niu [mailto:jjmniu@(protected)]
Enviado el: jue 17/07/2008 19:41
Para: Struts Users Mailing List
Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts



It looks like that something wrong in your code/archtechture. Was it slow
right after you deployed the app, or gettting slower during the operation?

On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli <
paoloniccolo.giubelli@(protected):

> Maybe you got some memory leak in your code. Use a memory-inspecting tool
> and check for static objects.
> If you check your memory usage, maybe you'll find that you eat all the
> memory available, so you should tune your tomcat server changing the memory
> parameters.
> Regards,
> Paolo Niccolò Giubelli
>
> STRUTS SL. Mailing List ha scritto:
>
> Hello for everybody;
>>
>>
>> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
>> working properly, as we can see. The problem is concerning to the Web
>> Project. It's frizzing randomly. It doesn't matter how many time was
>> reloaded. From this moment never user can get in the Web Site. At the
>> browser address bar we can see the session id that was assigned to the new
>> session, but never the home page is presented, and we must be going to
>> reload it. This reloading is making on the Tomcat Server.
>>
>>
>> Web application historical summary:
>>
>>
>> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
>> installed in our offices. It was working almost properly, but slowly. Cause
>> that, we decided to get out this Server to be housing at office's ISP, front
>> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of
>> troubles.
>>
>>
>> We are adjusting the Web Application and the Tomcat Server continuously.
>> We resolved problems with DB connection, someone errors with SMTP server. In
>> addition we adjusted several Tomcat's and JVM's parameters. Now we are doing
>> some tests. We have assumed that the problem is the difference between
>> servlet.jar used by our Web Project, and the servlet.jar used by Tomcat
>> Server.
>>
>>
>> We want to thank in advance any help from any body.
>>
>> Best regard;
>>
>>
>> /* Some mistakes catalina.out */
>>
>>
>> Exception in thread "DefaultQuartzScheduler_Worker-0"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
>> PermGen space
>>
>> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError:
>> PermGen space
>>
>> Exception in thread
>> "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
>> java.lang.OutOfMemoryError: PermGen space
>>
>> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
>>
>> INFO: Pausing Coyote HTTP/1.1 on http-80
>>
>> java.lang.reflect.InvocationTargetException
>>
>> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>>
>> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener
>> lifecycleEvent
>>
>> INFO: The Apache Tomcat Native library which allows optimal performance in
>> production environments was not found on the java.library.path:
>> /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
>>
>> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
>>
>>
>>
>> ********************************
>>
>> Christian A. Villamizar Lamus.
>>
>> Dpto. Informática - Trapsatur.
>>
>> Tel: 91.542.6666 - Fax: 91.548.0044
>>
>> ?-mail: c.villamizar@(protected)>
>> www.trapsatur.com <http://www.trapsatur.com/>
>> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
>> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
>> C/ San Bernardo 5 - 7.
>> 28013 - Madrid. España.
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Jianshuo Niu



Attachment: user_189054.ezm (zipped)
I would take a look at the code first to see if there is any unclosed
connection, loops, etc. Then, check the jdk version and tomcat config files.


On Thu, Jul 17, 2008 at 4:10 PM, STRUTS SL. Mailing List <
struts@(protected):

> The application is started well and after a few hours or minutes that stays
> frozen. without accepting more users.
>
>     thanks to all are very helpful
>
> ________________________________
>
> De: Jianshuo Niu [mailto:jjmniu@(protected)]
> Enviado el: jue 17/07/2008 19:41
> Para: Struts Users Mailing List
> Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts
>
>
>
> It looks like that something wrong in your code/archtechture. Was it slow
> right after you deployed the app, or gettting slower during the operation?
>
> On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli <
> paoloniccolo.giubelli@(protected):
>
> > Maybe you got some memory leak in your code. Use a memory-inspecting tool
> > and check for static objects.
> > If you check your memory usage, maybe you'll find that you eat all the
> > memory available, so you should tune your tomcat server changing the
> memory
> > parameters.
> > Regards,
> > Paolo Niccolò Giubelli
> >
> > STRUTS SL. Mailing List ha scritto:
> >
> > Hello for everybody;
> >>
> >>
> >> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
> >> working properly, as we can see. The problem is concerning to the Web
> >> Project. It's frizzing randomly. It doesn't matter how many time was
> >> reloaded. From this moment never user can get in the Web Site. At the
> >> browser address bar we can see the session id that was assigned to the
> new
> >> session, but never the home page is presented, and we must be going to
> >> reload it. This reloading is making on the Tomcat Server.
> >>
> >>
> >> Web application historical summary:
> >>
> >>
> >> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
> >> installed in our offices. It was working almost properly, but slowly.
> Cause
> >> that, we decided to get out this Server to be housing at office's ISP,
> front
> >> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of
> >> troubles.
> >>
> >>
> >> We are adjusting the Web Application and the Tomcat Server continuously.
> >> We resolved problems with DB connection, someone errors with SMTP
> server. In
> >> addition we adjusted several Tomcat's and JVM's parameters. Now we are
> doing
> >> some tests. We have assumed that the problem is the difference between
> >> servlet.jar used by our Web Project, and the servlet.jar used by Tomcat
> >> Server.
> >>
> >>
> >> We want to thank in advance any help from any body.
> >>
> >> Best regard;
> >>
> >>
> >> /* Some mistakes catalina.out */
> >>
> >>
> >> Exception in thread "DefaultQuartzScheduler_Worker-0"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
> >> PermGen space
> >>
> >> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError:
> >> PermGen space
> >>
> >> Exception in thread
> >> "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
> >>
> >> INFO: Pausing Coyote HTTP/1.1 on http-80
> >>
> >> java.lang.reflect.InvocationTargetException
> >>
> >> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
> >>
> >> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener
> >> lifecycleEvent
> >>
> >> INFO: The Apache Tomcat Native library which allows optimal performance
> in
> >> production environments was not found on the java.library.path:
> >>
> /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
> >>
> >> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
> >>
> >>
> >>
> >> ********************************
> >>
> >> Christian A. Villamizar Lamus.
> >>
> >> Dpto. Informática - Trapsatur.
> >>
> >> Tel: 91.542.6666 - Fax: 91.548.0044
> >>
> >> ?-mail: c.villamizar@(protected)>
> >> www.trapsatur.com <http://www.trapsatur.com/>
> >> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
> >> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
> >> C/ San Bernardo 5 - 7.
> >> 28013 - Madrid. España.
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> --
> Jianshuo Niu
>
>
>


--
Jianshuo Niu

Attachment: user_189051.ezm (zipped)
Hello, which is a prefered way to add actionform into session scope or
in the request scope? Is that true that putting actionForm into the
session is a bad idea? Thanks.

Attachment: user_189053.ezm (zipped)
Hi Struts Users,

Is it possible to define wildcard mappings with an annotated action?

I'm using struts 2.0.11 and I'd like to do some wildcard mapping with a
zero-config and annotations paradigm.

For example, I'd like to have a way to have http://site.com/page/variable go
to an action annotated as

@Results({
  @Result(name="success", value="success.jsp"),
  @Result(name="input", value="input.jsp")
})
public class PageAction extends ActionSupport {
}

As shown above, the only valid url for this action would be
http://site.com/page

I can override with an action mapping in the struts.xml as follows, but I'd
like to avoid using xml if I can.

<action name="page/*" class="com.site.actions.PageAction">
      <param name="variable">{1}</param>
      <result name="input">input.jsp</result>
      <result name="success">success.jsp</result>
</action>

Thanks for the help.

Eric Rank

Attachment: user_189055.ezm (zipped)
I know of tools that help test my application, for which I have looked and looked again the code. Or some techniques to help me refine ...

thanks

________________________________

De: Jianshuo Niu [mailto:jjmniu@(protected)]
Enviado el: jue 17/07/2008 22:22
Para: Struts Users Mailing List
Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts



I would take a look at the code first to see if there is any unclosed
connection, loops, etc. Then, check the jdk version and tomcat config files.


On Thu, Jul 17, 2008 at 4:10 PM, STRUTS SL. Mailing List <
struts@(protected):

> The application is started well and after a few hours or minutes that stays
> frozen. without accepting more users.
>
>     thanks to all are very helpful
>
> ________________________________
>
> De: Jianshuo Niu [mailto:jjmniu@(protected)]
> Enviado el: jue 17/07/2008 19:41
> Para: Struts Users Mailing List
> Asunto: [SPAM] Re: Help please TOMCAT 5 + Struts
>
>
>
> It looks like that something wrong in your code/archtechture. Was it slow
> right after you deployed the app, or gettting slower during the operation?
>
> On Thu, Jul 17, 2008 at 12:45 PM, Paolo Niccolò Giubelli <
> paoloniccolo.giubelli@(protected):
>
> > Maybe you got some memory leak in your code. Use a memory-inspecting tool
> > and check for static objects.
> > If you check your memory usage, maybe you'll find that you eat all the
> > memory available, so you should tune your tomcat server changing the
> memory
> > parameters.
> > Regards,
> > Paolo Niccolò Giubelli
> >
> > STRUTS SL. Mailing List ha scritto:
> >
> > Hello for everybody;
> >>
> >>
> >> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
> >> working properly, as we can see. The problem is concerning to the Web
> >> Project. It's frizzing randomly. It doesn't matter how many time was
> >> reloaded. From this moment never user can get in the Web Site. At the
> >> browser address bar we can see the session id that was assigned to the
> new
> >> session, but never the home page is presented, and we must be going to
> >> reload it. This reloading is making on the Tomcat Server.
> >>
> >>
> >> Web application historical summary:
> >>
> >>
> >> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
> >> installed in our offices. It was working almost properly, but slowly.
> Cause
> >> that, we decided to get out this Server to be housing at office's ISP,
> front
> >> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of
> >> troubles.
> >>
> >>
> >> We are adjusting the Web Application and the Tomcat Server continuously.
> >> We resolved problems with DB connection, someone errors with SMTP
> server. In
> >> addition we adjusted several Tomcat's and JVM's parameters. Now we are
> doing
> >> some tests. We have assumed that the problem is the difference between
> >> servlet.jar used by our Web Project, and the servlet.jar used by Tomcat
> >> Server.
> >>
> >>
> >> We want to thank in advance any help from any body.
> >>
> >> Best regard;
> >>
> >>
> >> /* Some mistakes catalina.out */
> >>
> >>
> >> Exception in thread "DefaultQuartzScheduler_Worker-0"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
> >> PermGen space
> >>
> >> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError:
> >> PermGen space
> >>
> >> Exception in thread
> >> "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
> >> java.lang.OutOfMemoryError: PermGen space
> >>
> >> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
> >>
> >> INFO: Pausing Coyote HTTP/1.1 on http-80
> >>
> >> java.lang.reflect.InvocationTargetException
> >>
> >> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
> >>
> >> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener
> >> lifecycleEvent
> >>
> >> INFO: The Apache Tomcat Native library which allows optimal performance
> in
> >> production environments was not found on the java.library.path:
> >>
> /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
> >>
> >> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
> >>
> >>
> >>
> >> ********************************
> >>
> >> Christian A. Villamizar Lamus.
> >>
> >> Dpto. Informática - Trapsatur.
> >>
> >> Tel: 91.542.6666 - Fax: 91.548.0044
> >>
> >> ?-mail: c.villamizar@(protected)>
> >> www.trapsatur.com <http://www.trapsatur.com/>
> >> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
> >> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
> >> C/ San Bernardo 5 - 7.
> >> 28013 - Madrid. España.
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> --
> Jianshuo Niu
>
>
>


--
Jianshuo Niu


©2008 gg3721.com - Jax Systems, LLC, U.S.A.