You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by albert kao <al...@gmail.com> on 2019/10/19 15:12:28 UTC

java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

I am learning axis2 by doing the "samples/java_first_jaxws".

$ cd $AXIS2_HOME/samples/java_first_jaxws
$ mvn package

java_first_jaxws-1.7.9.war was built successfully.

$ cp
~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
$JBOSS_HOME/standalone/deployments

wildfly server.log had this error:
2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
(ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
'/java_first_jaxws-1.7.9' for server 'default-server'
2019-10-19 10:38:43,024 ERROR
[org.jboss.as.controller.management-operation] (Controller Boot Thread)
WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
"jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
services" =>
{"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
"javax.servlet.ServletException: javax.servlet.ServletException:
org.apache.axis2.deployment.DeploymentException:
org.apache.axis2.transport.local.LocalTransportSender from [Module
\"deployment.jaxws-samples.war\" from Service Module Loader]
    Caused by: javax.servlet.ServletException:
javax.servlet.ServletException:
org.apache.axis2.deployment.DeploymentException:
org.apache.axis2.transport.local.LocalTransportSender from [Module
\"deployment.jaxws-samples.war\" from Service Module Loader]
    Caused by: javax.servlet.ServletException:
org.apache.axis2.deployment.DeploymentException:
org.apache.axis2.transport.local.LocalTransportSender from [Module
\"deployment.jaxws-samples.war\" from Service Module Loader]
    Caused by: org.apache.axis2.deployment.DeploymentException:
org.apache.axis2.transport.local.LocalTransportSender from [Module
\"deployment.jaxws-samples.war\" from Service Module Loader]
    Caused by: java.lang.ClassNotFoundException:
org.apache.axis2.transport.local.LocalTransportSender from [Module
\"deployment.jaxws-samples.war\" from Service Module Loader]"}}



I completed the Axis2 Quick Start Guide successfully so my configurations
are correct.

My configurations are:
axis2-1.7.9 Binary distribution.
axis2.war is built
Apache Ant(TM) version 1.10.1
wildfly-15.0.1.Final
Apache Maven 3.6.0
Java version: 1.8.0_202
linux mint 18.3
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
"unix"

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by albert kao <al...@gmail.com>.
Yes.
ls -l WEB-INF/lib/axis2-transport-local-1.7.9.jar
-rw-r--r-- 1 akao akao 17433 Nov 16  2018
WEB-INF/lib/axis2-transport-local-1.7.9.jar

On Sun, Oct 20, 2019 at 7:20 PM robertlazarski . <ro...@gmail.com>
wrote:

> Looks like your problem is on the LocalTransportSender class, do you have
> the axis2-transport-local-1.7.9.jar in the expanded war dir
> axis2.war/WEB-INF/lib ?
>
> Regards,
> Robert
>
> On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:
>
>> I am learning axis2 by doing the "samples/java_first_jaxws".
>>
>> $ cd $AXIS2_HOME/samples/java_first_jaxws
>> $ mvn package
>>
>> java_first_jaxws-1.7.9.war was built successfully.
>>
>> $ cp
>> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
>> $JBOSS_HOME/standalone/deployments
>>
>> wildfly server.log had this error:
>> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
>> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
>> '/java_first_jaxws-1.7.9' for server 'default-server'
>> 2019-10-19 10:38:43,024 ERROR
>> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
>> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
>> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
>> services" =>
>> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
>> "javax.servlet.ServletException: javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: javax.servlet.ServletException:
>> javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: java.lang.ClassNotFoundException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>>
>>
>>
>> I completed the Axis2 Quick Start Guide successfully so my configurations
>> are correct.
>>
>> My configurations are:
>> axis2-1.7.9 Binary distribution.
>> axis2.war is built
>> Apache Ant(TM) version 1.10.1
>> wildfly-15.0.1.Final
>> Apache Maven 3.6.0
>> Java version: 1.8.0_202
>> linux mint 18.3
>> Default locale: en_CA, platform encoding: UTF-8
>> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
>> "unix"
>>
>>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by "robertlazarski ." <ro...@gmail.com>.
Looks like your problem is on the LocalTransportSender class, do you have
the axis2-transport-local-1.7.9.jar in the expanded war dir
axis2.war/WEB-INF/lib ?

Regards,
Robert

On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:

> I am learning axis2 by doing the "samples/java_first_jaxws".
>
> $ cd $AXIS2_HOME/samples/java_first_jaxws
> $ mvn package
>
> java_first_jaxws-1.7.9.war was built successfully.
>
> $ cp
> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
> $JBOSS_HOME/standalone/deployments
>
> wildfly server.log had this error:
> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
> '/java_first_jaxws-1.7.9' for server 'default-server'
> 2019-10-19 10:38:43,024 ERROR
> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
> services" =>
> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
> "javax.servlet.ServletException: javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: javax.servlet.ServletException:
> javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: java.lang.ClassNotFoundException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>
>
>
> I completed the Axis2 Quick Start Guide successfully so my configurations
> are correct.
>
> My configurations are:
> axis2-1.7.9 Binary distribution.
> axis2.war is built
> Apache Ant(TM) version 1.10.1
> wildfly-15.0.1.Final
> Apache Maven 3.6.0
> Java version: 1.8.0_202
> linux mint 18.3
> Default locale: en_CA, platform encoding: UTF-8
> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
> "unix"
>
>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by "robertlazarski ." <ro...@gmail.com>.
I am seeing this error:

'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not
useable.

I would expect Glassfish to have commons logging installed or find it in
the axis2.war, see if you can find it there or try putting that jar in the
Glassfish lib dir or equivalent - I am not a Glassfish user so not sure.

Regards
Robert

On Mon, Oct 28, 2019, 01:54 albert kao <al...@gmail.com> wrote:

> I used GlassFish Server Open Source Edition 5.0 (build 25).
>
> Its server.log:
> [2019-10-28T07:44:29.950-0400] [glassfish 5.0] [SEVERE] []
> [javax.enterprise.web] [tid: _ThreadID=42 _ThreadName=admin-listener(2)]
> [timeMillis: 1572263069950] [levelValue: 1000] [[
>   WebModule[/java_first_jaxws-1.7.9]StandardWrapper.Throwable
> java.lang.ExceptionInInitializerError
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1481)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1280)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5381)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:5626)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:540)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:900)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:684)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044)
> at
> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
> at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
> at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
> at
> org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
> at
> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:360)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:360)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
> at
> com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
> at
> org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:408)
> at
> org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:235)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)
> at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)
> at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)
> at
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)
> at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)
> at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)
> at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)
> at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)
> at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:316)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:298)
> at org.glassfish.jersey.internal.Errors.process(Errors.java:268)
> at
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)
> at
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)
> at
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)
> at
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:377)
> at
> org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:174)
> at
> org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168)
> at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
> at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
> at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242)
> at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
> at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> User-specified log class 'org.apache.commons.logging.impl.Log4JLogger'
> cannot be found or is not useable.
> at
> org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
> at
> org.apache.axis2.deployment.DeploymentEngine.<clinit>(DeploymentEngine.java:70)
> ... 78 more
> ]]
>
>
>
> On Thu, Oct 24, 2019 at 9:38 AM robertlazarski . <ro...@gmail.com>
> wrote:
>
>> Wildfly is tricky with logging, I personally use my own init via log4j2
>> and exclusions of jboss logging of the war in
>> WEB-INF/jboss-deployment-structure.xml.
>>
>> Anyways, easier for now is tweaking your standalone.xml ... I just tested
>> this config. This should put logs into server.log for you.
>>
>> Also, be sure to try this step in my previous email, another Wildfly
>> quirk.
>>
>> 2) Classloaders can act in unexpected ways, that sometimes can be fixed
>> by expanding them into WEB-INF/classes ... so try copying
>> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
>> 'jar xf axis2-transport-local-1.7.9.jar' .
>>
>>  <size-rotating-file-handler name="FILE" autoflush="true">
>>                 <level name="TRACE"/>
>>                 <formatter>
>>                     <pattern-formatter pattern="%d{yyyy-MM-dd
>> HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
>>                 </formatter>
>>                 <file relative-to="jboss.server.log.dir"
>> path="server.log"/>
>>                 <rotate-size value="10M"/>
>>                 <max-backup-index value="100"/>
>>                  <append value="true"/>
>>             </size-rotating-file-handler>
>>             <logger category="com.arjuna">
>>                 <level name="WARN"/>
>>             </logger>
>>              <logger category="org.jboss.modules">
>>                 <level name="TRACE"/>
>>             </logger>
>>             <logger category="org.hibernate">
>>                 <level name="WARN"/>
>>             </logger>
>>             <logger category="org.apache">
>>                 <level name="WARN"/>
>>             </logger>
>>             <logger category="org.apache.axis2">
>>                 <level name="TRACE"/>
>>             </logger>
>>             <logger category="sun.rmi">
>>                 <level name="WARN"/>
>>             </logger>
>>              <root-logger>
>>                 <level name="TRACE"/>
>>                 <handlers>
>>                     <handler name="CONSOLE"/>
>>                     <handler name="FILE"/>
>>                 </handlers>
>>             </root-logger>
>>             <formatter name="PATTERN">
>>                 <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS}
>> %-5p [%c] (%t) %s%e%n"/>
>>             </formatter>
>>              <formatter name="COLOR-PATTERN">
>>                 <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS}
>> %-5p [%c] (%t) %s%e%n"/>
>>             </formatter>
>>
>> On Thu, Oct 24, 2019 at 2:02 AM albert kao <al...@gmail.com> wrote:
>>
>>> I modified log4j.properties, rebuilt and reinstall axis2 but did not
>>> find "axis2.log".
>>>
>>> ~/wildfly/wildfly-15.0.1.Final/standalone $ find . -name "*log*"
>>> ./log
>>> ./log/server.log.2019-10-18
>>> ./log/server.log.2019-10-14
>>> ./log/server.log.2019-05-28
>>> ./log/server.log.2019-05-25
>>> ./log/server.log.2019-10-22
>>> ./log/audit.log
>>> ./log/server.log.2019-02-08
>>> ./log/server.log.2019-10-23
>>> ./log/server.log.2019-01-19
>>> ./log/server.log.2019-10-19
>>> ./log/server.log.2019-05-26
>>> ./log/server.log
>>> ./log/server.log.2019-02-09
>>> ./log/server.log.2019-10-21
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties_orig
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/commons-logging.properties
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-LICENSE.txt
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-1.2.15.jar
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-LICENSE.txt
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-1.1.1.jar
>>>
>>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/axis2-web/images/asf-logo.gif
>>>
>>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b
>>>
>>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b/log4j-1.2.15.jar
>>>
>>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa
>>>
>>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa/commons-logging-1.1.1.jar
>>> ./configuration/logging.properties
>>>
>>>
>>>
>>>
>>>
>>> $ cat
>>> tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
>>> #
>>> # Licensed to the Apache Software Foundation (ASF) under one
>>> # or more contributor license agreements. See the NOTICE file
>>> # distributed with this work for additional information
>>> # regarding copyright ownership. The ASF licenses this file
>>> # to you under the Apache License, Version 2.0 (the
>>> # "License"); you may not use this file except in compliance
>>> # with the License. You may obtain a copy of the License at
>>> #
>>> # http://www.apache.org/licenses/LICENSE-2.0
>>> #
>>> # Unless required by applicable law or agreed to in writing,
>>> # software distributed under the License is distributed on an
>>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>> # KIND, either express or implied. See the License for the
>>> # specific language governing permissions and limitations
>>> # under the License.
>>> #
>>>
>>> # Set root category priority to INFO and its only appender to CONSOLE.
>>> #log4j.rootCategory=INFO, CONSOLE
>>> #log4j.rootCategory=INFO, CONSOLE, LOGFILE
>>> log4j.rootCategory=INFO, CONSOLE, FILE
>>>
>>>
>>>
>>>
>>> #log4j.rootLogger=INFO, file
>>>
>>> log4j.appender.file=org.apache.log4j.RollingFileAppender
>>>
>>>
>>> log4j.appender.file.File=axis2.log
>>>
>>>
>>>
>>>
>>>
>>> # Set the enterprise logger priority to FATAL
>>> #log4j.logger.org.apache.axis2.enterprise=
>>> log4j.logger.org.apache.axis2=DEBUG
>>> log4j.logger.de.hunsicker.jalopy.io=FATAL
>>> log4j.logger.httpclient.wire.header=FATAL
>>> log4j.logger.org.apache.commons.httpclient=DEBUG
>>>
>>> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
>>> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
>>> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
>>>
>>> # LOGFILE is set to be a File appender using a PatternLayout.
>>> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
>>> log4j.appender.LOGFILE.File=axis2.log
>>> log4j.appender.LOGFILE.Append=true
>>> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Oct 21, 2019 at 8:48 AM robertlazarski . <
>>> robertlazarski@gmail.com> wrote:
>>>
>>>> Two things to try, if you are still stuck I will try running the
>>>> samples on my copy of Wildfly.
>>>>
>>>> 1) Put Axis2 in trace mode via the logging.properties file, and paste
>>>> the logs.
>>>>
>>>> 2) Classloaders can act in unexpected ways, that sometimes can be fixed
>>>> by expanding them into WEB-INF/classes ... so try copying
>>>> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
>>>> 'jar xf axis2-transport-local-1.7.9.jar' .
>>>>
>>>> On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com>
>>>> wrote:
>>>>
>>>>> I am learning axis2 by doing the "samples/java_first_jaxws".
>>>>>
>>>>> $ cd $AXIS2_HOME/samples/java_first_jaxws
>>>>> $ mvn package
>>>>>
>>>>> java_first_jaxws-1.7.9.war was built successfully.
>>>>>
>>>>> $ cp
>>>>> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
>>>>> $JBOSS_HOME/standalone/deployments
>>>>>
>>>>> wildfly server.log had this error:
>>>>> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
>>>>> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
>>>>> '/java_first_jaxws-1.7.9' for server 'default-server'
>>>>> 2019-10-19 10:38:43,024 ERROR
>>>>> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
>>>>> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
>>>>> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
>>>>> services" =>
>>>>> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
>>>>> "javax.servlet.ServletException: javax.servlet.ServletException:
>>>>> org.apache.axis2.deployment.DeploymentException:
>>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>>     Caused by: javax.servlet.ServletException:
>>>>> javax.servlet.ServletException:
>>>>> org.apache.axis2.deployment.DeploymentException:
>>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>>     Caused by: javax.servlet.ServletException:
>>>>> org.apache.axis2.deployment.DeploymentException:
>>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>>     Caused by: org.apache.axis2.deployment.DeploymentException:
>>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>>     Caused by: java.lang.ClassNotFoundException:
>>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>>>>>
>>>>>
>>>>>
>>>>> I completed the Axis2 Quick Start Guide successfully so my
>>>>> configurations are correct.
>>>>>
>>>>> My configurations are:
>>>>> axis2-1.7.9 Binary distribution.
>>>>> axis2.war is built
>>>>> Apache Ant(TM) version 1.10.1
>>>>> wildfly-15.0.1.Final
>>>>> Apache Maven 3.6.0
>>>>> Java version: 1.8.0_202
>>>>> linux mint 18.3
>>>>> Default locale: en_CA, platform encoding: UTF-8
>>>>> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
>>>>> "unix"
>>>>>
>>>>>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by albert kao <al...@gmail.com>.
I used GlassFish Server Open Source Edition 5.0 (build 25).

