Niklas Johansson schrieb:
Hello,
I am kind of novice on this, but couldn't it be that you have the same class
twice in the classpath?
Regards,
Niklas
----------------------------------------
Date: Sun, 26 Apr 2009 13:06:32 +0200
Subject: Re: struts 2 and tomcat 6 problem
From: lukasz.len...@googlemail.com
To: user@struts.apache.org
2009/4/26 Kortheo :
I've just created a new standard "dynamic web project" using eclipse ,
added the struts2 libs and configured a standard mapping in web.xml
Did you add all needed dependency?
Unable to load configuration. - bean -
jar:file:/Users/kortheo/Projekte/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/kptool/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:30:119
Caused by: Bean type interface com.opensymphony.xwork2.UnknownHandler
with the name default has already been loaded by bean -
jar:file:/Users/kortheo/Projekte/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/kptool/WEB-INF/lib/struts2-codebehind-plugin-2.1.6.jar!/struts-plugin.xml:29:122
You are mixing Convention with CodeBehind plugin, you have to chose
either first or second approach. Convention overtook CodeBehind so
follow this way and read documentation [1]
[1] http://cwiki.apache.org/WW/convention-plugin.html
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
no thats not it, it's that the same class gets loaded twice, because as
Lukasz said (thx again by the way) , I used the codebehind plugin and
the conventions plugin. They both load the class.
So, I tried to just remove codebehind. The error is gone now, but I got
a new one.
I'm tryin to solve this issue now, if I can't seem to move foreward I'll
write again
Thanks alot, everyone
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org