I had some typo in the fully qualified class name. Please ignore this...

Regards,
Rabi Mishra, 
http://rabisblog.blogspot.com/
c++; /* this makes c bigger but returns the old value */ 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 5:47 PM
To: [email protected]
Subject: JBI Maven Plugin Exception : Unable to generate service unit
descriptor! (ClassNotFoundException)


Hi All,

I am getting the following error while packing the jsr181 service unit.
My jsr181 xbean configuration is as follows. I can find the class in
./target/classes.

Is this some bug or there is something wrong in what I am doing?

------------------------------------------------------------------------
---------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed
with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version
2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<beans
xmlns:orchestration-jsr181="http://servicemix.apache.org/samples/orchest
ration-jsr181"
       xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:localtime="http://ripedev.com/xsd/ZipCodeResults.xsd";
       xmlns:uszip="http://www.webserviceX.NET";>
       

   
   <jsr181:endpoint  pojo="#mypojo"
wsdlResource="classpath:service.wsdl" 
                     typeMapping="jaxb2"
                     annotations="jsr181"
                     style="document"/>
   
        <bean id="mypojo"
        
class="org.apache.servicemix.samples.orchestration-jsr181.CityTimeImpl">
                <property name="usZip">
                      <jsr181:proxy context="#context" 
                                    type="net.webservicex.USZipSoap"
                                    service="uszip:USZip" />
                    </property>
                    <property name="localTime">
                      <jsr181:proxy context="#context" 
        
type="com.ripedev.xsd.zipcoderesults.LocalTimeSoap"
                                    service="localtime:LocalTime" />
                    </property>

        </bean>
</beans>


Error Log.
 
------------------------------------------------------------------------
--------------------------------------


[INFO] Building An example JSR-181 Service Unit
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
-
---
Downloading:
http://people.apache.org/repo/m2-incubating-repository/woodstox/wst
x-asl/3.0.1/wstx-asl-3.0.1.pom
[WARNING] Unable to get resource from repository apache.incubating
(http://peopl
e.apache.org/repo/m2-incubating-repository)
Downloading:
http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.
1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://people.apache.org/repo/m2-incubating-repository/xfire/saaj-i
mpl/1.3/saaj-impl-1.3.pom
[WARNING] Unable to get resource from repository apache.incubating
(http://peopl
e.apache.org/repo/m2-incubating-repository)
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom

