Re: {S 1.3.8} action error

2012-03-21 Thread Łukasz Lenart
2012/3/21 Anjib Mulepati :
> index.jsp
> 

You must specify global-forward [1] and use its name like toMduleB [2]
not Login.do



   ...


[1] 
http://struts.apache.org/1.x/userGuide/configuration.html#module_config-switching
[2] http://struts.apache.org/1.x/struts-taglib/tagreference.html#logic:forward


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

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



{S 1.3.8} action error

2012-03-21 Thread Anjib Mulepati

I am getting error
javax.servlet.jsp.JspException: Cannot find global ActionForward 
for name Login.do


I have following configuration.

index.jsp


struts-config


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



Re: Questions related to commons-chain.jar after upgrading from Struts 1.2 to Struts 1.3

2012-03-21 Thread Łukasz Lenart
The simplest way is to download all libs from Struts 1.3 download page
and copy all of them to WEB-INF/lib (remove all other jars)


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

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



Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-21 Thread Christian Grobmeier
2012/3/20 Łukasz Lenart :
> As I see there is a small mess with the test classes. Struts 2 has
> three StrutsTestCase classes, in core in junit plugin and in testng
> plugin. It would be nice to clean them up. Remove StrutsTestCase from
> core and two other StrutsTestCase classes rename accordingly,
>
> Also adding support for the Convention plugin for both. Thoughts ?

Very much +1.

I am currently very busy, but I am willing to support this. But I will
take me a while to get some free slots.
Besides what you said, I have seen there is a "one testcase -> one
action" restriction. I think this should be removed too  I have
already looked into that, but didn't succeed with a solution.

Cheers
Christian

>
>
> Regards
> --
> Łukasz http://www.lenart.org.pl/
> mobile +48 606 323 122, office +27 11 0838747
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

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



Questions related to commons-chain.jar after upgrading from Struts 1.2 to Struts 1.3

2012-03-21 Thread joann luo
Hello,



After upgrading from Struts 1.2 to Struts 1.3, I copied
*commons-chain.jar*to the
*WEB**-**INF**\lib* directory.  I still got the following exception when I
logged into the application.



Note: The commons-chain.jar was *never *in the WEB-INF\lib directory when
this project was running using Struts 1.2.  If I don't have the
commons-chain.jar in the WEB-INF\lib directory, I still got the same
exception.

*
*

Also, I have updated all the DTD references to:

http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";>

*
*

Could somebody let me know what I have missed here?



Thanks a lot

Joann







*[**3/21/12** 9:55:41:973 **EDT**] 0019 ActionServlet E
org.apache.struts.action.ActionServlet init Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable.  Most likely, this is due to an incorrect or
missing library dependency.*

* java.lang.NoClassDefFoundError:
org.apache.commons.chain.config.ConfigParser*

*at
org.apache.struts.action.ActionServlet.initChain(ActionServlet.java:1680)*

at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:350)

at javax.servlet.GenericServlet.init(GenericServlet.java:241)

at
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)

at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169)

at
com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1809)

at
com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)

at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1037)

at
com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:958)

at
com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:637)

at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:435)

at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)

at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)

at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)

at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)

at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)

at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)

at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)

at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)

at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)

at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610)

at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)

at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)

at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)

at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)

at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)

at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)

at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)

at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)

Caused by: java.lang.ClassNotFoundException:
org.apache.commons.chain.config.ConfigParser

at java.net.URLClassLoader.findClass(URLClassLoader.java:434)

at
com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)

at java.lang.ClassLoader.loadClass(ClassLoader.java:653)

at
com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)

at java.lang.ClassLoader.loadClass(ClassLoader.java:619)

at
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)

at
com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)

at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:541)

at java.lang.ClassLoader.loadClass(ClassLoader.java:6

Re: XStream Version

2012-03-21 Thread Łukasz Lenart
Register an issue ...


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

2012/3/21 Eric Lentz :
> Would it be this forum or somewhere else that I would suggest an upgrade to
> which version of XStream Struts 2 uses? I recently started using it for
> development not related to Struts 2, and found that the version being used
> is 1.2.2, which was released in May of 2007 [1][2]. I upgraded to 1.4.2,
> the latest[3], and haven't had any issues with Struts although I have not
> exhaustively tested and certainly haven't run any Struts core unit tests.
> Having a newer version would make it easier to utilize within the same web
> app. for which I'm running Struts 2.
>
> So, please let me know if there is some action I need to take to pass along
> this suggestion.
>
> [1] http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.2.2/
> [2] http://xstream.codehaus.org/changes.html
> [3] http://xstream.codehaus.org/download.html

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



XStream Version

2012-03-21 Thread Eric Lentz
Would it be this forum or somewhere else that I would suggest an upgrade to
which version of XStream Struts 2 uses? I recently started using it for
development not related to Struts 2, and found that the version being used
is 1.2.2, which was released in May of 2007 [1][2]. I upgraded to 1.4.2,
the latest[3], and haven't had any issues with Struts although I have not
exhaustively tested and certainly haven't run any Struts core unit tests.
Having a newer version would make it easier to utilize within the same web
app. for which I'm running Struts 2.

So, please let me know if there is some action I need to take to pass along
this suggestion.

[1] http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.2.2/
[2] http://xstream.codehaus.org/changes.html
[3] http://xstream.codehaus.org/download.html


Re: nested property tag in action tag

2012-03-21 Thread Markus Demetz

ok, for now I got it working by doing it in this way:



the thing is that I use the OpenSessionInView pattern with hibernate, so 
I get lazy exceptions here since the action already executed (now I 
prepared my specific properties in non lazy mode).
I'm doing so, beacause I need the computation of another action (or 
other actions) to show some common things (e.g. an account summary shown 
in the left column for every action in the /account namespace) while 
executing my action without needing to provide a custom view for every 
call of , so I thought I could put it inline.


regards,
markus



Am 21.03.2012 02:17, schrieb vEnkaTa mohAna rAo SriperumbUdUru:

I think, you need to reconsider your design let us what you want to do? why
are you doing so?

On Tue, Mar 20, 2012 at 6:19 PM, Markus Demetz  wrote:


hi all,

when I use the  tag inside a jsp with executeResult="true",
so I can access the properties of that action with the  tag
inside the result.

but is there a way to to access the same property without forwarding to a
result, say doing it inline like this:

// jsp code




I assume that when executeResult="false" the action is not put onto the
stack...
I know I can put it manually onto the value stack like the docs say, but
this currently confuses me... is there a better way or maybe one has a
clear explanation?

thanks,
markus





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





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