[wildfly-dev] Swarm "Could not find or load main class"

Ken Finnigan ken at kenfinnigan.me
Wed May 6 08:51:32 EDT 2015


Can you upload the generated jar somewhere?

Then I could take a closer look

Thanks
Ken

On Wed, May 6, 2015 at 8:45 AM, Markus Eisele <myfear at web.de> wrote:

> Hi,
>
> The output doesn't contain a single org.jboss class being loaded. Also it
> does not contain the jar itself.
> So,  technically speaking this can't work. But why? The command isn't
> exactly complicated.
>
> Any further ideas?
> Thanks,
> Markus
>
> > On May 6, 2015 2:12 PM, "Jaikiran Pai" <jai.forums2013 at gmail.com> wrote:
> >>
> >> A quick debugging option is to try:
> >>
> >> java -verbose:class -jar swarm-sample-1.0-SNAPSHOT-swarm.jar
> >>
> >> That will dump out some information of where the classes are being
> loaded from. It might give a hint on what's going on. You might want to
> redirect the output to a file since with that -verbose:class option, the
> output can potentially be huge.
> >>
> >> -Jaikiran
> >> On Wednesday 06 May 2015 04:22 PM, Markus Eisele wrote:
> >>>
> >>> It is around 30 Meg and does contain the class. Indeed.
> >>> I have a pretty straight forward JDK setup and tried to run with both
> 1.7.0_65 and 1.8.0_20.
> >>> Only difference is that I run on Windows?
> >>> Is the maven version an issue? I'm running 3.3.3?
> >>>
> >>>
> >>> Anything I can do to provide more debug information?
> >>>
> >>> Cheers,
> >>>
> >>> Markus
> >>>
> >>>
> >>> On May 6, 2015 12:40 PM, "Ken Finnigan" <ken at kenfinnigan.me> wrote:
> >>>>
> >>>> Hi Markus,
> >>>>
> >>>> That's weird, as I was able to clone your repo, build it, and run it
> without any problems.
> >>>>
> >>>> Is your fat jar around 30.1Mb in size? Does
> org.wildfly.swarm.bootstrap.Main exist in that jar?
> >>>>
> >>>> Thanks
> >>>> Ken
> >>>>
> >>>>
> >>>> On Wed, May 6, 2015 at 6:17 AM, Markus Eisele <myfear at web.de> wrote:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> I've been playing around with swarm today and here is the source:
> >>>>> https://github.com/myfear/WildFlySwarmDemo
> >>>>>
> >>>>> Very simple project. JAX-RS and nothing else.
> >>>>>
> >>>>> mvn package produces the jar. Execution results in:
> >>>>>
> >>>>> java -jar swarm-sample-1.0-SNAPSHOT-swarm.jar
> >>>>> Error: Could not find or load main class
> org.wildfly.swarm.bootstrap.Main
> >>>>>
> >>>>> Any help appreciated!
> >>>>>
> >>>>> Thanks,
> >>>>> M
> >>>>>
> >>>>> ____________
> >>>>> @myfear
> >>>>> http://blog.eisele.net
> >>>>> _______________________________________________
> >>>>> wildfly-dev mailing list
> >>>>> wildfly-dev at lists.jboss.org
> >>>>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
> >>>>
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> wildfly-dev mailing list
> >>> wildfly-dev at lists.jboss.org
> >>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
> >>
> >>
> >>
> >> _______________________________________________
> >> wildfly-dev mailing list
> >> wildfly-dev at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20150506/1174e33b/attachment-0001.html 


More information about the wildfly-dev mailing list