[ https://issues.apache.org/jira/browse/AXIS2-4518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762767#action_12762767 ]
Martin Gainty commented on AXIS2-4518: -------------------------------------- change to to the directory where axis2-transport-local-1.5.jar is located make sure your pom.xml has these characteristics <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.axis2</groupId> <artifactId>axis2-parent</artifactId> <version>1.5</version> <relativePath>../../parent/pom.xml</relativePath> </parent> <groupId>transport.local.target</groupId> <version>1.5</version> <artifactId>axis2-transport-local</artifactId> <packaging>bundle</packaging> </snip> </project> mvn -X deploy:deployFile -DartifactId=axis2-transport-local -Dfile=pom.xml -DgroupId=org.apache.axis2 -Dpackaging=jar -DrepositoryId=localRepository -Dversion=1.5 -Durl=///C:\DOCUME~1\ADMINI~1\.m2\repository change to the directory where axis2-transport-http-1.5.jar is located <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.axis2</groupId> <artifactId>axis2-parent</artifactId> <version>1.5</version> <relativePath>../../parent/pom.xml</relativePath> </parent> <groupId>org.apache.axis2</groupId> <version>1.5</version> <artifactId>axis2-transport-http</artifactId> <name>Apache Axis2 - Transport - HTTP</name> <description>This inclues all the available transports in Axis2</description> <packaging>bundle</packaging> <snip> </project> mvn -X deploy:deploy-file -DgroupId=org.apache.axis2 -Dversion=1.5 -DartifactId=axis2-transport-http -Dfile=pom.xml -Dpackaging=jar -Durl=file:///C:\DOCUME~1\ADMINI~1\.m2\repository -DrepositoryId=localRepository this is a workaround to place 2 maven entities into localRepository.. whomever has write access to the maven repositories (e.g. http://repo1.maven.org) should deploy there as well 06 Oct 2009 Martin > ClassNotFoundException while parsing > org/apache/axis2/deployment/axis2_default.xml > ---------------------------------------------------------------------------------- > > Key: AXIS2-4518 > URL: https://issues.apache.org/jira/browse/AXIS2-4518 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: deployment, kernel, transports > Affects Versions: 1.5 > Environment: java 1.5.0_11, axis-kernel v 1.5 and dependencies are > loaded from maven Repository > Reporter: Ostap > > I use Axis client generated by XMLBeans and call an default constructor. > (configurationContext==null, axis2.xml not defined etc.) > Generated Stub populates default AxisService and makes an attempt to create > an ServiceClient: > _serviceClient = new > org.apache.axis2.client.ServiceClient(configurationContext,_service); > it loads org/apache/axis2/deployment/axis2_default.xml. > we can find there: > ... > <!-- ================================================= --> > <!-- Transport Outs --> > <!-- ================================================= --> > <transportSender name="local" > > class="org.apache.axis2.transport.local.LocalTransportSender"/> > <transportSender name="http" > > class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> > <parameter name="PROTOCOL">HTTP/1.1</parameter> > <parameter name="Transfer-Encoding">chunked</parameter> > </transportSender> > <transportSender name="https" > > class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> > <parameter name="PROTOCOL">HTTP/1.1</parameter> > <parameter name="Transfer-Encoding">chunked</parameter> > </transportSender> > .. > Local TransportSender, CommonsHTTPTransportSender and > CommonsHTTPTransportSender cannot be found in classpath and we get > ClassNotFoundException in > org.apache.axis2.deployment.AxisConfigBuilder#processTransportSenders(Iterator > trs_senders) line 669: > String clasName = trsClas.getAttributeValue(); > Class sender; > try { > sender = Loader.loadClass(clasName); // line 669 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.