Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 82170 invoked from network); 7 Aug 2007 15:06:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 15:06:26 -0000 Received: (qmail 1229 invoked by uid 500); 7 Aug 2007 15:06:22 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 1181 invoked by uid 500); 7 Aug 2007 15:06:22 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 1170 invoked by uid 99); 7 Aug 2007 15:06:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 08:06:22 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 15:06:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B284714191 for ; Tue, 7 Aug 2007 08:05:59 -0700 (PDT) Message-ID: <11861499.1186499159362.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 08:05:59 -0700 (PDT) From: "Upul Godage (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-3093) axis2server.sh, wsdl2java.sh, java2wsdl.sh unusable without logging In-Reply-To: <26112813.1186499039193.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Upul Godage updated AXIS2-3093: ------------------------------- Attachment: log4j.properties.patch.jar Add this jar file to AXIS2_HOME/lib folder to initialize the logging system when the following warnings come. log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle). log4j:WARN Please initialize the log4j system properly. > axis2server.sh, wsdl2java.sh, java2wsdl.sh unusable without logging > ------------------------------------------------------------------- > > Key: AXIS2-3093 > URL: https://issues.apache.org/jira/browse/AXIS2-3093 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Reporter: Upul Godage > Fix For: nightly > > Attachments: log4j.properties.patch.jar > > > I ran a sample without following all the instructions. Check out the present behavior. It does not say anything. Check the output after adding the patch.jar to the lib directory. > If this is a minor issue, then it seems new users will have a second opinion when something goes wrong like this. This is a sure way to keep the new users away from Axis2. Without logs, troubleshooting problems is unthinkable. Imagine someone asking in the user list something like this. Most will not bother finding what's going on. They will go for something else. > Attached log4j.properties.patch.jar can be added to the AXIS2_HOME/lib folder to fix the issue as quick fix for the moment. Jar contains log4j.properties file only. So when it is added to the classpath, log4j will see the properties file and initialize the logging system. This is a simple solution to fix all the scripts and samples at the moment. > Present behaviour: > -------------------- > upul@upul:~/apps/axis2/bin$ bash axis2server.sh > Using AXIS2_HOME: /home/upul/apps/axis2 > Using JAVA_HOME: /usr/java > log4j:WARN No appenders could be found for logger (org.apache.axis2.transport.http.SimpleHTTPServer). > log4j:WARN Please initialize the log4j system properly. > [SimpleAxisServer] Using the Axis2 Repository/home/upul/apps/axis2/repository > [SimpleAxisServer] Using the Axis2 Configuration File/home/upul/apps/axis2/conf/axis2.xml > [JAM] Warning: You are running under a pre-1.5 JDK. JSR175-style source annotations will not be available > [SimpleAxisServer] Started > [SimpleHTTPServer] Stop called > with the fix: > ------------------ > upul@upul:~/apps/axis2/bin$ bash axis2server.sh > Using AXIS2_HOME: /home/upul/apps/axis2 > Using JAVA_HOME: /usr/java > [INFO] [SimpleAxisServer] Starting > [INFO] [SimpleAxisServer] Using the Axis2 Repository/home/upul/apps/axis2/repository > [SimpleAxisServer] Using the Axis2 Repository/home/upul/apps/axis2/repository > [SimpleAxisServer] Using the Axis2 Configuration File/home/upul/apps/axis2/conf/axis2.xml > [INFO] Deploying module: ping-1.3 > [INFO] Deploying module: addressing-1.3 > [INFO] Deploying module: soapmonitor-1.3 > [INFO] Deploying module: sample-logging > [INFO] Deploying module: metadataExchange-1.3 > [INFO] Deploying module: script-1.3 > [INFO] Deploying module: sample-logging > [INFO] script module activated > [JAM] Warning: You are running under a pre-1.5 JDK. JSR175-style source annotations will not be available > [INFO] Deploying Web service: sample-MyService.aar > [ERROR] The sample-MyServiceWithModule.aar service, which is not valid, caused Did not find the desired phase 'loggingPhase' while deploying handler 'InFlowLogHandler'. > org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'loggingPhase' while deploying handler 'InFlowLogHandler'. > at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:76) > at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:64) > at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:100) > at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:106) > at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:158) > at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:458) > at org.apache.axis2.description.AxisService.onEngage(AxisService.java:687) > at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:458) > at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:421) > at org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:526) > at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:473) > at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) > at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137) > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571) > at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141) > at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318) > at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220) > at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:118) > at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:146) > at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78) > at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) > at org.apache.axis2.transport.SimpleAxis2Server.(SimpleAxis2Server.java:50) > at org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:101) > [INFO] org.apache.axis2.deployment.DeploymentException: Did not find the desired phase 'loggingPhase' while deploying handler 'InFlowLogHandler'. > [INFO] Deploying Web service: sample-WsaMappingService.aar > [INFO] [SimpleAxisServer] Started > [SimpleAxisServer] Started > [INFO] Listening on port 8080 > [SimpleHTTPServer] Stop called > [INFO] Shut down connection listener > [INFO] Shut down HTTP processors > [INFO] HTTP protocol handler shut down -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org