2013年9月25日星期三

linux environment tomcat container does not start

BRIEF error message

Here is the picture above said application.xml file ,


xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
xmlns: tx = "http://www.springframework.org/schema/tx"
xmlns: aop = "http://www.springframework.org/schema/aop"
xmlns: context = "http://www.springframework.org/schema/context"
xsi: schemaLocation = "http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd ">






java: comp / env / jdbc / igrp
















have encountered problems in this area help out a friend !
------ Solution ---------------------------------------- ----
applicationContent.xml posted incomplete bar, posted caUrl this piece
------ Solution ------------------- -------------------------
java: comp / env / jdbc / igrp the inside & have changed &
------ Solution --------------------------------- -----------
learn some top
------ For reference only ------------------- --------------------
top one !
------ For reference only ---------------------------------------


is wide, and the entire project search can not find caUrl, feeling a little iffy , delete this data source is no error , but do not know what went wrong
------ For reference only ---------------------------------------


I also find online , basically you say this , but I saw no connection database configuration & this symbol , and in this connection here I will not call into local direct write configuration oracle database connection does not exist ampersand same report such errors ,
Here is jdbc / igrp file

<Context debug="0" reloadable="false" privileged="true">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
        <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>
<!--c3p0-->
<Resource name="jdbc/igrp" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
              maxPoolSize="500" minPoolSize="10" initialPoolSize="20" acquireIncrement="10" idleConnectionTestPeriod="180" 
  maxIdleTime="180" checkoutTimeout="60000" maxStatements="0" maxStatementsPerConnection="100"
              driverClass="net.sf.log4jdbc.DriverSpy"
              user="carmot_pe1" password="carmot" 
              jdbcUrl="jdbc:log4jdbc:oracle:thin:@10.4.247.96:1521:igrp2"
              factory="org.apache.naming.factory.BeanFactory"/>
              
    <Resource name="jdbc/md" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
  maxPoolSize="200" minPoolSize="10" initialPoolSize="20" acquireIncrement="10" idleConnectionTestPeriod="180" 
  maxIdleTime="180" checkoutTimeout="60000" driverClass="com.mysql.jdbc.Driver"
              user="root" password="123456" 
              jdbcUrl="jdbc:mysql://10.4.247.92:3306/md"
              factory="org.apache.naming.factory.BeanFactory"/>
              
    <Resource name="jdbc/sms" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
              maxPoolSize="30" minPoolSize="1" initialPoolSize="5" acquireIncrement="2"
              idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
              maxStatements="0" maxStatementsPerConnection="100"
              driverClass="oracle.jdbc.OracleDriver"
              user="hy_dmdz" password="hy_dmdz" 
              jdbcUrl="jdbc:log4jdbc:oracle:thin:@222.74.229.185:8891:dev"
              factory="org.apache.naming.factory.BeanFactory"/>
  
    <Resource name="jdbc/gd" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
              maxPoolSize="30" minPoolSize="3" initialPoolSize="5" acquireIncrement="2"
              idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
              driverClass="oracle.jdbc.driver.OracleDriver"
              user="seas" password="seas" 
              jdbcUrl="jdbc:oracle:thin:@127.0.0.1:1521:igrp2"
              factory="org.apache.naming.factory.BeanFactory"/>

<Resource name="jdbc/xzsp" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
              maxPoolSize="30" minPoolSize="3" initialPoolSize="5" acquireIncrement="2"
              idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
              driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
              user="sa" password="sa" 
              jdbcUrl="jdbc:sqlserver://10.4.251.190:1433;DatabaseName=xzspex"
              factory="org.apache.naming.factory.BeanFactory"/>

<Resource name="jdbc/bnet" auth="Container" type="com.mchange.v2.c3p0.ComboPooledDataSource"
              maxPoolSize="10" minPoolSize="2" initialPoolSize="2" acquireIncrement="2"
              idleConnectionTestPeriod="60" maxIdleTime="60" checkoutTimeout="30000"
              driverClass="oracle.jdbc.driver.OracleDriver"
              user="itpp_develop" password="itpp" 
              jdbcUrl="jdbc:oracle:thin:@10.4.247.92:1521:dev"
              factory="org.apache.naming.factory.BeanFactory"/>
</Context>


------ For reference only ----------------------------------- ----
jdbc / igrp you put where ? No node is deleted first look ?
------ For reference only -------------------------------------- -

deleted too, strange question , but has been resolved, have been wondering whether it is really missing something at the end of the node to open the file in linux find missing closing tag which is < / beans> no , I feel a bit strange files should be some unseen symbols in Funny decisively re- create this file
------ For reference only ------------ ---------------------------
you use the vi command to open to see if there are special character appears .
------ For reference only -------------------------------------- -

no special characters , is less a closing tag , the file should have a problem , I created a file, copy the contents of the past, on ok
------ For reference only - --------------------------------------
 Well

没有评论:

发表评论