Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] eclipselink PersistenceUnitLoadingEception in WAR file

I hope this is what your asking for:

Launching simpleServer (WebSphere Application Server 2014.5.0.0/wlp-1.0.3.20140516-2317) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_67-b01 (en_US)
[AUDIT   ] CWWKE0001I: The server simpleServer has been launched.
[AUDIT   ] CWWKF0031I: The server skipped loading feature com.ibm.websphere.appserver.javax.servlet-3.0 because equivalent functionality already exists.
[AUDIT   ] CWWKF0031I: The server skipped loading feature servlet-3.0 because equivalent functionality already exists.
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://localhost:9080/
[AUDIT   ] CWWKZ0001I: Application WebApiConsole started in 1.171 seconds.
[AUDIT   ] CWWKF0011I: The server simpleServer is ready to run a smarter planet.
[ERROR   ] SRVE0321E: The [websphere.jaxrs.filters.ProjectAccessFilter] filter did not load during start up.
SRVE0320E: The [websphere.jaxrs.filters.ProjectAccessFilter] filter was found, but a resource injection failure has occurred.
[ERROR   ] SRVE0321E: The [websphere.jaxrs.filters.AuthorizationFilter] filter did not load during start up.
SRVE0320E: The [websphere.jaxrs.filters.AuthorizationFilter] filter was found, but a resource injection failure has occurred.
[ERROR   ] SRVE0315E: An exception occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: SRVE0320E: The [websphere.jaxrs.filters.AuthorizationFilter] filter was found, but a resource injection failure has occurred.
at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:615)
at [internal classes]
Caused by: javax.servlet.ServletException: SRVE0320E: The [websphere.jaxrs.filters.AuthorizationFilter] filter was found, but a resource injection failure has occurred.
... 3 more
Caused by: com.ibm.wsspi.injectionengine.InjectionException: java.lang.reflect.InvocationTargetException
at com.ibm.ws.webcontainer.webapp.WebApp.validateAndRun(WebApp.java:860)
... 1 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.ibm.ws.webcontainer.webapp.WebApp.validateAndRun(WebApp.java:847)
... 1 more
Caused by (repeated) ... : Exception [EclipseLink-30009] (Eclipse Persistence Services - 2.5.2.v20140222-22988a5): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while trying to load persistence unit at url: jar:file:/C:/wlp/usr/servers/simpleServer/apps/WebApiConsole.war!/
Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 2.5.2.v20140222-22988a5): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: jar:file:/C:/wlp/usr/servers/simpleServer/apps/WebApiConsole.war!/
Internal Exception: java.net.MalformedURLException
... 12 more
Caused by: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:619)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:610)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:636)
... 10 more
Caused by: java.lang.NullPointerException
at java.net.URL.<init>(URL.java:524)
... 20 more

That is the whole console.log file.


On 14 August 2014 11:47, Rick Curtis <curtisr7@xxxxxxxxx> wrote:
I have been digging around the code and I don't see how we're getting a null InputStream... can I have you post the full exception stack that you're getting?

Thanks,
Rick


On Thu, Aug 14, 2014 at 10:41 AM, John Doe <012anonymousxyz@xxxxxxxxx> wrote:
Hello:

This is my first time submitting an issue so I apologize for not following conventions.

At Rick from StackOverflow's request, I am posting this problem I came across.

Please see: http://stackoverflow.com/questions/25289859/eclipselink-persistenceunitloadingeception-in-war-file/25310715#25310715

To summarize:
I have a project I built using the websphere eclipse plugin.
It works when I deploy it using the 'Run on Server' button which puts a .war.xml in the app folder that references the compiled classes and resources.

When I export the project to a WAR file and put in a .war file in the app folder manually, I get PersistenceLoadingException caused by MalformedURLException caused by NullPointerException.

Thank you.

Sincerely,

Anonymous

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



--
Rick Curtis

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top