geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: Getting class not found exception while running the jaxws-tools.bat
Date Fri, 21 Mar 2008 05:23:02 GMT
Well, there is no easy workaround. You could patch 2.1 by getting the
geronimo-jaxws-builder-*.jar from 2.1.1-SNAPSHOT. Another way to get
this running in 2.1 is to execute wsgen/wsimport via GShell but you
have to configure things a bit. Here's how to do it:

1) Edit etc/gsh-classworlds.conf and add the following line:

load ${gshell.home}/lib/geronimo-jaxws-builder-2.1.jar

2) Edit etc/layout.xml and add the following:

        <group>
            <name>jaxws</name>
            <nodes>
                <command>
                    <name>wsgen</name>
                    <id>geronimo-jaxws-builder:wsgen</id>
                </command>
                <command>
                    <name>wsimport</name>
                    <id>geronimo-jaxws-builder:wsimport</id>
                </command>
            </nodes>
        </group>

And then start gshell. You should be able to execute jaxws/wsgen or
jaxws/wsimport now.

Hope this helps,
Jarek

On Thu, Mar 20, 2008 at 5:26 PM, Ashish Jain <ashjain2@gmail.com> wrote:
> Hi Jarek,
> I found the JIRA GERONIMO-3831 associated with this issue but could not find
> a workaround. Is there a workaround available for this issue in AG 2.1?
>
> Thanks
> Ashish
>
> On Wed, Mar 19, 2008 at 11:32 PM, Jarek Gawor <jgawor@gmail.com> wrote:
>
> > Yes, this problem exists in 2.1 but it is already fixed in svn and
> > will be included in 2.1.1. You can use 2.1.1-SNAPSHOT if you want in
> > the meantime (http://geronimo.apache.org/maven/server/binaries/2.1/).
> >
> > Jarek
> >
> >
> >
> >
> > On Wed, Mar 19, 2008 at 10:22 AM, Ashish Jain <ashjain2@gmail.com> wrote:
> > > Hi,
> > > I am using the jaxws-tools.bat to create the required artifacts for
> jax-ws
> > > webservice.
> > > I ran the command jaxws-tools.bat wsgen on a command window and got the
> > > following error.
> > >
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org.apache.geronimo.c
> > >  ommon.DeploymentException
> > >         at java.lang.J9VMInternals.verifyImpl(Native Method)
> > >         at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
> > >         at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
> > >          at
> > > org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav
> > > a:71)
> > >         at
> > > org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja
> > > va:61)
> > >
> > > I could find this class at
> > >
> <GERONIMO_HOME>\repository\org\apache\geronimo\framework\geronimo-common\2.1.
> > >
> > > The previous version of geronimo on running the same command will give a
> > > help menu
> > >
> > > Usage: wsgen [options] <SEI>
> > >
> > > where [options] include:
> > >   -classpath <path>          specify where to find input class files
> > >    -cp <path>                 same as -classpath <path>
> > >   -d <directory>             specify where to place generated output
> files
> > >   -extension                 allow vendor extensions - functionality not
> > > specifi
> > >  ed
> > >                              by the specification.  Use of extensions
> may
> > >                              result in applications that are not
> portable or
> > >                              may not interoperate with other
> implementations
> > >    -help                      display help
> > >   -keep                      keep generated files
> > >   -r <directory>             resource destination directory, specify
> where
> > > to
> > >                              place resouce files such as WSDLs
> > >    -s <directory>             specify where to place generated source
> files
> > >   -verbose                   output messages about what the compiler is
> > > doing
> > >   -version                   print version information
> > >    -wsdl[:protocol]           generate a WSDL file.  The protocol is
> > > optional.
> > >                              Valid protocols are soap1.1 and Xsoap1.2,
> the
> > > defau
> > > lt
> > >                              is soap1.1.  Xsoap1.2 is not standard and
> can
> > > only
> > >  be
> > >                              used in conjunction with the -extension
> option
> > >   -servicename <name>        specify the Service name to use in the
> > > generated WS
> > > DL
> > >                              Used in conjunction with the -wsdl option.
> > >    -portname <name>           specify the Port name to use in the
> generated
> > > WSDL
> > >                              Used in conjunction with the -wsdl option.
> > >
> > > Examples:
> > >   wsgen -cp . example.Stock
> > >   wsgen -cp . example.Stock -wsdl -servicename
> {http://mynamespace}MyService
> > >
> > > Note: Previous version of geronimo had the class DeploymentException at
> > >
> <GERONIMO_HOME>\repository\org\apache\geronimo\modules\geronimo-common\2.0.1
> > >
> > > Thanks
> > > Ashish
> > >
> >
>
>

Mime
View raw message