Just a few pointers: copy $AXIS2_HOME\core\trunk\modules\addressing\target\addressing-*.mar to $CATALINA_HOME\webapps\axis2\WEB-INF\modules update $CATALINA_HOME\webapps\axis2\WEB-INF\modules\modules.list to include exact filename of addressing-*.mar
Log4j configuration: //Log4j will need to know which specific appender to implement..this is configured by log4j.properties as seen here: # 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. # For the general syntax of property based configuration files see the # documenation of org.apache.log4j.PropertyConfigurator. # The root category uses the appender called A1. Since no priority is # specified, the root category assumes the default priority for root # which is DEBUG in log4j. The root category is the only category that # has a default priority. All other categories need not be assigned a # priority in which case they inherit their priority from the # hierarchy. log4j.rootCategory=, A1, R # A1 is set to be a LF5Appender which outputs to a swing # logging console. log4j.appender.A1=org.apache.log4j.lf5.LF5Appender # R is the RollingFileAppender that outputs to a rolling log # file called rolling_log_file.log. log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=rolling_log_file.log # Define a pattern layout for the file. # For more information on conversion characters (i.e. d,p,t,c,l,m,n) # please see the PatternLayout class of the Log4j API. log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%n%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n%c[slf5s.CATEGORY]%n%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n # Set the max size of the file and the number of backup files log4j.appender.R.MaxFileSize=100KB log4j.appender.R.MaxBackupIndex=1 //axis-2.1.6 codebase of org.apache.axis.addressing.EndpointReference.isWSAddressingAnonymous() contains this method: public boolean isWSAddressingAnonymous() { return (AddressingConstants.Final.WSA_ANONYMOUS_URL.equals(address) || AddressingConstants.Submission.WSA_ANONYMOUS_URL.equals(address)); } the signature produced by java compiler is isWSAddressingAnonymous()Z if you rebuild the addressing-*.mar (be version safe and use maven) and place addressing*.mar in $CATALINA_HOME\webapps\axis2\WEB-INF\modules and update $CATALINA_HOME\webapps\axis2\WEB-INF\modules\modules.list this should work for you feel free to pingback for implementation details Martin -- ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 12 May 2011 14:29:08 +1000 From: [email protected] To: [email protected] Subject: Re: NoSuchMethodError: org.apache.axis2.addressing.EndpointReference.isWSAddressingAnonymous()Z Greetings! I re installed the whole set up with following. 1) jdk 1.6.0_24 2) axis2 1.5.4 3) Apache 7.0.12 4) Netbeans 7.0 Once I set up the environment and start Tomcat I could access the axis2 service content. For the experiments I require dummy services to be deploys on localhost for that I used the Axis2 Suport 1.3 plugin for Netbeans. Then, I tried the example in "Deepal's" Book "Quickstart - Apache Axis2" page # 131-133 and I started getting following error log4j:WARN No appenders could be found for logger (org.apache.axis2.util.Loader). log4j:WARN Please initialize the log4j system properly. 12/05/2011 2:14:57 PM axiomtryout.TestServiceClient creatClient SEVERE: null org.apache.axis2.AxisFault: Unable to engage module : addressing at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:358) at axiomtryout.TestServiceClient.creatClient(TestServiceClient.java:31) at axiomtryout.Main.main(Main.java:38) >>> Andreas Veithen <[email protected]> 8/05/2011 2:09 AM >>> This error typically occurs if you have a mix of JARs/modules from different (incompatible) Axis2 versions. Andreas On Fri, May 6, 2011 at 05:05, Mark Bullathsinghalage Cooray <[email protected]> wrote: > Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.axis2.addressing.EndpointReference.isWSAddressingAnonymous()Z > at > org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processToEPR(AddressingOutHandler.java:422) > at > org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:214) > at > org.apache.axis2.handlers.addressing.AddressingOutHandler.invoke(AddressingOutHandler.java:135) > at org.apache.axis2.engine.Phase.invoke(Phase.java:292) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:377) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) > at > axiomtryout.NewServiceClient.creatClient(NewServiceClient.java:35) > at axiomtryout.Main.main(Main.java:35) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
