azizkhani.net

I know that I know nothing

change default tomcat port in maven tomcat using maven parameter

clock September 5, 2015 20:22 by author Administrator

i want to run one app in two port for test in spring-session and redis Cool :D

mvn tomcat:run -Dmaven.tomcat.port=8081



change default tomcat webapp directory in maven tomcat 7 plugin

clock July 29, 2015 18:53 by author Administrator

<plugin>

    <groupId>org.apache.tomcat.maven</groupId>

    <artifactId>tomcat7-maven-plugin</artifactId>

    <version>2.0</version>

    <configuration>

        <warSourceDirectory>${basedir}/target/web</warSourceDirectory>

    </configuration>

</plugin>



remote debug in tomcat

clock May 9, 2015 19:12 by author Administrator

add this line jvm args

-agentlib:jdwp=transport=dt_socket,address=1499,server=y,suspend=n"



create jndi in tomcat

clock May 9, 2015 18:55 by author Administrator

Create META-INF/context.xml

<Context  docBase="appName" path="/" reloadable="true" >

    <Resource name="develop" auth="Container" type="javax.sql.DataSource" maxActive="50        
          maxIdle="30" maxWait="10000" username="test"    password="test"

        driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@192.168.36.250:1521:XE" />

</Context>

 

web.xml configuration

 

<resource-ref>
        <description>jdbc Datasource example</description>
        <res-ref-name>develop</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
      </resource-ref>



About the author

 Welcome to this web site . This page has two purposes: Sharing information about my professional life such as articles, presentations, etc.
This website is also a place where I would like to share content I enjoy with the rest of the world. Feel free to take a look around, read my blog


Java,J2EE,Spring Framework,JQuery,

Hibernate,NoSql,Cloud,SOA,Rest WebService and Web Stack tech...

RecentPosts

Month List

Sign In