Its server.log:
[2019-10-28T07:44:29.950-0400] [glassfish 5.0] [SEVERE] []
[javax.enterprise.web] [tid: _ThreadID=42 _ThreadName=admin-listener(2)]
[timeMillis: 1572263069950] [levelValue: 1000] [[
  WebModule[/java_first_jaxws-1.7.9]StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1481)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1280)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5381)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5626)
at com.sun.enterprise.web.WebModule.start(WebModule.java:540)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:900)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:684)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2044)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1690)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:536)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:535)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:566)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:558)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:557)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1465)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:110)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1847)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1723)
at
org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:408)
at
org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)
at
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:200)
at
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)
at
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)
at org.glassfish.jersey.internal.Errors.process(Errors.java:316)
at org.glassfish.jersey.internal.Errors.process(Errors.java:298)
at org.glassfish.jersey.internal.Errors.process(Errors.java:268)
at
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)
at
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)
at
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:377)
at
org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:174)
at
org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
at
com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168)
at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242)
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539)
at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.logging.LogConfigurationException:
User-specified log class 'org.apache.commons.logging.impl.Log4JLogger'
cannot be found or is not useable.
at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at
org.apache.axis2.deployment.DeploymentEngine.<clinit>(DeploymentEngine.java:70)
... 78 more
]]



