Tomcat 8, axis2 webservices aar, spring jndi not bound in context

后端 未结 1 828
甜味超标
甜味超标 2021-01-07 03:08

I have been working on an issue where JNDI name is not found in the context an axis2 webservice is running. This issue is only in Tomcat 8 when I use spring. Some details:

1条回答
  •  广开言路
    2021-01-07 03:49

    @bplso I had the same issue when I upgrade tomcat7 to tomcat8.5 on a axis2 project, try the steps given in image. It may be solve your issue. !

    Step 1: Specify the connection resource in server.xml inside  like 
     
    
    
    Step 2: Specify the resource reference in web.xml inside the  like 
    
     
     This is a reference to the global Resource for SQL database connetion.  
    jdbc/name 
    javax.sql.DataSource 
    Container 
     
    
    
    Step 3: Create a context.xml file and paste it in your project/META-INF/ path as below 
    
     
     
    
    

    0 讨论(0)
提交回复
热议问题