Forum Discussion

abanda's avatar
abanda
Occasional Contributor
16 years ago

deploy as a war in weblogic

Hi, I deployed the war file of the mock responses from soap ui to weblogic 9.2.

when i try to access the mockresponses it is giving me this exception

Error 500--Internal Server Error
java.lang.NullPointerException
at com.eviware.soapui.mockaswar.MockAsWarServlet.service(MockAsWarServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181


please let me know if am missing anything

18 Replies

  • frf's avatar
    frf
    New Contributor
    Do you have a solution for this issue?
    I tried to deploy war from 3.5 and 3.6 beta 1 on WebLogic 11g, and I got

    Error 500--Internal Server Error

    java.lang.NullPointerException
    at java.io.File.(File.java:222)
    at com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.dispatchRequest(MockAsWarServlet.java:242)
    at com.eviware.soapui.mockaswar.MockAsWarServlet.service(MockAsWarServlet.java:169)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Thanks.
  • abanda's avatar
    abanda
    Occasional Contributor
    No,still there is no solution for this issue. If anybody find the solution please post.
  • seebro's avatar
    seebro
    New Contributor
    I'm seeing the same issue with the final 3.6 release. Stack trace as follows. Any ideas?

    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.dispatchRequest(MockAsWarServlet.java:246)
    at com.eviware.soapui.mockaswar.MockAsWarServlet.service(MockAsWarServlet.java:171)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
  • Siernan's avatar
    Siernan
    New Contributor
    I'm having the same problem. Has anyone an idea how to solve this?
  • Hi!

    should be fixed in the upcoming nightly build, please give that a go and let us know!

    regards,

    /Ole
    eviware.com
  • Hi. I'm having problems with the deployment on weblogic as well.

    Creating a war file with soapui-pro-3.6.1-windows-bin gives the following stacktrace:

    ####<02.feb.2011 kl 13.33 CET> <Error> <HTTP> <aloha.test> <Foo_Admin_Server> <weblogic.kernel.Default (self-tuning) 1> <<WLS Kernel>> <> <> <1296649996993> <BEA-101020> <[ServletContext@341365834[app:dwh-mock-target module:dwh-mock-target.war path:/dwh-mock-target spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.dispatchRequest(MockAsWarServlet.java:246)
    at com.eviware.soapui.mockaswar.MockAsWarServlet.service(MockAsWarServlet.java:171)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


    Trying the latest soapui-pro-3.6.2-SNAPSHOT-windows-bin release it no longer throws an exception, the page shows up when visiting the main page, but all it says is just:

    soapUI MockServices Log for project [null]

    WSDLs:


    So it seems that the project was not loaded. A tomcat6 deployment of the same war file gives the expected result:
    soapUI MockServices Log for project [dwh]

    WSDLs: [AgreementServiceSoapBinding MockService]



    I can't find much more info in the weblogic logs than the following lines (admin.stdout log);


    <02.feb.2011 kl 14.12 CET> <Info> <Deployer> <BEA-149074> <Successfully completed deployment task: [Deployer:149026]start application dwh-mock-target on foo_Admin_Server.>
    14:13:30,241 WARN [SoapUI] Missing folder [/opt/spt/weblogic/foo_domain/./ext] for external libraries
    14:13:30,265 INFO [DefaultSoapUICore] Creating new settings at [/home/foo-i/soapui-settings.xml]
    14:13:30,668 WARN [SoapUI] Missing folder [/opt/spt/weblogic/foo_domain/./ext] for external libraries
    14:13:30,668 INFO [DefaultSoapUICore] Creating new settings at [/home/foo-i/soapui-settings.xml]


    The server does not have access to create new files in the home directory, was hoping that the war file would be self-contained. Is this the reason its not loading the project file?

    thanks for any help.
  • gutomore's avatar
    gutomore
    New Contributor
    Hi There,
    Is there anything new on this thread?
    I'm still having issues even with the soapUI 3.6.2-SNAPSHOT
    As I missed the weblogic.xml on the WAR file, I inserted it, but nothing happens.
    if I point to localhost:7001/mymock -> the error is 403 - access forbiden
    if I point to localhost:7001/mymock/SampleServiceSoapBinding -> the error is 404 -> not found

    Within Tomcat, everything goes fine.

    Is there anything else that I need to do to deploy a mock for Weblogic?
    Any special tricks after the 'Deploy as WAR' ? What about on the Weblogic side? any special config to do?
    Please advise, this is sort of urgent...
    Cheers
  • I have the same issue when deploying the war to Weblogic 11g. Is this issue fixed?