Your pom file uses RC11
What version are you *really* on?
Aslak
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>
Releases are immediately available in
https://oss.sonatype.org/content/repositories/releases
Add this to your pom:
<repositories>
<repository>
<id>sonatype.org</id>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
</repositories>
Aslak
This is what LocalizedXStreams looks like in 1.0.0.RC11:
https://github.com/cucumber/cucumber-jvm/blob/fdd4116c0adfd2782a0451ea3c66b0f68d3a99bd/core/src/main/java/cucumber/runtime/converters/LocalizedXStreams.java
As you can see the instantiation of DefaultConverterLookup happens on
line 29, not line 24 as it does in your stack trace.
This leads me to believe that you're not running 1.0.0.RC11 as you
think you do. You must be running an older version.
Further, you shouldn't be adding XStream to your pom - it's a
transitive dependency. The same goes for cucumber-java and
cucumber-core - they are transitive deps of cucumber-picocontainer and
cucumber-junit.
Aslak
Oops sorry - I always forgot to go to
https://oss.sonatype.org/index.html#stagingRepositories and manually
release.
> A clean build with RC6 and RC11 throws the same error.
>
Did you see my comment about line numbers? Something is not right
about what you have reported.
Please run again with RC12 and post your new trace.
Aslak
Please don't top post - it's very hard to have a discussion that way.
> Running cucumber.examples.java.login_Test
>
> java.lang.NoSuchMethodError:
> com.thoughtworks.xstream.core.DefaultConverterLookup: method <init>()V
> not found
> at
> cucumber.runtime.converters.LocalizedXStreams.newXStream(LocalizedXStreams.java:
> 24)
All I can tell you is that you're *not* running RC11 - the line
numbers don't match.
Well, please do. I'm not interested in bug reports against old versions.
> the command was "mvn clean
> test"...
> And I also already removed Xstream dependency...
>
Please get back with a full pom (with RC12) and the full trace of RC12
(not some unknown old version)
Aslak
Thanks
>>
>> All I can tell you is that you're *not* running RC11 - the line
>> numbers don't match.
>>
>> Well, please do. I'm not interested in bug reports against old versions.
>>
>> Please get back with a full pom (with RC12) and the full trace of RC12
>> (not some unknown old version)
>>
>
> I removed the whole maven library folder and downloaded it all
> again...
> The error is the same, the lines now are correct...
>
> mvn -PTEST clean test
> Running cucumber.examples.java.login_Test
>
> java.lang.NoSuchMethodError:
> com.thoughtworks.xstream.core.DefaultConverterLookup: method <init>()V
> not found
> at
> cucumber.runtime.converters.LocalizedXStreams.newXStream(LocalizedXStreams.java:
> 29)
That looks good.
The error means that LocalizedXStreams is trying to invoke the no-arg
constructor of DefaultConverterLookup. The DefaultConverterLookup
class has been loaded, but it doesn't have an empty constructor.
DefaultConverterLookup has had an empty constructor since XStream 1.3:
http://svn.codehaus.org/xstream/tags/XSTREAM_1_3/xstream/src/java/com/thoughtworks/xstream/core/DefaultConverterLookup.java
In XStream 1.2.2 and older DefaultConverterLookup *does not* have an
empty constructor.
My theory is therefore that you have somehow ended up with an old
version of XStream on your classpath.
Try to delete XStream from your local maven repo and build again. Pay
close attention to what versions of XStream maven is downloading.
What XStream versions are in your maven repo now?
Aslak
I asked Everton to delete all of his xstreams from the local maven
repo - build again and pay close attention to what xstream versions
are getting downloaded.
Perhaps you can help with that - Everton didn't get back to me.
Also - the output of `mvn dependency:tree` would be helpful. Please
use gist.github.com or pastie.org.
Aslak
Bump. What did you find out?
I found that jboss-seam and jboss-saem-ui had a dependency on xstream 1.1.I just had to add the ignores to the pom on the tests profile.
Now I'm struggling on starting the glassfish server for running tests...
Regards,Everton
>>> >> > cukes+unsubscribe@googlegroups.com.
>>> >> > For more options, visit this group at
>>> >> >http://groups.google.com/group/cukes?hl=en.
>>>
>>> >> --
>>> >> You received this message because you are subscribed to the Google Groups
>>> >> "Cukes" group.
>>> >> To post to this group, send email to cu...@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> For more options, visit this group at
>>> >>http://groups.google.com/group/cukes?hl=en.
>>>
>>> > --
>>> > Att,
>>> > Everton
>>>
>>> > --
>>> > You received this message because you are subscribed to the Google Groups
>>> > "Cukes" group.
>>> > To post to this group, send email to cu...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > For more options, visit this group at
>>> >http://groups.google.com/group/cukes?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Cukes" group.
>> To post to this group, send email to cu...@googlegroups.com.
>> To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>>
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com.
--Att,Everton
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/vUe5sR3_DCwJ.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
The application is Huge (200+ KLOCS), all build under glassfish 2 for development and jboss for production.I can't figure out how to start and stop glassfish using cucumber...
I think the problem can be generalised to starting and stopping glassfish from Java.Have you asked in the glassfish forum?