cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot parse persistent.xml storage.xml... null pointer exception

Former Member
0 Kudos

hi,

i have an EAR with a WAR and an EJB jar. i only have session beans. no entity beans. my EJB jar does not have a persistent.xml or storage.xml. i build my EAR using ant and deploy using visual administrator (thanks to Vladimir Pavlov). i get this huge stack that says

"com.sap.engine.deploy.exceptions.BaseIOException: Cannot parse persistent.xml or storage.xml for JAR F:\usr\sap\J2E\JC00\j2ee\admin\.\temp\deploying\deploy_temp\reader1115328611113\tap-ejb.jar.

Reason: java.lang.NullPointerException."

i get this only when i have <security-permission> in the ejb-j2ee-engine.xml. does this tag need one of these files. the application deploys just fine if i dont have the <security-permission>. i need to map the users to the roles in the application for EJBs.

can someone please tell me what is happening here.

thanks

- RD

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Employee
Employee
0 Kudos

Hi RD,

I guess this is kind of a strange behavior with the Deploy Tool and Visual Admin tool, you could report an OSS message for that. But you definitely don't need persistent.xml or storage.xml in this case. These descriptors are only for the O/R mapping of CMP entity beans in Web AS Java 6.40 and 6.20, respectively.

Hope this clarifies your issues!

Vladimir

Former Member
0 Kudos

It is not only with Deploy tool and visual admin tool. i tried the console too. gave me an error saying "cannot parse ejb-j2ee-engine.xml". it did not mention the persistent.xml or storage.xml though.

i checked the validity of the xml with the dtd using altova xml spy. it passed.

can you please tell me how I report an OSS message?

thanks

- RD

Vlado
Employee
Employee
0 Kudos

Hi RD,

If you're an SAP customer, you can report an OSS message to SAP support. See http://service.sap.com/message.

Best regards,

Vladimir