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 <davelnew...@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 <cyber...@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 <davelnew...@gmail.com> wrote:
>>>
>>>> Is that the *only* information available in the logs?
>>>>
>>>> Dave
>>>>
>>>> On Thu, Jun 7, 2012 at 10:01 AM, vivek mishra
>>>> <mishravive...@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-unsubscr...@struts.apache.org>
>>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail:
>>> user-unsubscribe@struts.**apache.org<user-unsubscr...@struts.apache.org>
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.**apache.org<user-unsubscr...@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

Reply via email to