On Thu, Oct 24, 2019 at 9:38 AM robertlazarski . <ro...@gmail.com>
wrote:

> Wildfly is tricky with logging, I personally use my own init via log4j2
> and exclusions of jboss logging of the war in
> WEB-INF/jboss-deployment-structure.xml.
>
> Anyways, easier for now is tweaking your standalone.xml ... I just tested
> this config. This should put logs into server.log for you.
>
> Also, be sure to try this step in my previous email, another Wildfly
> quirk.
>
> 2) Classloaders can act in unexpected ways, that sometimes can be fixed by
> expanding them into WEB-INF/classes ... so try copying
> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
> 'jar xf axis2-transport-local-1.7.9.jar' .
>
>  <size-rotating-file-handler name="FILE" autoflush="true">
>                 <level name="TRACE"/>
>                 <formatter>
>                     <pattern-formatter pattern="%d{yyyy-MM-dd
> HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
>                 </formatter>
>                 <file relative-to="jboss.server.log.dir"
> path="server.log"/>
>                 <rotate-size value="10M"/>
>                 <max-backup-index value="100"/>
>                  <append value="true"/>
>             </size-rotating-file-handler>
>             <logger category="com.arjuna">
>                 <level name="WARN"/>
>             </logger>
>              <logger category="org.jboss.modules">
>                 <level name="TRACE"/>
>             </logger>
>             <logger category="org.hibernate">
>                 <level name="WARN"/>
>             </logger>
>             <logger category="org.apache">
>                 <level name="WARN"/>
>             </logger>
>             <logger category="org.apache.axis2">
>                 <level name="TRACE"/>
>             </logger>
>             <logger category="sun.rmi">
>                 <level name="WARN"/>
>             </logger>
>              <root-logger>
>                 <level name="TRACE"/>
>                 <handlers>
>                     <handler name="CONSOLE"/>
>                     <handler name="FILE"/>
>                 </handlers>
>             </root-logger>
>             <formatter name="PATTERN">
>                 <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS}
> %-5p [%c] (%t) %s%e%n"/>
>             </formatter>
>              <formatter name="COLOR-PATTERN">
>                 <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
> [%c] (%t) %s%e%n"/>
>             </formatter>
>
> On Thu, Oct 24, 2019 at 2:02 AM albert kao <al...@gmail.com> wrote:
>
>> I modified log4j.properties, rebuilt and reinstall axis2 but did not find
>> "axis2.log".
>>
>> ~/wildfly/wildfly-15.0.1.Final/standalone $ find . -name "*log*"
>> ./log
>> ./log/server.log.2019-10-18
>> ./log/server.log.2019-10-14
>> ./log/server.log.2019-05-28
>> ./log/server.log.2019-05-25
>> ./log/server.log.2019-10-22
>> ./log/audit.log
>> ./log/server.log.2019-02-08
>> ./log/server.log.2019-10-23
>> ./log/server.log.2019-01-19
>> ./log/server.log.2019-10-19
>> ./log/server.log.2019-05-26
>> ./log/server.log
>> ./log/server.log.2019-02-09
>> ./log/server.log.2019-10-21
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties_orig
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/commons-logging.properties
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-LICENSE.txt
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-1.2.15.jar
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-LICENSE.txt
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-1.1.1.jar
>>
>> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/axis2-web/images/asf-logo.gif
>>
>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b
>>
>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b/log4j-1.2.15.jar
>>
>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa
>>
>> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa/commons-logging-1.1.1.jar
>> ./configuration/logging.properties
>>
>>
>>
>>
>>
>> $ cat
>> tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
>> #
>> # Licensed to the Apache Software Foundation (ASF) under one
>> # or more contributor license agreements. See the NOTICE file
>> # distributed with this work for additional information
>> # regarding copyright ownership. The ASF licenses this file
>> # to you under the Apache License, Version 2.0 (the
>> # "License"); you may not use this file except in compliance
>> # with the License. You may obtain a copy of the License at
>> #
>> # http://www.apache.org/licenses/LICENSE-2.0
>> #
>> # Unless required by applicable law or agreed to in writing,
>> # software distributed under the License is distributed on an
>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>> # KIND, either express or implied. See the License for the
>> # specific language governing permissions and limitations
>> # under the License.
>> #
>>
>> # Set root category priority to INFO and its only appender to CONSOLE.
>> #log4j.rootCategory=INFO, CONSOLE
>> #log4j.rootCategory=INFO, CONSOLE, LOGFILE
>> log4j.rootCategory=INFO, CONSOLE, FILE
>>
>>
>>
>>
>> #log4j.rootLogger=INFO, file
>>
>> log4j.appender.file=org.apache.log4j.RollingFileAppender
>>
>>
>> log4j.appender.file.File=axis2.log
>>
>>
>>
>>
>>
>> # Set the enterprise logger priority to FATAL
>> #log4j.logger.org.apache.axis2.enterprise=
>> log4j.logger.org.apache.axis2=DEBUG
>> log4j.logger.de.hunsicker.jalopy.io=FATAL
>> log4j.logger.httpclient.wire.header=FATAL
>> log4j.logger.org.apache.commons.httpclient=DEBUG
>>
>> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
>> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
>> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
>> log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
>>
>> # LOGFILE is set to be a File appender using a PatternLayout.
>> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
>> log4j.appender.LOGFILE.File=axis2.log
>> log4j.appender.LOGFILE.Append=true
>> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
>> log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Oct 21, 2019 at 8:48 AM robertlazarski . <
>> robertlazarski@gmail.com> wrote:
>>
>>> Two things to try, if you are still stuck I will try running the samples
>>> on my copy of Wildfly.
>>>
>>> 1) Put Axis2 in trace mode via the logging.properties file, and paste
>>> the logs.
>>>
>>> 2) Classloaders can act in unexpected ways, that sometimes can be fixed
>>> by expanding them into WEB-INF/classes ... so try copying
>>> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
>>> 'jar xf axis2-transport-local-1.7.9.jar' .
>>>
>>> On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:
>>>
>>>> I am learning axis2 by doing the "samples/java_first_jaxws".
>>>>
>>>> $ cd $AXIS2_HOME/samples/java_first_jaxws
>>>> $ mvn package
>>>>
>>>> java_first_jaxws-1.7.9.war was built successfully.
>>>>
>>>> $ cp
>>>> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
>>>> $JBOSS_HOME/standalone/deployments
>>>>
>>>> wildfly server.log had this error:
>>>> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
>>>> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
>>>> '/java_first_jaxws-1.7.9' for server 'default-server'
>>>> 2019-10-19 10:38:43,024 ERROR
>>>> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
>>>> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
>>>> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
>>>> services" =>
>>>> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
>>>> "javax.servlet.ServletException: javax.servlet.ServletException:
>>>> org.apache.axis2.deployment.DeploymentException:
>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>     Caused by: javax.servlet.ServletException:
>>>> javax.servlet.ServletException:
>>>> org.apache.axis2.deployment.DeploymentException:
>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>     Caused by: javax.servlet.ServletException:
>>>> org.apache.axis2.deployment.DeploymentException:
>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>     Caused by: org.apache.axis2.deployment.DeploymentException:
>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>>     Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>>> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>>>>
>>>>
>>>>
>>>> I completed the Axis2 Quick Start Guide successfully so my
>>>> configurations are correct.
>>>>
>>>> My configurations are:
>>>> axis2-1.7.9 Binary distribution.
>>>> axis2.war is built
>>>> Apache Ant(TM) version 1.10.1
>>>> wildfly-15.0.1.Final
>>>> Apache Maven 3.6.0
>>>> Java version: 1.8.0_202
>>>> linux mint 18.3
>>>> Default locale: en_CA, platform encoding: UTF-8
>>>> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
>>>> "unix"
>>>>
>>>>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by "robertlazarski ." <ro...@gmail.com>.
Wildfly is tricky with logging, I personally use my own init via log4j2 and
exclusions of jboss logging of the war in
WEB-INF/jboss-deployment-structure.xml.