[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[WARNING]
        Artifact ant:ant:jar:1.6.5:runtime retains local scope 'runtime'
overrid
ing broader scope 'compile'
        given by a dependency. If this is not intended, modify or remove
the loc al scope.

[INFO] [antrun:run {execution: default}] [INFO] Executing tasks Jun 26,
2007 5:35:00 PM org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
file:/E:/apps/apache-servicemix-3.1-incubating
/examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/r
esources
/service.wsdl with a base URI of
file:/E:/apps/apache-servicemix-3.1-incubating/
examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/re
sources/
service.wsdl
Jun 26, 2007 5:35:01 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator g enerate
INFO: Creating class
org.apache.servicemix.samples.orchestration_jsr181.CityTime
PortType
org\apache\servicemix\samples\orchestration_jsr181\CityTimePortType.java
org\apache\servicemix\samples\orchestration_jsr181\CityTimeService.java
org\apache\servicemix\samples\orchestration_jsr181\GetCityTimeRequest.ja
va
org\apache\servicemix\samples\orchestration_jsr181\GetCityTimeResponse.j
ava
org\apache\servicemix\samples\orchestration_jsr181\ObjectFactory.java
org\apache\servicemix\samples\orchestration_jsr181\package-info.java
Jun 26, 2007 5:35:01 PM org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
file:/E:/apps/apache-servicemix-3.1-incubating
/examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/r
esources
/LocalTime.wsdl with a base URI of
file:/E:/apps/apache-servicemix-3.1-incubatin
g/examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/
resource
s/LocalTime.wsdl
Jun 26, 2007 5:35:01 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator g enerate
INFO: Creating class com.ripedev.xsd.zipcoderesults.LocalTimeSoap
com\ripedev\xsd\zipcoderesults\LocalTimeByZipCode.java
com\ripedev\xsd\zipcoderesults\LocalTimeByZipCodeResponse.java
com\ripedev\xsd\zipcoderesults\LocalTimeService.java
com\ripedev\xsd\zipcoderesults\LocalTimeSoap.java
com\ripedev\xsd\zipcoderesults\ObjectFactory.java
com\ripedev\xsd\zipcoderesults\package-info.java
Jun 26, 2007 5:35:01 PM org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
file:/E:/apps/apache-servicemix-3.1-incubating
/examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/r
esources
/uszip.wsdl with a base URI of
file:/E:/apps/apache-servicemix-3.1-incubating/ex
amples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/main/reso
urces/us
zip.wsdl
Jun 26, 2007 5:35:01 PM
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator g enerate
INFO: Creating class net.webservicex.USZipSoap
net\webservicex\GetInfoByAreaCode.java
net\webservicex\GetInfoByAreaCodeResponse.java
net\webservicex\GetInfoByCity.java
net\webservicex\GetInfoByCityResponse.java
net\webservicex\GetInfoByState.java
net\webservicex\GetInfoByStateResponse.java
net\webservicex\GetInfoByZIP.java
net\webservicex\GetInfoByZIPResponse.java
net\webservicex\ObjectFactory.java
net\webservicex\USZipService.java
net\webservicex\USZipSoap.java
net\webservicex\package-info.java
[INFO] Executed tasks
[INFO] Registering compile source root
E:\apps\apache-servicemix-3.1-incubating\
examples\orchestration-jsr181\orchestration-jsr181-jsr181-su\src\main\ja
va
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 25 source files to
E:\apps\apache-servicemix-3.1-incubating\examples\o
rchestration-jsr181\orchestration-jsr181-jsr181-su\target\classes
[INFO] [jbi:generate-jbi-service-unit-descriptor]
[INFO] Generating jbi.xml
[INFO] Created Service Unit Analyzer
org.apache.servicemix.jsr181.packaging.Jsr1
[EMAIL PROTECTED]
2007-06-26 17:35:03,046 [main           ] INFO
XBeanXmlBeanDefinitionReader   -
 Loading XML bean definitions from URL
[file:/E:/apps/apache-servicemix-3.1-incu
bating/examples/orchestration-jsr181/orchestration-jsr181-jsr181-su/src/
main/res
ources/xbean.xml]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to generate jbi.xml

Embedded error: Unable to generate service unit descriptor!
org.apache.servicemix.samples.orchestration-jsr181.CityTimeImpl
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
generate jbi.x ml
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
generate jb i.xml
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorM
ojo.execute(GenerateServiceUnitDescriptorMojo.java:131)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        ... 16 more
Caused by: org.apache.servicemix.maven.plugin.jbi.JbiPluginException:
Unable to
generate service unit descriptor!
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorM
ojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:187)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorM
ojo.execute(GenerateServiceUnitDescriptorMojo.java:129)
        ... 18 more
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException: Faile d
to load type:
org.apache.servicemix.samples.orchestration-jsr181.CityTimeImpl.
 Reason: java.lang.ClassNotFoundException:
org.apache.servicemix.samples.orchest
ration-jsr181.CityTimeImpl; nested exception is
java.lang.ClassNotFoundException
: org.apache.servicemix.samples.orchestration-jsr181.CityTimeImpl
        at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBea
nQNameHelper.java:75)
        at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceA
warePropertyValues(XBeanQNameHelper.java:54)
        at
org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate
.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:63)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:421)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:390)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:164)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
        at
org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.
parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:63)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:88
)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:499)
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.regis
terBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:407)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:357)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:334)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:168)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loa
dBeanDefinitions(AbstractXmlApplicationContext.java:113)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadB
eanDefinitions(FileSystemXmlApplicationContext.java:168)
        at
org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:292)
        at
org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.i
nit(AbstractXBeanServiceUnitAnalyzer.java:89)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorM
ojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:166)
        ... 19 more
Caused by: java.lang.ClassNotFoundException:
org.apache.servicemix.samples.orche
stration-jsr181.CityTimeImpl
        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:306)
        at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:274)
        at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass(XBeanQ
NameHelper.java:107)
        at
org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBea
nQNameHelper.java:72)
        ... 41 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 24 seconds
[INFO] Finished at: Tue Jun 26 17:35:03 IST 2007 [INFO] Final Memory:
16M/30M [INFO]
------------------------------------------------------------------------

Regards,
Rabi Mishra,
http://rabisblog.blogspot.com/
c++; /* this makes c bigger but returns the old value */


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
 
www.wipro.com


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to