connection pooling - Maven Dependencies in web application and java application -


i trying connection pooling on remote server(not database server) using jndi, tomcat, maven , etc. in details, have 2 maven projects 1)web application 2)java application in non maven project , try access methods of java application web application. here pom of 2 projects:

pom java application

<dependencies>     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>3.8.1</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>commons-pool</groupid>         <artifactid>commons-pool</artifactid>         <version>1.6</version>     </dependency>     <dependency>     <groupid>log4j</groupid>     <artifactid>log4j</artifactid>     <version>1.2.13</version> </dependency>     </dependencies> 

pom webapp

<dependencies>     <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>3.8.1</version>       <scope>test</scope>     </dependency> <dependency>     <groupid>javax.servlet</groupid>     <artifactid>javax.servlet-api</artifactid>     <version>3.0.1</version>     <scope>provided</scope> </dependency>      <dependency>         <groupid>de.hello.simplejavaapp</groupid>         <artifactid>simplejavaapp</artifactid>         <version>1.0-snapshot</version>         <!-- <scope>compile</scope> -->     </dependency>         <dependency>     <groupid>log4j</groupid>     <artifactid>log4j</artifactid>     <version>1.2.13</version> </dependency>             </dependencies>   <build>     <finalname>cpwebapp</finalname>     <pluginmanagement>       <plugins>         <plugin>           <groupid>org.apache.maven.plugins</groupid>           <artifactid>maven-war-plugin</artifactid>           <version>2.1-alpha-2</version>         </plugin>         <plugin>           <groupid>org.apache.maven.plugins</groupid>           <artifactid>maven-compiler-plugin</artifactid>           <version>2.3.2</version>         </plugin>       </plugins>     </pluginmanagement>   </build> 

web.xml of web app:

 <resource-env-ref>     <description>         connection pooling on hsm.     </description>     <resource-env-ref-name>bean/cxiresourcelocator</resource-env-ref-name>     <resource-env-ref-type>         de.hello.cpwebapp.cxibean     </resource-env-ref-type> </resource-env-ref> 

now problem not able access methods of java application(java.lang.classnotfoundexception), since have added dependency in web application's pom file. not getting errors while compiling both projects.

waiting answer.


Comments

Popular posts from this blog

Google sheets equipment borrowing system -

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

c# - Convert type 'System.Collections.Generic.List<string>' to 'System.Collections.Generic.IList<>' -