Anyways, easier for now is tweaking your standalone.xml ... I just tested
this config. This should put logs into server.log for you.

Also, be sure to try this step in my previous email, another Wildfly quirk.

2) Classloaders can act in unexpected ways, that sometimes can be fixed by
expanding them into WEB-INF/classes ... so try copying
axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
'jar xf axis2-transport-local-1.7.9.jar' .

 <size-rotating-file-handler name="FILE" autoflush="true">
                <level name="TRACE"/>
                <formatter>
                    <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS}
%-5p [%c] (%t) %s%e%n"/>
                </formatter>
                <file relative-to="jboss.server.log.dir" path="server.log"/>
                <rotate-size value="10M"/>
                <max-backup-index value="100"/>
                 <append value="true"/>
            </size-rotating-file-handler>
            <logger category="com.arjuna">
                <level name="WARN"/>
            </logger>
             <logger category="org.jboss.modules">
                <level name="TRACE"/>
            </logger>
            <logger category="org.hibernate">
                <level name="WARN"/>
            </logger>
            <logger category="org.apache">
                <level name="WARN"/>
            </logger>
            <logger category="org.apache.axis2">
                <level name="TRACE"/>
            </logger>
            <logger category="sun.rmi">
                <level name="WARN"/>
            </logger>
             <root-logger>
                <level name="TRACE"/>
                <handlers>
                    <handler name="CONSOLE"/>
                    <handler name="FILE"/>
                </handlers>
            </root-logger>
            <formatter name="PATTERN">
                <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS}
