CWWJP0024E: The /C:/Program Files/IBM/WebSphere/AppServer7/profiles/
AppSrv01/installedApps/alphacsp-drorbNode03Cell/xxx.ear/xxx.jar!/ Java
archive (JAR) file specification for the {2} persistence unit is
incorrect.
The cause for this message can be found in the FFDC logs:
java.net.MalformedURLException: no protocol: /C:/Program Files/IBM/
WebSphere/AppServer7/profiles/AppSrv01/installedApps/alphacsp-
drorbNode03Cell/xxx.ear/xxx.jar!/
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.ibm.ws.jpa.management.JPAPUnitInfo.setJarFileUrls
(JPAPUnitInfo.java:913)
at com.ibm.ws.jpa.management.JPAPxmlInfo.extractPersistenceUnits
(JPAPxmlInfo.java:280)
at com.ibm.ws.jpa.management.JPAScopeInfo.processPersistenceUnit
(JPAScopeInfo.java:140)
at com.ibm.ws.jpa.management.JPAApplInfo.processModulePUs
(JPAApplInfo.java:169)
at com.ibm.ws.jpa.management.JPAComponentImpl.startingDeployedModule
(JPAComponentImpl.java:878)
at com.ibm.ws.jpa.management.JPAComponentImpl.stateChanged
(JPAComponentImpl.java:722)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged
(ApplicationMgrImpl.java:1096)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent
(DeployedApplicationImpl.java:1296)
at com.ibm.ws.runtime.component.DeployedModuleImpl.setState
(DeployedModuleImpl.java:213)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start
(DeployedModuleImpl.java:608)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start
(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
(ApplicationMgrImpl.java:2068)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start
(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start
(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start
(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300
(CompositionUnitMgrImpl.java:108)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl
$CUInitializer.run(CompositionUnitMgrImpl.java:935)
at com.ibm.wsspi.runtime.component.WsComponentImpl
$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
It seems that Websphere generates the full path for the jar which
cause the MalformedURLException.
I've tried all kind of ways for defining the jar path in the 'jar-
file' property, including:
file:jarWithEntities.jar
file:/jarWithEntities.jar
jar:file:jarWithEntities.jar
jar:file:/jarWithEntities.jar
I should mention that the same application works well with Weblogic 10
and JBoss 5.