I've notices the same error, wanted to look at it but didn't have
time, but I think it is related the CXF service which always start
like this

cxf                  n/a             -1



On Wed, Feb 20, 2008 at 11:28 PM, Jacek Laskowski
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>  Does anyone know what's going on? I've just checked out the sources
>  and the build failed with the following exception:
>
>  [INFO] 
> ----------------------------------------------------------------------------
>  [INFO] Building OpenEJB :: Examples :: Simple Webservice
>  [INFO]    task-segment: [clean, install]
>  [INFO] 
> ----------------------------------------------------------------------------
>  [INFO] [clean:clean]
>  [INFO] Deleting directory C:\oss\openejb3\examples\simple-webservice\target
>  [INFO] [resources:resources]
>  [INFO] Using default encoding to copy filtered resources.
>  [INFO] [compiler:compile]
>  [INFO] Compiling 2 source files to
>  C:\oss\openejb3\examples\simple-webservice\target\classes
>  [INFO] [resources:testResources]
>  [INFO] Using default encoding to copy filtered resources.
>  [INFO] [compiler:testCompile]
>  [INFO] Compiling 1 source file to
>  C:\oss\openejb3\examples\simple-webservice\target\test-classes
>  [INFO] [surefire:test]
>  [INFO] Surefire report directory:
>  C:\oss\openejb3\examples\simple-webservice\target\surefire-reports
>
>  -------------------------------------------------------
>   T E S T S
>  -------------------------------------------------------
>  Running org.superbiz.calculator.CalculatorTest
>  Apache OpenEJB 3.0-SNAPSHOT    build: 20080220-11:30
>  http://openejb.apache.org/
>  INFO - openejb.home = C:\oss\openejb3\examples\simple-webservice
>  INFO - openejb.base = C:\oss\openejb3\examples\simple-webservice
>  WARN - Cannot find the configuration file [conf/openejb.xml].  Will
>  attempt to create one for the beans deployed.
>  INFO - Configuring Service(id=Default Security Service,
>  type=SecurityService, provider-id=Default Security Service)
>  INFO - Configuring Service(id=Default Transaction Manager,
>  type=TransactionManager, provider-id=Default Transaction Manager)
>  INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory,
>  type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory)
>  INFO - Found EjbModule in classpath:
>  C:\oss\openejb3\examples\simple-webservice\target\classes
>  INFO - Configuring app:
>  C:\oss\openejb3\examples\simple-webservice\target\classes
>  ERROR - Unable to read wsdl file null
>  INFO - Configuring Service(id=Default Stateless Container,
>  type=Container, provider-id=Default Stateless Container)
>  INFO - Auto-creating a container for bean CalculatorImpl:
>  Container(type=STATELESS, id=Default Stateless Container)
>  INFO - Loaded Module: 
> C:\oss\openejb3\examples\simple-webservice\target\classes
>  INFO - Assembling app: 
> C:\oss\openejb3\examples\simple-webservice\target\classes
>  INFO - Created Ejb(deployment-id=CalculatorImpl,
>  ejb-name=CalculatorImpl, container=Default Stateless Container)
>  INFO - Deployed
>  Application(path=C:\oss\openejb3\examples\simple-webservice\target\classes)
>  INFO - OpenEJB ready.
>  OpenEJB ready.
>   ** Starting Services **
>   NAME                 IP              PORT
>   httpejbd             127.0.0.1       4204
>   ejbd                 127.0.0.1       4201
>  2008-02-20 11:37:52
>  org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>  buildServiceFromClass
>  INFO: Creating Service {http://superbiz.org/wsdl}CalculatorWsService
>  from class org.superbiz.calculator.CalculatorWs
>  2008-02-20 11:37:52
>  org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>  buildServiceFromClass
>  INFO: {http://superbiz.org/wsdl}arg0 part element name
>  {http://superbiz.org/wsdl}arg0 references element
>  {http://superbiz.org/wsdl}arg0
>  {http://superbiz.org/wsdl}arg1 part element name
>  {http://superbiz.org/wsdl}arg1 references element
>  {http://superbiz.org/wsdl}arg1
>  {http://superbiz.org/wsdl}return part element name
>  {http://superbiz.org/wsdl}return references element
>  {http://superbiz.org/wsdl}return
>  {http://superbiz.org/wsdl}arg0 part element name
>  {http://superbiz.org/wsdl}arg0 references element
>  {http://superbiz.org/wsdl}arg0
>  {http://superbiz.org/wsdl}arg1 part element name
>  {http://superbiz.org/wsdl}arg1 references element
>  {http://superbiz.org/wsdl}arg1
>  {http://superbiz.org/wsdl}return part element name
>  {http://superbiz.org/wsdl}return references element
>  {http://superbiz.org/wsdl}return
>
>  2008-02-20 11:37:52 org.apache.cxf.endpoint.ServerImpl initDestination
>  INFO: Setting the server's publish address to be http://nopath:80
>  ERROR - Error deploying CXF webservice for ejb CalculatorImpl
>  java.util.NoSuchElementException
>         at java.util.AbstractList$Itr.next(AbstractList.java:427)
>         at 
> org.apache.openejb.server.webservices.WsService.selectSingleAddress(WsService.java:381)
>         at 
> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:244)
>         at 
> org.apache.openejb.server.webservices.WsService.start(WsService.java:167)
>         at 
> org.apache.openejb.server.ServiceManager.start(ServiceManager.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.openejb.client.LocalInitialContextFactory.bootServerServices(LocalInitialContextFactory.java:85)
>         at 
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:64)
>         at 
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
>         at 
> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
>         at 
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
>         at 
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
>         at javax.naming.InitialContext.init(InitialContext.java:223)
>         at javax.naming.InitialContext.<init>(InitialContext.java:197)
>         at 
> org.superbiz.calculator.CalculatorTest.setUp(CalculatorTest.java:37)
>         at junit.framework.TestCase.runBare(TestCase.java:128)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:228)
>         at junit.framework.TestSuite.run(TestSuite.java:223)
>         at 
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>         at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>         at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>         at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>         at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>   cxf                  n/a             -1
>   admin thread         127.0.0.1       4200
>  -------
>  Ready!
>  ERROR
>  ERROR
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.172
>  sec <<< FAILURE!
>
>  Results :
>
>  Tests in error:
>   testCalculatorViaWsInterface(org.superbiz.calculator.CalculatorTest)
>
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
>  [INFO] 
> ------------------------------------------------------------------------
>  [ERROR] BUILD FAILURE
>  [INFO] 
> ------------------------------------------------------------------------
>  [INFO] There are test failures.
>
>  Please refer to
>  C:\oss\openejb3\examples\simple-webservice\target\surefire-reports for
>  the individual test results.
>
>  [EMAIL PROTECTED] /cygdrive/c/oss/openejb3
>  $ cat 
> examples/simple-webservice/target/surefire-reports/org.superbiz.calculator.CalculatorTest.txt
>  
> -------------------------------------------------------------------------------
>  Test set: org.superbiz.calculator.CalculatorTest
>  
> -------------------------------------------------------------------------------
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.172
>  sec <<< FAILURE!
>  testCalculatorViaWsInterface(org.superbiz.calculator.CalculatorTest)
>  Time elapsed: 2.063 sec  <<< ERROR!
>  javax.xml.ws.WebServiceException:
>  org.apache.cxf.service.factory.ServiceConstructionException: Failed to
>  create service.
>         at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:129)
>         at 
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
>         at javax.xml.ws.Service.<init>(Service.java:36)
>         at javax.xml.ws.Service.create(Service.java:88)
>         at 
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterface(CalculatorTest.java:48)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:228)
>         at junit.framework.TestSuite.run(TestSuite.java:223)
>         at 
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>         at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>         at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>         at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>         at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>  Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>  Failed to create service.
>         at 
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:83)
>         at 
> org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:135)
>         at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
>         ... 27 more
>  Caused by: javax.wsdl.WSDLException: WSDLException:
>  faultCode=PARSER_ERROR: Problem parsing
>  'http://localhost:4204/CalculatorImpl?wsdl'.: java.io.IOException:
>  Server returned HTTP respo
>  nse code: 500 for URL: http://localhost:4204/CalculatorImpl?wsdl
>         at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:199)
>         at 
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
>         at 
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:81)
>         ... 29 more
>  Caused by: java.io.IOException: Server returned HTTP response code:
>  500 for URL: http://localhost:4204/CalculatorImpl?wsdl
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>         at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>         at 
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
>         at 
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
>         ... 35 more
>
>  Jacek
>
>  --
>  Jacek Laskowski
>  http://www.JacekLaskowski.pl
>



-- 
Thanks
- Mohammad Nour

Reply via email to