%-5p [%c] (%t) %s%e%n"/>
            </formatter>
             <formatter name="COLOR-PATTERN">
                <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
[%c] (%t) %s%e%n"/>
            </formatter>

On Thu, Oct 24, 2019 at 2:02 AM albert kao <al...@gmail.com> wrote:

> I modified log4j.properties, rebuilt and reinstall axis2 but did not find
> "axis2.log".
>
> ~/wildfly/wildfly-15.0.1.Final/standalone $ find . -name "*log*"
> ./log
> ./log/server.log.2019-10-18
> ./log/server.log.2019-10-14
> ./log/server.log.2019-05-28
> ./log/server.log.2019-05-25
> ./log/server.log.2019-10-22
> ./log/audit.log
> ./log/server.log.2019-02-08
> ./log/server.log.2019-10-23
> ./log/server.log.2019-01-19
> ./log/server.log.2019-10-19
> ./log/server.log.2019-05-26
> ./log/server.log
> ./log/server.log.2019-02-09
> ./log/server.log.2019-10-21
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties_orig
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/commons-logging.properties
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-LICENSE.txt
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-1.2.15.jar
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-LICENSE.txt
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-1.1.1.jar
>
> ./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/axis2-web/images/asf-logo.gif
>
> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b
>
> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b/log4j-1.2.15.jar
>
> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa
>
> ./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa/commons-logging-1.1.1.jar
> ./configuration/logging.properties
>
>
>
>
>
> $ cat
> tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
> #
> # Licensed to the Apache Software Foundation (ASF) under one
> # or more contributor license agreements. See the NOTICE file
> # distributed with this work for additional information
> # regarding copyright ownership. The ASF licenses this file
> # to you under the Apache License, Version 2.0 (the
> # "License"); you may not use this file except in compliance
> # with the License. You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing,
> # software distributed under the License is distributed on an
> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> # KIND, either express or implied. See the License for the
> # specific language governing permissions and limitations
> # under the License.
> #
>
> # Set root category priority to INFO and its only appender to CONSOLE.
> #log4j.rootCategory=INFO, CONSOLE
> #log4j.rootCategory=INFO, CONSOLE, LOGFILE
> log4j.rootCategory=INFO, CONSOLE, FILE
>
>
>
>
> #log4j.rootLogger=INFO, file
>
> log4j.appender.file=org.apache.log4j.RollingFileAppender
>
>
> log4j.appender.file.File=axis2.log
>
>
>
>
>
> # Set the enterprise logger priority to FATAL
> #log4j.logger.org.apache.axis2.enterprise=
> log4j.logger.org.apache.axis2=DEBUG
> log4j.logger.de.hunsicker.jalopy.io=FATAL
> log4j.logger.httpclient.wire.header=FATAL
> log4j.logger.org.apache.commons.httpclient=DEBUG
>
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
>
> # LOGFILE is set to be a File appender using a PatternLayout.
> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
> log4j.appender.LOGFILE.File=axis2.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
>
>
>
>
>
>
>
> On Mon, Oct 21, 2019 at 8:48 AM robertlazarski . <ro...@gmail.com>
> wrote:
>
>> Two things to try, if you are still stuck I will try running the samples
>> on my copy of Wildfly.
>>
>> 1) Put Axis2 in trace mode via the logging.properties file, and paste the
>> logs.
>>
>> 2) Classloaders can act in unexpected ways, that sometimes can be fixed
>> by expanding them into WEB-INF/classes ... so try copying
>> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
>> 'jar xf axis2-transport-local-1.7.9.jar' .
>>
>> On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:
>>
>>> I am learning axis2 by doing the "samples/java_first_jaxws".
>>>
>>> $ cd $AXIS2_HOME/samples/java_first_jaxws
>>> $ mvn package
>>>
>>> java_first_jaxws-1.7.9.war was built successfully.
>>>
>>> $ cp
>>> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
>>> $JBOSS_HOME/standalone/deployments
>>>
>>> wildfly server.log had this error:
>>> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
>>> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
>>> '/java_first_jaxws-1.7.9' for server 'default-server'
>>> 2019-10-19 10:38:43,024 ERROR
>>> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
>>> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
>>> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
>>> services" =>
>>> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
>>> "javax.servlet.ServletException: javax.servlet.ServletException:
>>> org.apache.axis2.deployment.DeploymentException:
>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>     Caused by: javax.servlet.ServletException:
>>> javax.servlet.ServletException:
>>> org.apache.axis2.deployment.DeploymentException:
>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>     Caused by: javax.servlet.ServletException:
>>> org.apache.axis2.deployment.DeploymentException:
>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>     Caused by: org.apache.axis2.deployment.DeploymentException:
>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>>     Caused by: java.lang.ClassNotFoundException:
>>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>>> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>>>
>>>
>>>
>>> I completed the Axis2 Quick Start Guide successfully so my
>>> configurations are correct.
>>>
>>> My configurations are:
>>> axis2-1.7.9 Binary distribution.
>>> axis2.war is built
>>> Apache Ant(TM) version 1.10.1
>>> wildfly-15.0.1.Final
>>> Apache Maven 3.6.0
>>> Java version: 1.8.0_202
>>> linux mint 18.3
>>> Default locale: en_CA, platform encoding: UTF-8
>>> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
>>> "unix"
>>>
>>>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by albert kao <al...@gmail.com>.
I modified log4j.properties, rebuilt and reinstall axis2 but did not find
"axis2.log".

