You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ALI YILDIRIM <ay...@sgk.gov.tr> on 2012/04/02 14:45:43 UTC

Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Hi ,

İ just wanted to run base struts 2 HelloWolrd example in WebSphere Application Server 7,but no succeed and i am facing a problem as below.
İ tried some solutions like the one this link : http://technicalmumbojumbo.wordpress.com/2010/05/15/struts2-websphere-application-server-was-web-server-plugin/
Or setting some custom server  properties true: com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror=true <http://localhost:9061/ibm/console/propertyCollection.do?EditAction=true&refId=Property_1332931053312&contextId=cells%3Aki2546020096Node02Cell%3Anodes%3Aki2546020096Node02%3Aservers%3Aserver1&resourceUri=server.xml&perspective=tab.configuration> , com.ibm.ws.webcontainer.invokefilterscompatibility=true
But it didnt solve the problem.

İf anyone faced this problem and found the solution please  share here and  it would be apreciated.
Thanks...

My web.xml looks like :
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <display-name>
      HelloworldStruts2Test</display-name>

      <filter>
            <filter-name>struts2</filter-name>
            <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
      </filter>
      <filter-mapping>
            <filter-name>struts2</filter-name>
            <url-pattern>/*</url-pattern>
      </filter-mapping>


      <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>

      <servlet>
            <servlet-name>My Servlet</servlet-name>
            <servlet-class>util.MyServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
      </servlet>

</web-app>

And here is MyServlet class but at debugging mode i couldnt see as it Works :

public class MyServlet extends HttpServlet {
      private static final long serialVersionUID = 1L;
      public MyServlet(){
            super();
      }
      public void init(ServletConfig session){

      }
}

Below is the error i couldn avoid to face :


[02.04.2012 15:07:11:828 EEST] 00000013 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet Error]-[null]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport:
      at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:637)
      at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1187)
      at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:839)
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:533)
      at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)
      at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
      at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
      at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:997)
      at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:1062)
      at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:759)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)


thanks in advence...

________________________________
YASAL UYARI

Bu e - postanin içerdigi bilgiler (ekleri dahil olmak üzere) gizlidir. SGK'nin onayi olmaksizin üçüncü kisilere açiklanamaz. Bu mesajin gönderilmek istendigi kisi degilseniz, lütfen mesaji sisteminizden derhal siliniz. SGK bu mesajin içerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne sekilde olursa olsun içeriginden, iletilmesinden, alinmasindan, saklanmasindan sorumlu degildir. Bu mesajin içerigi yazarina ait olup, Sosyal Güvenlik Kurumu'nun görüslerini içermeyebilir.

LEGAL NOTICE

The information contained in this e-mail (including any attachments) is confidential. It must not be disclosed to any person without SGK authority. If you are not the intended recipient, please delete it from your system immediately. Social Security Institute makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinion expressed in this message are those of the author and may not necessarily reflect the opinions of Social Security Institute.

RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by manohar <il...@yahoo.co.in>.
3/20/14 14:24:44:602 MDT] 00000019 webapp        E
com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet
Error]-[Unable to instantiate Action,
ca.ab.gov.acys.hscs.web.actions.app.Create,  defined for 'new' in namespace
'/application'$Proxy29 incompatible with java.lang.annotation.Annotation]:
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Unable to instantiate
Action, ca.ab.gov.acys.hscs.web.actions.app.Create,  defined for
&#39;new&#39; in namespace &#39;/application&#39;$Proxy29 incompatible with
java.lang.annotation.Annotation
	at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:637)
	at
com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1187)
	at
javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:131)
	at
com.opensymphony.module.sitemesh.filter.PageResponseWrapper.sendError(PageResponseWrapper.java:176)



--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715564.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Martin Gainty <mg...@hotmail.com>.
  


> Date: Fri, 21 Mar 2014 07:31:25 +0800
> Subject: Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19
> From: ykchowaa@gmail.com
> To: user@struts.apache.org
> 
> Can u send out ur project I worn fine on spring struts in was 8.5
> On 21 Mar, 2014 6:08 am, "manohar" <il...@yahoo.co.in> wrote:
> 
> > Hi,
> >
> > Have you fixed the issue?
MG>What issue are you alluding to?

>> I am having the same issue. I am using Struts
> > 2.1.6 and WAS 7.0.0.27. If you have fixed it please share your fix. I am
> > struggling since 10 days and could not able to find the solution.
> >
> > Your response will be highly appreciated.
> >
> > THanks in advance,
> >
> >
> >
> > --
> > View this message in context:
> > http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715557.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
 		 	   		  

Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Java OpenSource <yk...@gmail.com>.
Can u send out ur project I worn fine on spring struts in was 8.5
On 21 Mar, 2014 6:08 am, "manohar" <il...@yahoo.co.in> wrote:

> Hi,
>
> Have you fixed the issue? I am having the same issue. I am using Struts
> 2.1.6 and WAS 7.0.0.27. If you have fixed it please share your fix. I am
> struggling since 10 days and could not able to find the solution.
>
> Your response will be highly appreciated.
>
> THanks in advance,
>
>
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715557.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Antwort: RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by manohar <il...@yahoo.co.in>.
Hi Lukasz,

Thanks for your response but I do not see your answer!! :)

Class attribute for validator tag was already declared in default.xml. I was
getting name attribute is required so had to add that attribute for
validator tag.

Here is the default.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
    &quot;-//Apache Struts//XWork Validator 1.0.2//EN&quot;
    &quot;http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd&quot;>


<validators>
    <validator
class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"
type="required" name="required"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.RequiredStringValidator"
type="requiredstring" name="requiredstring"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator"
type="int" name="int"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator"
type="long" name="long"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator"
type="short" name="short"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator" 
type="double" name="double"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator"
type="date" name="date"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ExpressionValidator"
type="expression" name="expression"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.FieldExpressionValidator"
type="fieldexpression" name="fieldexpression"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.EmailValidator"
type="email" name="email"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.URLValidator" type="url"
name="url"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.VisitorFieldValidator"
type="visitor" name="visitor"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator"
type="conversion" name="conversion"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator"
type="stringlength" name="stringlength"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.RegexFieldValidator"
type="regex" name="regex"/>
    <validator
class="com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator"
type="conditionalvisitor" name="conditionalvisitor"/>
</validators>





--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715578.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Re: Antwort: RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Lukasz Lenart <lu...@apache.org>.
2014-03-24 23:23 GMT+01:00 manohar <il...@yahoo.co.in>:
> com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet
> Error]-[Attribute "class" must be declared for element type "validator".]:

Here you have the answer.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Antwort: RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by manohar <il...@yahoo.co.in>.
Hi,

Thanks for your response. I changed the class loader settings but now I am
getting different error:

[3/24/14 16:20:39:455 MDT] 00000017 webapp E
com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet
Error]-[Attribute "class" must be declared for element type "validator".]:
Unable to load configuration. - interceptor -
wsjar:file:/C:/IBM/WebSphere/AppServer/profiles/AppSrvHSCS/installedApps/IBM-7eee9b3778eNode02Cell/acys-hscs.ear/acys-hscs-web.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:146:127
 at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
 at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
 at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
 at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:44)
 at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:142)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:548)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:462)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:319)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:379)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:860)
 at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:997)
 at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:1078)
 at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:775)
 at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3954)
 at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
 at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:942)
 at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
 at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
 at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)
 at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
 at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
 at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
 at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
Caused by: Caught Exception while registering Interceptor class
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor -
interceptor -
wsjar:file:/C:/IBM/WebSphere/AppServer/profiles/AppSrvHSCS/installedApps/IBM-7eee9b3778eNode02Cell/acys-hscs.ear/acys-hscs-web.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:146:127
 at
com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:202)
 at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructParameterizedInterceptorReferences(InterceptorBuilder.java:170)
 at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:72)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1092)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:798)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:811)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:834)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:441)
 at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:265)
 at
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
 at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:189)
 at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
 ... 30 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:485)
 at
com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523)
 at
com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:522)
 at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521)
 at
com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(ObjectFactory.java:127)
 at
com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(SpringObjectFactory.java:181)
 at
com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:158)
 at
com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:129)
 at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139)
 at
com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:180)
 ... 41 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
 at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
 at
com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:462)
 at
com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:477)
 at
com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:34)
 at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)
 ... 52 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:495)
 at
com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532)
 at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530)
 at
com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
 at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)
 ... 57 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)
 at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:492)
 ... 62 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
 at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
 at
com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:462)
 at
com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:477)
 at
com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:34)
 at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)
 ... 64 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:495)
 at
com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532)
 at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530)
 at
com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
 at
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)
 ... 69 more
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
 at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:440)
 at
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:492)
 ... 74 more
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:45)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
 at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:419)
 ... 75 more
Caused by: Attribute "class" must be declared for element type "validator".
-
file:///C:/IBM/WebSphere/AppServer/profiles/AppSrvHSCS/com/opensymphony/xwork2/validator/validators/default.xml:8:125
 at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)



--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715575.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Antwort: RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Christoph Nenning <Ch...@lex-com.net>.
> I think you should change the the class loader priority in your 
websphere.
> * Click on WebSphere enterprise applications.
> * Choose your enterprise application
> * Click on Manage Modules.
> * Click on your module.
> * "Select Classes loaded with local class loader first (parent 
> last)" from the Class loader order drop
> down list.
> * Click on OK.
> * Click on Save.
> * restart the websphere
> 


you can automate this by adding a file to your EAR project:

/META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/
deployment.xml


content:



<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment
        xmi:version="2.0"
        xmlns:xmi="http://www.omg.org/XMI"
        xmlns:appdeployment="
http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi">

        <deployedObject xmi:type="appdeployment:ApplicationDeployment" 
startingWeight="10">

                <modules 
                        xmi:type="appdeployment:WebModuleDeployment"
                        startingWeight="10000" 
                        uri="<your war name>" 
                        classloaderMode="PARENT_LAST" />
                <classloader mode="PARENT_LAST" />
        </deployedObject>
</appdeployment:Deployment>



regards,
Christoph

This Email was scanned by Sophos Anti Virus

RE: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Tamer Erdogan <Ta...@vasco.com>.
I think you should change the the class loader priority in your websphere.
* Click on WebSphere enterprise applications.
* Choose your enterprise application
* Click on Manage Modules.
* Click on your module.
* "Select Classes loaded with local class loader first (parent last)" from the Class loader order drop
down list.
* Click on OK.
* Click on Save.
* restart the websphere

That should do the trick.

Regards
Tamer

-----Original Message-----
From: manohar [mailto:ilumann2927@yahoo.co.in] 
Sent: Thursday, March 20, 2014 23:08
To: user@struts.apache.org
Subject: Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Hi,

Have you fixed the issue? I am having the same issue. I am using Struts
2.1.6 and WAS 7.0.0.27. If you have fixed it please share your fix. I am struggling since 10 days and could not able to find the solution.

Your response will be highly appreciated.

THanks in advance,



--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715557.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


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


Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by manohar <il...@yahoo.co.in>.
Hi,

Have you fixed the issue? I am having the same issue. I am using Struts
2.1.6 and WAS 7.0.0.27. If you have fixed it please share your fix. I am
struggling since 10 days and could not able to find the solution.

Your response will be highly appreciated.

THanks in advance,



--
View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts-2-Project-in-WebSphere-Application-Serve-7-0-0-19-tp5612359p5715557.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/4/2 ALI YILDIRIM <ay...@sgk.gov.tr>:
>      <filter>
>            <filter-name>struts2</filter-name>
>            <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>      </filter>

Struts 2 version ?

Check that
http://struts.apache.org/2.x/docs/webxml.html
http://struts.apache.org/2.x/docs/websphere.html
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=158327


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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org