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 . <robertlazar...@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 <albertk...@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"
>>
>>

Reply via email to