~/wildfly/wildfly-15.0.1.Final/standalone $ find . -name "*log*"
./log
./log/server.log.2019-10-18
./log/server.log.2019-10-14
./log/server.log.2019-05-28
./log/server.log.2019-05-25
./log/server.log.2019-10-22
./log/audit.log
./log/server.log.2019-02-08
./log/server.log.2019-10-23
./log/server.log.2019-01-19
./log/server.log.2019-10-19
./log/server.log.2019-05-26
./log/server.log
./log/server.log.2019-02-09
./log/server.log.2019-10-21
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties_orig
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/commons-logging.properties
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-LICENSE.txt
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/log4j-1.2.15.jar
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-LICENSE.txt
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/lib/commons-logging-1.1.1.jar
./tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/axis2-web/images/asf-logo.gif
./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b
./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/log4j-1.2.15.jar-ebf06febc102282b/log4j-1.2.15.jar
./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa
./tmp/vfs/deployment/deployment2dbaef717b1b5fdd/commons-logging-1.1.1.jar-8b6afdbe7cee4afa/commons-logging-1.1.1.jar
./configuration/logging.properties





$ cat
tmp/vfs/temp/temp2a253be6f31831f/content-8480850be85323ea/WEB-INF/classes/log4j.properties
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# Set root category priority to INFO and its only appender to CONSOLE.
#log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE
log4j.rootCategory=INFO, CONSOLE, FILE




