You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Lukasz Lenart <lu...@googlemail.com> on 2009/07/29 18:53:50 UTC
Missing class
Hi,
I build my custom Xwork distro and tried to use it with Struts
2.1.8-SNAPSHOT but I've got such exception from Convention plugin:
java.lang.NoClassDefFoundError: org/objectweb/asm/xwork/ClassVisitor
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
Any idea?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
meh, not really.
On Wed, Jul 29, 2009 at 11:10 AM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> 2009/7/29 Rainer Hermanns <he...@aixcept.de>:
>> Yes, it should be in sync...
>
> So I can make my first commit to Struts2 ;-) Should I prepare JIRA
> ticket for that?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/7/29 Rainer Hermanns <he...@aixcept.de>:
> Yes, it should be in sync...
So I can make my first commit to Struts2 ;-) Should I prepare JIRA
ticket for that?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
someone forgot to update that.../rolls_eyes :)
musachy
On Wed, Jul 29, 2009 at 11:05 AM, Rainer Hermanns<he...@aixcept.de> wrote:
> Yes, it should be in sync...
> Rainer
>> I found one think in struts2-core pom.xml - unpack goal use
>> xwork-core-2.1.4 but the whole project depend on xwork-2.1.5-SNAPSHOT.
>>
>> Shouldn't it be in sync?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>> http://dailylog.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
>
>
> --
> Rainer Hermanns
> aixcept
> Willibrordstraße 82
> 52134 Herzogenrath - Germany
> w: http://aixcept.de/
> t: +49 - 2406 - 979 22 11
> f: +49 - 2406 - 979 22 13
> m: +49 - 170 - 343 29 12
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Rainer Hermanns <he...@aixcept.de>.
Yes, it should be in sync...
Rainer
> I found one think in struts2-core pom.xml - unpack goal use
> xwork-core-2.1.4 but the whole project depend on xwork-2.1.5-SNAPSHOT.
>
> Shouldn't it be in sync?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
Rainer Hermanns
aixcept
Willibrordstraße 82
52134 Herzogenrath - Germany
w: http://aixcept.de/
t: +49 - 2406 - 979 22 11
f: +49 - 2406 - 979 22 13
m: +49 - 170 - 343 29 12
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
I found one think in struts2-core pom.xml - unpack goal use
xwork-core-2.1.4 but the whole project depend on xwork-2.1.5-SNAPSHOT.
Shouldn't it be in sync?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
the problem is that it then becomes a transitive dependency. (even
when market as "optional")
musachy
On Wed, Jul 29, 2009 at 12:20 PM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> 2009/7/29 Musachy Barroso <mu...@gmail.com>:
>> hum..interesting..let me try to delete asm from my repo and see if it
>> doesn't shade the classes.
>
> I think I found the reason - in parent pom, the asm was marked as a
> provided. When I removed that I was able to built package with shaded
> asm ;-)
>
> Someone can confirm that? I'm not a maven expert ;-)
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/7/29 Musachy Barroso <mu...@gmail.com>:
> hum..interesting..let me try to delete asm from my repo and see if it
> doesn't shade the classes.
I think I found the reason - in parent pom, the asm was marked as a
provided. When I removed that I was able to built package with shaded
asm ;-)
Someone can confirm that? I'm not a maven expert ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
hum..interesting..let me try to delete asm from my repo and see if it
doesn't shade the classes.
musachy
On Wed, Jul 29, 2009 at 11:34 AM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> 2009/7/29 Musachy Barroso <mu...@gmail.com>:
>> Not sure what is going on, "it works for me", and if the classes are
>> getting shadowed properly, they should be inside the xwork jar.
>
> I cleaned up my local Maven repo, rebuild and reinstall xwork and I
> checked the built jar - it's missing shaded asm but it has shaded
> commons ;-(
>
> The xwork-core pom.xml has:
> <exclude>asm:asm-util</exclude>
>
> and
> <relocation>
> <pattern>org.objectweb.asm</pattern>
> <shadedPattern>org.objectweb.asm.xwork</shadedPattern>
> </relocation>
>
> so it should be ok.
>
> I've looked to my repo again and discovered that it's missing
> org/objectweb directory, should I first install asm or what?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/7/29 Musachy Barroso <mu...@gmail.com>:
> Not sure what is going on, "it works for me", and if the classes are
> getting shadowed properly, they should be inside the xwork jar.
I cleaned up my local Maven repo, rebuild and reinstall xwork and I
checked the built jar - it's missing shaded asm but it has shaded
commons ;-(
The xwork-core pom.xml has:
<exclude>asm:asm-util</exclude>
and
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>org.objectweb.asm.xwork</shadedPattern>
</relocation>
so it should be ok.
I've looked to my repo again and discovered that it's missing
org/objectweb directory, should I first install asm or what?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
Not sure what is going on, "it works for me", and if the classes are
getting shadowed properly, they should be inside the xwork jar.
On Wed, Jul 29, 2009 at 11:20 AM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> 2009/7/29 Musachy Barroso <mu...@gmail.com>:
>> It works for me, one thing that is weird, it should be complaining
>> about not finding the shadowed class, like
>> "org/objectweb/asm/xwork/ClassVisitor" instead of the original class
>> "org/objectweb/asm/ClassVisitor". Check your xwork jars and see if the
>> shadowed classes are there.
>
> Right now is complaining about that:
>
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.078
> sec <<< FAILURE!
> testActionPackages(org.apache.struts2.convention.PackageBasedActionConfigBuilderTest)
> Time elapsed: 0.062 sec <<< ERROR!
> java.lang.NoClassDefFoundError: org/objectweb/asm/xwork/ClassVisitor
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.run(PackageBasedActionConfigBuilderTest.java:318)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.testActionPackages(PackageBasedActionConfigBuilderTest.java:99)
> Caused by: java.lang.ClassNotFoundException:
> org.objectweb.asm.xwork.ClassVisitor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> ... 30 more
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/7/29 Musachy Barroso <mu...@gmail.com>:
> It works for me, one thing that is weird, it should be complaining
> about not finding the shadowed class, like
> "org/objectweb/asm/xwork/ClassVisitor" instead of the original class
> "org/objectweb/asm/ClassVisitor". Check your xwork jars and see if the
> shadowed classes are there.
Right now is complaining about that:
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.078
sec <<< FAILURE!
testActionPackages(org.apache.struts2.convention.PackageBasedActionConfigBuilderTest)
Time elapsed: 0.062 sec <<< ERROR!
java.lang.NoClassDefFoundError: org/objectweb/asm/xwork/ClassVisitor
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.run(PackageBasedActionConfigBuilderTest.java:318)
at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.testActionPackages(PackageBasedActionConfigBuilderTest.java:99)
Caused by: java.lang.ClassNotFoundException:
org.objectweb.asm.xwork.ClassVisitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 30 more
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
It works for me, one thing that is weird, it should be complaining
about not finding the shadowed class, like
"org/objectweb/asm/xwork/ClassVisitor" instead of the original class
"org/objectweb/asm/ClassVisitor". Check your xwork jars and see if the
shadowed classes are there.
On Wed, Jul 29, 2009 at 10:22 AM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> 2009/7/29 Musachy Barroso <mu...@gmail.com>:
>> did you update/build convention?
>
> Yes, I updated it but when tried to install two tests are falling:
>
> testActionPackages(org.apache.struts2.convention.PackageBasedActionConfigBuilderTest)
> Time elapsed: 0.078 sec <<< ERROR!
> java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.run(PackageBasedActionConfigBuilderTest.java:318)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.testActionPackages(PackageBasedActionConfigBuilderTest.java:99)
> Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> ... 30 more
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/7/29 Musachy Barroso <mu...@gmail.com>:
> did you update/build convention?
Yes, I updated it but when tried to install two tests are falling:
testActionPackages(org.apache.struts2.convention.PackageBasedActionConfigBuilderTest)
Time elapsed: 0.078 sec <<< ERROR!
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.run(PackageBasedActionConfigBuilderTest.java:318)
at org.apache.struts2.convention.PackageBasedActionConfigBuilderTest.testActionPackages(PackageBasedActionConfigBuilderTest.java:99)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 30 more
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Missing class
Posted by Musachy Barroso <mu...@gmail.com>.
did you update/build convention?
On Wed, Jul 29, 2009 at 9:53 AM, Lukasz
Lenart<lu...@googlemail.com> wrote:
> Hi,
>
> I build my custom Xwork distro and tried to use it with Struts
> 2.1.8-SNAPSHOT but I've got such exception from Convention plugin:
>
> java.lang.NoClassDefFoundError: org/objectweb/asm/xwork/ClassVisitor
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:343)
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:308)
> at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
> at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
> at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
>
> Any idea?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org