axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (AXIS2-5912) Axis2 upgrade resulted in "The service cannot be found for the endpoint reference"
Date Mon, 02 Apr 2018 17:23:00 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422808#comment-16422808
] 

robert lazarski edited comment on AXIS2-5912 at 4/2/18 5:22 PM:
----------------------------------------------------------------

Best I can tell from the logs, there is a problem in your Web Logic config that is preventing
ServletConfig.getServletContext().getRealPath("/") from working.

See if this helps you:

{{{color:#303336}<?{color}{color:#303336}xml version{color}{color:#303336}={color}{color:#7d2727}'1.0'{color}{color:#303336}
encoding{color}{color:#303336}={color}{color:#7d2727}'UTF-8'{color}{color:#303336}?>{color}
{color:#7d2727}<weblogic-web-app>{color} {color:#7d2727}<container-descriptor>{color}
{color:#7d2727}<show-archived-real-path-enabled>{color}{color:#303336}true{color}{color:#7d2727}</show-archived-real-path-enabled>{color}
{color:#7d2727}</container-descriptor>{color} {color:#7d2727}</weblogic-web-app>{color}}}

The axis2 class WarBasedAxisConfigurator in my local config shows the "loaded services from
webapp" message from the code below. That isn't happening on your side. The next condition
in the code is occurring according to your logs, "loaded services from /WEB-INF/ folder (URL)"
.

You want this first condition to occur, but the next condition is occurring. If you still
have problems, the code and logging does seem to indicate a path such as WEB-INF/myaar.aar
may work.

WarBasedAxisConfigurator:

<code>

 

            if (config.getServletContext().getRealPath("") != null ||
                     config.getServletContext().getRealPath("/") != null)

{                 super.loadServices();                 log.debug("loaded
services from webapp");                 return;             }

            URL url = config.getServletContext().getResource("/WEB-INF/");
             if (url != null)

{                 loadServicesFromUrl(url);                
log.debug("loaded services from /WEB-INF/ folder (URL)");             }

 </code>

 

 


was (Author: robertlazarski):
Best I can tell from the logs, there is a problem in your Web Logic config that is preventing
ServletConfig.getServletContext().getRealPath("/") from working.

See if this helps you:

{{{color:#303336}<?{color}{color:#303336}xml version{color}{color:#303336}={color}{color:#7d2727}'1.0'{color}{color:#303336}
encoding{color}{color:#303336}={color}{color:#7d2727}'UTF-8'{color}{color:#303336}?>{color}
{color:#7d2727}<weblogic-web-app>{color} {color:#7d2727}<container-descriptor>{color}
{color:#7d2727}<show-archived-real-path-enabled>{color}{color:#303336}true{color}{color:#7d2727}</show-archived-real-path-enabled>{color}
{color:#7d2727}</container-descriptor>{color} {color:#7d2727}</weblogic-web-app>{color}}}

The axis2 class WarBasedAxisConfigurator in my local config shows the "loaded services from
webapp" message from the code below. That isn't happening on your side. The next condition
in the code is occurring according to your logs, "loaded services from /WEB-INF/ folder (URL)"
. 

You want this first condition to occur, but the next condition is occurring. If you still
have problems, the code and logging does seem to indicate a path such as WEB-INF/myaar.aar
may work.

WarBasedAxisConfigurator:

            if (config.getServletContext().getRealPath("") != null ||
                    config.getServletContext().getRealPath("/") != null)
{
                super.loadServices();
                log.debug("loaded services from webapp");
                return;
            }

            URL url = config.getServletContext().getResource("/WEB-INF/");
            if (url != null) {
                loadServicesFromUrl(url);
                log.debug("loaded services from /WEB-INF/ folder (URL)");
            }

 

 

 

> Axis2 upgrade resulted in "The service cannot be found for the endpoint reference"
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5912
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5912
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.5
>            Reporter: Anoobkumar
>            Priority: Major
>         Attachments: Axis2_16_MM_UWAlertsAppLog.log, Axis2_17_MM_UWAlertsAppLog.log,
image-2018-03-30-13-06-33-443.png
>
>
> I am upgarding my project from Axis2 1.6.2 to 1.7.5 version. While hitting the end point
in my local server(webLogic), I am getting the below error. Could you please help?
> The code is working fine with Axis2 1.6.2.
>  
>  
> 2018-03-28 15:18:09,076 [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default
(self-tuning)'] ERROR org.apache.axis2.engine.AxisEngine - The service cannot be found for
the endpoint reference (EPR) http://localhost:7001/BI_MRQTRules/services/BI_MRQTRules.BI_MRQTRulesPort/
> org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR)
http://localhost:7001/BI_MRQTRules/services/BI_MRQTRules.BI_MRQTRulesPort/
>  at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:79)
>  at org.apache.axis2.engine.Phase.invoke(Phase.java:324)
>  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
>  at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
>  at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:163)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)
>  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
>  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
>  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)
>  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:247)
>  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3650)
>  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)
>  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
>  at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
>  at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
>  at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
>  at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2423)
>  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2280)
>  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)
>  at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)
>  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1586)
>  at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)
>  at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
>  at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
>  at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
>  at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
>  at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
>  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
>  at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message