#log4j.rootLogger=INFO, file

log4j.appender.file=org.apache.log4j.RollingFileAppender


log4j.appender.file.File=axis2.log





# Set the enterprise logger priority to FATAL
#log4j.logger.org.apache.axis2.enterprise=
log4j.logger.org.apache.axis2=DEBUG
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=DEBUG

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n







On Mon, Oct 21, 2019 at 8:48 AM robertlazarski . <ro...@gmail.com>
wrote:

> Two things to try, if you are still stuck I will try running the samples
> on my copy of Wildfly.
>
> 1) Put Axis2 in trace mode via the logging.properties file, and paste the
> logs.
>
> 2) Classloaders can act in unexpected ways, that sometimes can be fixed by
> expanding them into WEB-INF/classes ... so try copying
> axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
> 'jar xf axis2-transport-local-1.7.9.jar' .
>
> On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:
>
>> I am learning axis2 by doing the "samples/java_first_jaxws".
>>
>> $ cd $AXIS2_HOME/samples/java_first_jaxws
>> $ mvn package
>>
>> java_first_jaxws-1.7.9.war was built successfully.
>>
>> $ cp
>> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
>> $JBOSS_HOME/standalone/deployments
>>
>> wildfly server.log had this error:
>> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
>> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
>> '/java_first_jaxws-1.7.9' for server 'default-server'
>> 2019-10-19 10:38:43,024 ERROR
>> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
>> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
>> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
>> services" =>
>> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
>> "javax.servlet.ServletException: javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: javax.servlet.ServletException:
>> javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: javax.servlet.ServletException:
>> org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: org.apache.axis2.deployment.DeploymentException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]
>>     Caused by: java.lang.ClassNotFoundException:
>> org.apache.axis2.transport.local.LocalTransportSender from [Module
>> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>>
>>
>>
>> I completed the Axis2 Quick Start Guide successfully so my configurations
>> are correct.
>>
>> My configurations are:
>> axis2-1.7.9 Binary distribution.
>> axis2.war is built
>> Apache Ant(TM) version 1.10.1
>> wildfly-15.0.1.Final
>> Apache Maven 3.6.0
>> Java version: 1.8.0_202
>> linux mint 18.3
>> Default locale: en_CA, platform encoding: UTF-8
>> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
>> "unix"
>>
>>

Re: java_first_jaxws ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

Posted by "robertlazarski ." <ro...@gmail.com>.
Two things to try, if you are still stuck I will try running the samples on
my copy of Wildfly.

1) Put Axis2 in trace mode via the logging.properties file, and paste the
logs.

