Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.4
-
None
-
Windows XP SP2, IBM JDK 1.5
Description
Spring samples throws exception while running with Ant as shown below.....
run:
[java] Starting the Sample SCA Calculator...
[java] Nov 20, 2008 12:39:28 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>
[java] INFO: Creating node: Calculator.composite
[java] Nov 20, 2008 12:39:34 PM org.apache.tuscany.sca.node.impl.NodeImpl configureNode
[java] INFO: Loading contribution: file:/C:/Tuscany/1.4/samples/spring-bigbank-calculator/target/sample-spring-bigbank-calculator.jar
[java] Nov 20, 2008 12:39:36 PM org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor
[java] SEVERE: ContributionResolveException occured due to:
[java] Exception in thread "main" org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.contribution.service
.ContributionResolveException: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: IO exception reading context file.
[java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:169)
[java] at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromClassLoader(NodeFactoryImpl.java:37)
[java] at bigbank.calculator.server.CalculatorServer.main(CalculatorServer.java:36)
[java] Caused by: org.apache.tuscany.sca.contribution.service.ContributionResolveException: org.apache.tuscany.sca.
contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: IO exception reading context file.
[java] at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:201)
[java] at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:53)
[java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:384)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
[java] at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementation(BaseAssemblyProcessor.java:325)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:1018)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProcessor.java:88)
[java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorExtensionPoint.java:384)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:194)
[java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(CompositeDocumentProcessor.java:57)
[java] at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
[java] at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:569)
[java] at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:396)
[java] at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:189)
[java] at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:494)
[java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:167)
[java] ... 2 more
[java] Caused by: org.apache.tuscany.sca.contribution.service.ContributionReadException: SpringXMLLoader getApplicationContextResource: IO exception reading context file.
[java] at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:579)
[java] at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.loadFromXML(SpringXMLComponentTypeLoader.java:133)
[java] at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load(SpringXMLComponentTypeLoader.java:104)
[java] at org.apache.tuscany.sca.implementation.spring.SpringImplementationProcessor.resolve(SpringImplementationProcessor.java:199)
[java] ... 18 more
[java] Caused by: java.util.zip.ZipException: Bad file descriptor file:\C:\Tuscany\1.4\samples\spring-bigbank-calculator\target\sample-spring-bigbank-calculator.jar!\META-INF\spring\CalculatorService-context.xml
[java] at java.util.zip.ZipFile.open(Native Method)
[java] at java.util.zip.ZipFile.<init>(ZipFile.java:238)
[java] at java.util.jar.JarFile.<init>(JarFile.java:168)
[java] at java.util.jar.JarFile.<init>(JarFile.java:133)
[java] at org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.getApplicationContextResource(SpringXMLComponentTypeLoader.java:557)
[java] ... 21 more
[java] Java Result: 1