You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vivek mishra <mi...@gmail.com> on 2012/06/07 16:01:55 UTC

Problem in struts2 project setup.

Hi Folks,

While setting up new project using struts2, I am facing this error :

Unable to load configuration. - bean - jar:file:/E:/sp639u/apache-tomcat-6.0.
29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72

I googled it as well but couldn't find any solution. I has setup
struts2 projects earlier as well but didn't face any such issue.

I am stuck on this, any pointer will be much appreciated in this regard.

Thanks!
--
Vivek

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


Re: Problem in struts2 project setup.

Posted by vivek mishra <mi...@gmail.com>.
Thanks Dave.. Problem is solved with your solution.. :)

Regards,
--
VM

On Thu, Jun 7, 2012 at 8:57 PM, Dave Newton <da...@gmail.com> wrote:

> >> jar:file://apache-tomcat-6.0.29/lib/struts2-core-2.0.11.jar!
>
> That's from your log file.
>
> On Thu, Jun 7, 2012 at 11:24 AM, vivek mishra <mishravivek85@gmail.com
> >wrote:
>
> > Thanks for the reply guys. But I couldn't find any duplicate struts2
> > file in tomcat lib. I tried running this application with jboss as
> > well but no luck.
> >
> > As the war has been deployed perperly but while accessing the URL, its
> > giving 404 error: " The requested resource (/VFS/LoginAction.do) is
> > not available".
> >
> > Here's the server log which doesn't show any error on JBoss :
> >
> > 09:55:47,931 INFO  [TopicService] Topic[/topic/testDistributedTopic]
> > started, fullSize=200000, pageSize=2000, downCacheSize=2000
> > 09:55:48,017 INFO  [ConnectionFactoryBindingService] Bound
> > ConnectionManager
> > 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
> > 'java:JmsXA'
> > 09:55:48,601 INFO  [TomcatDeployer] deploy, ctxPath=/VFS,
> > warUrl=.../tmp/deploy/tmp5701658574832011525VFS-exp.war/
> > 09:55:48,657 INFO  [WebappClassLoader]
> >
> >
> validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servlet-api.jar)
> > - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> > class: javax/servlet/Servlet.class
> > 09:55:48,658 INFO  [WebappClassLoader]
> >
> >
> validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servletapi-2.3.jar)
> > - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> > class: javax/servlet/Servlet.class
> > 09:55:48,762 ERROR [STDERR] log4j:ERROR A
> > "org.jboss.logging.appender.FileAppender" object is not assignable to
> > a "org.apache.log4j.Appender" variable.
> > 09:55:49,126 ERROR [STDERR] log4j:ERROR The class
> > "org.apache.log4j.Appender" was loaded by
> > 09:55:49,126 ERROR [STDERR] log4j:ERROR [WebappClassLoader
> >  delegate: false
> >  repositories:
> >    /WEB-INF/classes/
> > ----------> Parent Classloader:
> > java.net.FactoryURLClassLoader@131767b
> > ] whereas object of type
> > 09:55:49,127 ERROR [STDERR] log4j:ERROR
> > "org.jboss.logging.appender.FileAppender" was loaded by
> > [org.jboss.system.server.NoAnnotationURLClassLoader@1d99a4d].
> > 09:55:49,127 ERROR [STDERR] log4j:ERROR Could not instantiate appender
> > named "FILE".
> > 09:55:49,249 INFO  [STDOUT] 09:55:49,249 INFO
> > [XmlConfigurationProvider] Parsing configuration file
> > [struts-default.xml]
> > 09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
> > [XmlConfigurationProvider] Unable to locate configuration files of the
> > name struts-plugin.xml, skipping
> > 09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
> > [XmlConfigurationProvider] Parsing configuration file
> > [struts-plugin.xml]
> > 09:55:49,364 INFO  [STDOUT] 09:55:49,364 INFO
> > [XmlConfigurationProvider] Parsing configuration file [struts.xml]
> > 09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for class com.opensymphony.xwork2.ObjectFactory
> > 09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for class
> > com.opensymphony.xwork2.conversion.impl.XWorkConverter
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.TextProvider
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.ActionProxyFactory
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.conversion.ObjectTypeDeterminer
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > org.apache.struts2.dispatcher.mapper.ActionMapper
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (jakarta) for interface
> > org.apache.struts2.dispatcher.multipart.MultiPartRequest
> > 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for class
> > org.apache.struts2.views.freemarker.FreemarkerManager
> > 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > org.apache.struts2.components.UrlRenderer
> > 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.validator.ActionValidatorManager
> > 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.util.ValueStackFactory
> > 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.util.reflection.ReflectionProvider
> > 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.util.reflection.ReflectionContextFactory
> > 09:55:49,371 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.util.PatternMatcher
> > 09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > org.apache.struts2.dispatcher.StaticContentLoader
> > 09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
> > Choosing bean (struts) for interface
> > com.opensymphony.xwork2.UnknownHandlerManager
> > 09:55:49,787 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console,
> > warUrl=.../deploy/jmx-console.war/
> > 09:55:49,898 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
> > http-127.0.0.1-48080
> > 09:55:49,938 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on
> > ajp-127.0.0.1-48009
> > 09:55:49,942 INFO  [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP04
> > (build: SVNTag=JBPAPP_4_3_0_GA_CP04 date=200902200048)] Started in
> > 12s:721ms
> >
> > --
> > Vivek
> >
> >
> > On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> > > It *is* included in the web-app directory.
> > >
> > > The problem is that there's *also* an S2 library in the Tomcat lib
> > > directory, where there shouldn't be one.
> > >
> > > Remove the old library from the tomcat lib directory.
> > >
> > > Dave
> > >
> > > On Thu, Jun 7, 2012 at 10:40 AM, CyberCom <cy...@flightmare.net>
> > wrote:
> > >
> > >> com.opensymphony.xwork2.**ObjectFactory with the name xwork has
> > >>>  already been loaded by bean -
> > >>> jar:file://apache-tomcat-6.0.**29/lib/struts2-core-2.0.11.**jar!
> > >>> /struts-default.xml:30:72 - bean -
> > >>> jar:file://apache-tomcat-6.0.**29/webapps/VFS/WEB-INF/lib/
> > >>> struts2-core-2.2.3.1.jar!/**struts-default.xml:29:72
> > >>>
> > >>
> > >> This looks to me like you have include to struts-core.jar files in
> > webapp
> > >> lib directory.
> > >> Tomcat does not delete files when you redeploy applications. When you
> > >> redeploy your webapp with a new struts version you need to make sure
> > that
> > >> you remove the old version before.
> > >>
> > >> Pascal
> > >>
> > >>
> > >>  On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> > >>>
> > >>>> Is that the *only* information available in the logs?
> > >>>>
> > >>>> Dave
> > >>>>
> > >>>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
> > >>>> <mi...@gmail.com>**wrote:
> > >>>>
> > >>>>  Hi Folks,
> > >>>>>
> > >>>>> While setting up new project using struts2, I am facing this error
> :
> > >>>>>
> > >>>>> Unable to load configuration. - bean -
> > >>>>> jar:file:/E:/sp639u/apache-**tomcat-6.0.
> > >>>>>
> > >>>>>
> > >>>>> 29/webapps/VFS/WEB-INF/lib/**struts2-core-2.2.3.1.jar!/**
> > >>>>> struts-default.xml:29:72
> > >>>>>
> > >>>>> I googled it as well but couldn't find any solution. I has setup
> > >>>>> struts2 projects earlier as well but didn't face any such issue.
> > >>>>>
> > >>>>> I am stuck on this, any pointer will be much appreciated in this
> > >>>>> regard.
> > >>>>>
> > >>>>> Thanks!
> > >>>>> --
> > >>>>> Vivek
> > >>>>>
> > >>>>>
> > >>>>> ------------------------------**------------------------------**
> > >>>>> ---------
> > >>>>> To unsubscribe, e-mail:
> > >>>>> user-unsubscribe@struts.**apache.org<
> > user-unsubscribe@struts.apache.org>
> > >>>>> For additional commands, e-mail: user-help@struts.apache.org
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > ------------------------------**------------------------------**---------
> > >>> To unsubscribe, e-mail:
> > >>> user-unsubscribe@struts.**apache.org<
> > user-unsubscribe@struts.apache.org>
> > >>> For additional commands, e-mail: user-help@struts.apache.org
> > >>>
> > >>
> > >>
> > >>
> > ------------------------------**------------------------------**---------
> > >> To unsubscribe, e-mail:
> > >> user-unsubscribe@struts.**apache.org<
> 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: Problem in struts2 project setup.

Posted by Dave Newton <da...@gmail.com>.
>> jar:file://apache-tomcat-6.0.29/lib/struts2-core-2.0.11.jar!

That's from your log file.

On Thu, Jun 7, 2012 at 11:24 AM, vivek mishra <mi...@gmail.com>wrote:

> Thanks for the reply guys. But I couldn't find any duplicate struts2
> file in tomcat lib. I tried running this application with jboss as
> well but no luck.
>
> As the war has been deployed perperly but while accessing the URL, its
> giving 404 error: " The requested resource (/VFS/LoginAction.do) is
> not available".
>
> Here's the server log which doesn't show any error on JBoss :
>
> 09:55:47,931 INFO  [TopicService] Topic[/topic/testDistributedTopic]
> started, fullSize=200000, pageSize=2000, downCacheSize=2000
> 09:55:48,017 INFO  [ConnectionFactoryBindingService] Bound
> ConnectionManager
> 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
> 'java:JmsXA'
> 09:55:48,601 INFO  [TomcatDeployer] deploy, ctxPath=/VFS,
> warUrl=.../tmp/deploy/tmp5701658574832011525VFS-exp.war/
> 09:55:48,657 INFO  [WebappClassLoader]
>
> validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servlet-api.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class
> 09:55:48,658 INFO  [WebappClassLoader]
>
> validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servletapi-2.3.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class
> 09:55:48,762 ERROR [STDERR] log4j:ERROR A
> "org.jboss.logging.appender.FileAppender" object is not assignable to
> a "org.apache.log4j.Appender" variable.
> 09:55:49,126 ERROR [STDERR] log4j:ERROR The class
> "org.apache.log4j.Appender" was loaded by
> 09:55:49,126 ERROR [STDERR] log4j:ERROR [WebappClassLoader
>  delegate: false
>  repositories:
>    /WEB-INF/classes/
> ----------> Parent Classloader:
> java.net.FactoryURLClassLoader@131767b
> ] whereas object of type
> 09:55:49,127 ERROR [STDERR] log4j:ERROR
> "org.jboss.logging.appender.FileAppender" was loaded by
> [org.jboss.system.server.NoAnnotationURLClassLoader@1d99a4d].
> 09:55:49,127 ERROR [STDERR] log4j:ERROR Could not instantiate appender
> named "FILE".
> 09:55:49,249 INFO  [STDOUT] 09:55:49,249 INFO
> [XmlConfigurationProvider] Parsing configuration file
> [struts-default.xml]
> 09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
> [XmlConfigurationProvider] Unable to locate configuration files of the
> name struts-plugin.xml, skipping
> 09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
> [XmlConfigurationProvider] Parsing configuration file
> [struts-plugin.xml]
> 09:55:49,364 INFO  [STDOUT] 09:55:49,364 INFO
> [XmlConfigurationProvider] Parsing configuration file [struts.xml]
> 09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for class com.opensymphony.xwork2.ObjectFactory
> 09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for class
> com.opensymphony.xwork2.conversion.impl.XWorkConverter
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.TextProvider
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.ActionProxyFactory
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.conversion.ObjectTypeDeterminer
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> org.apache.struts2.dispatcher.mapper.ActionMapper
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (jakarta) for interface
> org.apache.struts2.dispatcher.multipart.MultiPartRequest
> 09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for class
> org.apache.struts2.views.freemarker.FreemarkerManager
> 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> org.apache.struts2.components.UrlRenderer
> 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.validator.ActionValidatorManager
> 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.util.ValueStackFactory
> 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.util.reflection.ReflectionProvider
> 09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.util.reflection.ReflectionContextFactory
> 09:55:49,371 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.util.PatternMatcher
> 09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> org.apache.struts2.dispatcher.StaticContentLoader
> 09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
> Choosing bean (struts) for interface
> com.opensymphony.xwork2.UnknownHandlerManager
> 09:55:49,787 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console,
> warUrl=.../deploy/jmx-console.war/
> 09:55:49,898 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
> http-127.0.0.1-48080
> 09:55:49,938 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on
> ajp-127.0.0.1-48009
> 09:55:49,942 INFO  [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP04
> (build: SVNTag=JBPAPP_4_3_0_GA_CP04 date=200902200048)] Started in
> 12s:721ms
>
> --
> Vivek
>
>
> On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> > It *is* included in the web-app directory.
> >
> > The problem is that there's *also* an S2 library in the Tomcat lib
> > directory, where there shouldn't be one.
> >
> > Remove the old library from the tomcat lib directory.
> >
> > Dave
> >
> > On Thu, Jun 7, 2012 at 10:40 AM, CyberCom <cy...@flightmare.net>
> wrote:
> >
> >> com.opensymphony.xwork2.**ObjectFactory with the name xwork has
> >>>  already been loaded by bean -
> >>> jar:file://apache-tomcat-6.0.**29/lib/struts2-core-2.0.11.**jar!
> >>> /struts-default.xml:30:72 - bean -
> >>> jar:file://apache-tomcat-6.0.**29/webapps/VFS/WEB-INF/lib/
> >>> struts2-core-2.2.3.1.jar!/**struts-default.xml:29:72
> >>>
> >>
> >> This looks to me like you have include to struts-core.jar files in
> webapp
> >> lib directory.
> >> Tomcat does not delete files when you redeploy applications. When you
> >> redeploy your webapp with a new struts version you need to make sure
> that
> >> you remove the old version before.
> >>
> >> Pascal
> >>
> >>
> >>  On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> >>>
> >>>> Is that the *only* information available in the logs?
> >>>>
> >>>> Dave
> >>>>
> >>>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
> >>>> <mi...@gmail.com>**wrote:
> >>>>
> >>>>  Hi Folks,
> >>>>>
> >>>>> While setting up new project using struts2, I am facing this error :
> >>>>>
> >>>>> Unable to load configuration. - bean -
> >>>>> jar:file:/E:/sp639u/apache-**tomcat-6.0.
> >>>>>
> >>>>>
> >>>>> 29/webapps/VFS/WEB-INF/lib/**struts2-core-2.2.3.1.jar!/**
> >>>>> struts-default.xml:29:72
> >>>>>
> >>>>> I googled it as well but couldn't find any solution. I has setup
> >>>>> struts2 projects earlier as well but didn't face any such issue.
> >>>>>
> >>>>> I am stuck on this, any pointer will be much appreciated in this
> >>>>> regard.
> >>>>>
> >>>>> Thanks!
> >>>>> --
> >>>>> Vivek
> >>>>>
> >>>>>
> >>>>> ------------------------------**------------------------------**
> >>>>> ---------
> >>>>> To unsubscribe, e-mail:
> >>>>> user-unsubscribe@struts.**apache.org<
> user-unsubscribe@struts.apache.org>
> >>>>> For additional commands, e-mail: user-help@struts.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> ------------------------------**------------------------------**---------
> >>> To unsubscribe, e-mail:
> >>> user-unsubscribe@struts.**apache.org<
> user-unsubscribe@struts.apache.org>
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>
> >>
> >>
> ------------------------------**------------------------------**---------
> >> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.**apache.org<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: Problem in struts2 project setup.

Posted by vivek mishra <mi...@gmail.com>.
Thanks for the reply guys. But I couldn't find any duplicate struts2
file in tomcat lib. I tried running this application with jboss as
well but no luck.

As the war has been deployed perperly but while accessing the URL, its
giving 404 error: " The requested resource (/VFS/LoginAction.do) is
not available".

Here's the server log which doesn't show any error on JBoss :

09:55:47,931 INFO  [TopicService] Topic[/topic/testDistributedTopic]
started, fullSize=200000, pageSize=2000, downCacheSize=2000
09:55:48,017 INFO  [ConnectionFactoryBindingService] Bound
ConnectionManager
'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
'java:JmsXA'
09:55:48,601 INFO  [TomcatDeployer] deploy, ctxPath=/VFS,
warUrl=.../tmp/deploy/tmp5701658574832011525VFS-exp.war/
09:55:48,657 INFO  [WebappClassLoader]
validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
09:55:48,658 INFO  [WebappClassLoader]
validateJarFile(E:\vm645b\jboss_4_Current\jboss-eap-4.3\jboss-as\server\default\.\tmp\deploy\tmp5701658574832011525VFS-exp.war\WEB-INF\lib\servletapi-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
09:55:48,762 ERROR [STDERR] log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable to
a "org.apache.log4j.Appender" variable.
09:55:49,126 ERROR [STDERR] log4j:ERROR The class
"org.apache.log4j.Appender" was loaded by
09:55:49,126 ERROR [STDERR] log4j:ERROR [WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@131767b
] whereas object of type
09:55:49,127 ERROR [STDERR] log4j:ERROR
"org.jboss.logging.appender.FileAppender" was loaded by
[org.jboss.system.server.NoAnnotationURLClassLoader@1d99a4d].
09:55:49,127 ERROR [STDERR] log4j:ERROR Could not instantiate appender
named "FILE".
09:55:49,249 INFO  [STDOUT] 09:55:49,249 INFO
[XmlConfigurationProvider] Parsing configuration file
[struts-default.xml]
09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
[XmlConfigurationProvider] Unable to locate configuration files of the
name struts-plugin.xml, skipping
09:55:49,358 INFO  [STDOUT] 09:55:49,358 INFO
[XmlConfigurationProvider] Parsing configuration file
[struts-plugin.xml]
09:55:49,364 INFO  [STDOUT] 09:55:49,364 INFO
[XmlConfigurationProvider] Parsing configuration file [struts.xml]
09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
Choosing bean (struts) for class com.opensymphony.xwork2.ObjectFactory
09:55:49,367 INFO  [STDOUT] 09:55:49,367 INFO  [BeanSelectionProvider]
Choosing bean (struts) for class
com.opensymphony.xwork2.conversion.impl.XWorkConverter
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.TextProvider
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.ActionProxyFactory
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.conversion.ObjectTypeDeterminer
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
org.apache.struts2.dispatcher.mapper.ActionMapper
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (jakarta) for interface
org.apache.struts2.dispatcher.multipart.MultiPartRequest
09:55:49,368 INFO  [STDOUT] 09:55:49,368 INFO  [BeanSelectionProvider]
Choosing bean (struts) for class
org.apache.struts2.views.freemarker.FreemarkerManager
09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
org.apache.struts2.components.UrlRenderer
09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.validator.ActionValidatorManager
09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.util.ValueStackFactory
09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.util.reflection.ReflectionProvider
09:55:49,370 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.util.reflection.ReflectionContextFactory
09:55:49,371 INFO  [STDOUT] 09:55:49,370 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.util.PatternMatcher
09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
org.apache.struts2.dispatcher.StaticContentLoader
09:55:49,371 INFO  [STDOUT] 09:55:49,371 INFO  [BeanSelectionProvider]
Choosing bean (struts) for interface
com.opensymphony.xwork2.UnknownHandlerManager
09:55:49,787 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console,
warUrl=.../deploy/jmx-console.war/
09:55:49,898 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-48080
09:55:49,938 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-48009
09:55:49,942 INFO  [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP04
(build: SVNTag=JBPAPP_4_3_0_GA_CP04 date=200902200048)] Started in
12s:721ms

--
Vivek


On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> It *is* included in the web-app directory.
>
> The problem is that there's *also* an S2 library in the Tomcat lib
> directory, where there shouldn't be one.
>
> Remove the old library from the tomcat lib directory.
>
> Dave
>
> On Thu, Jun 7, 2012 at 10:40 AM, CyberCom <cy...@flightmare.net> wrote:
>
>> com.opensymphony.xwork2.**ObjectFactory with the name xwork has
>>>  already been loaded by bean -
>>> jar:file://apache-tomcat-6.0.**29/lib/struts2-core-2.0.11.**jar!
>>> /struts-default.xml:30:72 - bean -
>>> jar:file://apache-tomcat-6.0.**29/webapps/VFS/WEB-INF/lib/
>>> struts2-core-2.2.3.1.jar!/**struts-default.xml:29:72
>>>
>>
>> This looks to me like you have include to struts-core.jar files in webapp
>> lib directory.
>> Tomcat does not delete files when you redeploy applications. When you
>> redeploy your webapp with a new struts version you need to make sure that
>> you remove the old version before.
>>
>> Pascal
>>
>>
>>  On 6/7/12, Dave Newton <da...@gmail.com> wrote:
>>>
>>>> Is that the *only* information available in the logs?
>>>>
>>>> Dave
>>>>
>>>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
>>>> <mi...@gmail.com>**wrote:
>>>>
>>>>  Hi Folks,
>>>>>
>>>>> While setting up new project using struts2, I am facing this error :
>>>>>
>>>>> Unable to load configuration. - bean -
>>>>> jar:file:/E:/sp639u/apache-**tomcat-6.0.
>>>>>
>>>>>
>>>>> 29/webapps/VFS/WEB-INF/lib/**struts2-core-2.2.3.1.jar!/**
>>>>> struts-default.xml:29:72
>>>>>
>>>>> I googled it as well but couldn't find any solution. I has setup
>>>>> struts2 projects earlier as well but didn't face any such issue.
>>>>>
>>>>> I am stuck on this, any pointer will be much appreciated in this
>>>>> regard.
>>>>>
>>>>> Thanks!
>>>>> --
>>>>> Vivek
>>>>>
>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ---------
>>>>> To unsubscribe, e-mail:
>>>>> user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail:
>>> user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.**apache.org<us...@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: Problem in struts2 project setup.

Posted by Dave Newton <da...@gmail.com>.
It *is* included in the web-app directory.

The problem is that there's *also* an S2 library in the Tomcat lib
directory, where there shouldn't be one.

Remove the old library from the tomcat lib directory.

Dave

On Thu, Jun 7, 2012 at 10:40 AM, CyberCom <cy...@flightmare.net> wrote:

> com.opensymphony.xwork2.**ObjectFactory with the name xwork has
>>  already been loaded by bean -
>> jar:file://apache-tomcat-6.0.**29/lib/struts2-core-2.0.11.**jar!
>> /struts-default.xml:30:72 - bean -
>> jar:file://apache-tomcat-6.0.**29/webapps/VFS/WEB-INF/lib/
>> struts2-core-2.2.3.1.jar!/**struts-default.xml:29:72
>>
>
> This looks to me like you have include to struts-core.jar files in webapp
> lib directory.
> Tomcat does not delete files when you redeploy applications. When you
> redeploy your webapp with a new struts version you need to make sure that
> you remove the old version before.
>
> Pascal
>
>
>  On 6/7/12, Dave Newton <da...@gmail.com> wrote:
>>
>>> Is that the *only* information available in the logs?
>>>
>>> Dave
>>>
>>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
>>> <mi...@gmail.com>**wrote:
>>>
>>>  Hi Folks,
>>>>
>>>> While setting up new project using struts2, I am facing this error :
>>>>
>>>> Unable to load configuration. - bean -
>>>> jar:file:/E:/sp639u/apache-**tomcat-6.0.
>>>>
>>>>
>>>> 29/webapps/VFS/WEB-INF/lib/**struts2-core-2.2.3.1.jar!/**
>>>> struts-default.xml:29:72
>>>>
>>>> I googled it as well but couldn't find any solution. I has setup
>>>> struts2 projects earlier as well but didn't face any such issue.
>>>>
>>>> I am stuck on this, any pointer will be much appreciated in this regard.
>>>>
>>>> Thanks!
>>>> --
>>>> Vivek
>>>>
>>>>
>>>> ------------------------------**------------------------------**
>>>> ---------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>>
>>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<us...@struts.apache.org>
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Problem in struts2 project setup.

Posted by CyberCom <cy...@flightmare.net>.
> com.opensymphony.xwork2.ObjectFactory with the name xwork has
>  already been loaded by bean -
> jar:file://apache-tomcat-6.0.29/lib/struts2-core-2.0.11.jar!
> /struts-default.xml:30:72 - bean -
> jar:file://apache-tomcat-6.0.29/webapps/VFS/WEB-INF/lib/
> struts2-core-2.2.3.1.jar!/struts-default.xml:29:72

This looks to me like you have include to struts-core.jar files in 
webapp lib directory.
Tomcat does not delete files when you redeploy applications. When you 
redeploy your webapp with a new struts version you need to make sure 
that you remove the old version before.

Pascal

> On 6/7/12, Dave Newton <da...@gmail.com> wrote:
>> Is that the *only* information available in the logs?
>>
>> Dave
>>
>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
>> <mi...@gmail.com>wrote:
>>
>>> Hi Folks,
>>>
>>> While setting up new project using struts2, I am facing this error 
>>> :
>>>
>>> Unable to load configuration. - bean -
>>> jar:file:/E:/sp639u/apache-tomcat-6.0.
>>>
>>> 
>>> 29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
>>>
>>> I googled it as well but couldn't find any solution. I has setup
>>> struts2 projects earlier as well but didn't face any such issue.
>>>
>>> I am stuck on this, any pointer will be much appreciated in this 
>>> regard.
>>>
>>> Thanks!
>>> --
>>> Vivek
>>>
>>> 
>>> ---------------------------------------------------------------------
>>> 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


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


Re: Problem in struts2 project setup.

Posted by vivek mishra <mi...@gmail.com>.
Hi Dave,

Here's the log:

java] Jun 7, 2012 8:15:54 AM org.apache.catalina.startup.HostConfig deployWAR
     [java] INFO: Deploying web application archive VFS.war
     [java] Jun 7, 2012 8:15:54 AM
org.apache.catalina.loader.WebappClassLoader validateJarFile
     [java] INFO:
validateJarFile(\apache-tomcat-6.0.29\webapps\VFS\WEB-INF\lib\servlet-api
.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.
class
     [java] Jun 7, 2012 8:15:54 AM
org.apache.catalina.loader.WebappClassLoader validateJarFile
     [java] INFO:
validateJarFile(\apache-tomcat-6.0.29\webapps\VFS\WEB-INF\lib\servletapi-
2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax/servlet/Servl
et.class
     [java] log4j:WARN No appenders could be found for logger
(com.att.vfs.csp.CSPFilter).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Jun 7, 2012 8:15:55 AM
org.apache.catalina.core.StandardContext filterStart
     [java] SEVERE: Exception starting filter VFS
     [java] Unable to load configuration. - bean -
jar:file://apache-tomcat-6.0.29/webapps/
VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
     [java]     at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
     [java]     at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.jav
a:69)
     [java]     at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(Struts
PrepareAndExecuteFilter.java:51)
     [java]     at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfi
g.java:295)
     [java]     at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterCo
nfig.java:422)
     [java]     at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.j
ava:115)
     [java]     at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
     [java]     at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
     [java]     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
     [java]     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
     [java]     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
     [java]     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
     [java]     at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
     [java]     at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
     [java]     at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
     [java]     at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
     [java]     at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.jav
a:119)
     [java]     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
     [java]     at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
     [java]     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
     [java]     at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
     [java]     at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
     [java]     at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
     [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
     [java]     at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
     [java] Caused by: Unable to load configuration. - bean -
jar:file://apache-tomcat-6.0.
29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
     [java]     at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configuratio
nManager.java:69)
     [java]     at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.jav
a:380)
     [java]     at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
     [java]     ... 29 more
     [java] Caused by: Unable to load bean: type:
class:com.opensymphony.xwork2.ObjectFactory - bean
 - jar:file://apache-tomcat-6.0.29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts
-default.xml:29:72
     [java]     at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlCon
figurationProvider.java:232)
     [java]     at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfig
urationProvider.java:101)
     [java]     at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultC
onfiguration.java:180)
     [java]     at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configuratio
nManager.java:66)
     [java]     ... 31 more
     [java] Caused by: Bean type class
com.opensymphony.xwork2.ObjectFactory with the name xwork has
 already been loaded by bean -
jar:file://apache-tomcat-6.0.29/lib/struts2-core-2.0.11.jar!
/struts-default.xml:30:72 - bean -
jar:file://apache-tomcat-6.0.29/webapps/VFS/WEB-INF/lib/
struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
     [java]     at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlCon
figurationProvider.java:216)
     [java]     ... 34 more
     [java] Jun 7, 2012 8:15:55 AM
org.apache.catalina.core.StandardContext start
     [java] SEVERE: Error filterStart
     [java] Jun 7, 2012 8:15:55 AM
org.apache.catalina.core.StandardContext start
     [java] SEVERE: Context [/VFS] startup failed due to previous errors


On 6/7/12, Dave Newton <da...@gmail.com> wrote:
> Is that the *only* information available in the logs?
>
> Dave
>
> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
> <mi...@gmail.com>wrote:
>
>> Hi Folks,
>>
>> While setting up new project using struts2, I am facing this error :
>>
>> Unable to load configuration. - bean -
>> jar:file:/E:/sp639u/apache-tomcat-6.0.
>>
>> 29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
>>
>> I googled it as well but couldn't find any solution. I has setup
>> struts2 projects earlier as well but didn't face any such issue.
>>
>> I am stuck on this, any pointer will be much appreciated in this regard.
>>
>> Thanks!
>> --
>> Vivek
>>
>> ---------------------------------------------------------------------
>> 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: Problem in struts2 project setup.

Posted by Dave Newton <da...@gmail.com>.
Is that the *only* information available in the logs?

Dave

On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra <mi...@gmail.com>wrote:

> Hi Folks,
>
> While setting up new project using struts2, I am facing this error :
>
> Unable to load configuration. - bean -
> jar:file:/E:/sp639u/apache-tomcat-6.0.
>
> 29/webapps/VFS/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72
>
> I googled it as well but couldn't find any solution. I has setup
> struts2 projects earlier as well but didn't face any such issue.
>
> I am stuck on this, any pointer will be much appreciated in this regard.
>
> Thanks!
> --
> Vivek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>