2) Classloaders can act in unexpected ways, that sometimes can be fixed by
expanding them into WEB-INF/classes ... so try copying
axis2-transport-local-1.7.9.jar into WEB-INF/classes and expanding it via
'jar xf axis2-transport-local-1.7.9.jar' .

On Sat, Oct 19, 2019 at 5:21 AM albert kao <al...@gmail.com> wrote:

> I am learning axis2 by doing the "samples/java_first_jaxws".
>
> $ cd $AXIS2_HOME/samples/java_first_jaxws
> $ mvn package
>
> java_first_jaxws-1.7.9.war was built successfully.
>
> $ cp
> ~/axis2-1.7.9/samples/java_first_jaxws/target/java_first_jaxws-1.7.9.war
> $JBOSS_HOME/standalone/deployments
>
> wildfly server.log had this error:
> 2019-10-19 10:38:43,017 INFO  [org.wildfly.extension.undertow]
> (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context:
> '/java_first_jaxws-1.7.9' for server 'default-server'
> 2019-10-19 10:38:43,024 ERROR
> [org.jboss.as.controller.management-operation] (Controller Boot Thread)
> WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" =>
> "jaxws-samples.war")]) - failure description: {"WFLYCTL0080: Failed
> services" =>
> {"jboss.deployment.unit.\"jaxws-samples.war\".undertow-deployment" =>
> "javax.servlet.ServletException: javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: javax.servlet.ServletException:
> javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: javax.servlet.ServletException:
> org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]
>     Caused by: java.lang.ClassNotFoundException:
> org.apache.axis2.transport.local.LocalTransportSender from [Module
> \"deployment.jaxws-samples.war\" from Service Module Loader]"}}
>
>
>
> I completed the Axis2 Quick Start Guide successfully so my configurations
> are correct.
>
> My configurations are:
> axis2-1.7.9 Binary distribution.
> axis2.war is built
> Apache Ant(TM) version 1.10.1
> wildfly-15.0.1.Final
> Apache Maven 3.6.0
> Java version: 1.8.0_202
> linux mint 18.3
> Default locale: en_CA, platform encoding: UTF-8
> OS name: "linux", version: "4.10.0-38-generic", arch: "amd64", family:
> "unix"
>
>