2012-04-18 9 views
0

私はMaven-spring-hibernateをモジュラーアプローチで使用しています。異なるコンポーネント用のJARファイルがあり、 。Maven Webアプリケーション - sysdeoプラグインが.propertiesを取得しないことによりTomcatを実行しています

次のJARには、プロパティファイル(database.properties、ユーザー名/パスワード)を含むMETA-INFフォルダが含まれています。

common-model-1.0.0.jar 

他にもデータベース接続を使用するコンポーネントJARもあります。

common-service-1.0.0.jar 
master-1.0.0.jar 
master-model-1.0.0.jar 
master-service-1.0.0.jar 

コマンドライン(catalina start/stop)から起動したTomcatにデプロイすると、アプリケーションは完全に動作します。

しかし、私はそれが私が見逃している可能性のあるものの設定があります

Could not obtain connection to query metadata java.sql.SQLException: ORA-01005: null password given; logon denied 

次の例外をスローするプラグインSysdeoのEclipse Tomcatを使用してEclipseの内部からTomcatを実行しますか?

私はようやく私の問題が解決され

09:27:47,765 DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [dev.username] 
09:27:47,765 DEBUG [org.springframework.jndi.JndiPropertySource] - JNDI lookup for name [dev.username] threw NamingException with message: Name dev.username is not bound in this Context. Returning null. 
09:27:47,765 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.username' in [systemProperties] 
09:27:47,765 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.username' in [systemEnvironment] 
09:27:47,765 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Could not find key 'dev.username' in any property source. Returning [null] 
09:27:47,765 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.username' in [localProperties] 
09:27:47,766 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Found key 'dev.username' in [localProperties] with type [String] and value 'cms_ownr' 
09:27:47,766 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [environmentProperties] 
09:27:47,766 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [servletConfigInitParams] 
09:27:47,766 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [servletContextInitParams] 
09:27:47,766 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [jndiProperties] 
09:27:47,766 DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [java:comp/env/dev.password] 
09:27:47,766 DEBUG [org.springframework.jndi.JndiLocatorDelegate] - Converted JNDI name [java:comp/env/dev.password] not found - trying original name [dev.password]. javax.naming.NameNotFoundException: Name dev.password is not bound in this Context 
09:27:47,766 DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [dev.password] 
09:27:47,766 DEBUG [org.springframework.jndi.JndiPropertySource] - JNDI lookup for name [dev.password] threw NamingException with message: Name dev.password is not bound in this Context. Returning null. 
09:27:47,767 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [systemProperties] 
09:27:47,767 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [systemEnvironment] 
09:27:47,767 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Could not find key 'dev.password' in any property source. Returning [null] 
09:27:47,767 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Searching for key 'dev.password' in [localProperties] 
09:27:47,767 DEBUG [org.springframework.core.env.PropertySourcesPropertyResolver] - Found key 'dev.password' in [localProperties] with type [String] and value 'cms_ownr' 
+0

classpathからdatabase.propertiesファイルを取得しようとしているところまでデバッグモードで実行できますか?これはnullを返しますか? –

+0

質問をログメッセージで更新しました。 –

答えて

0

次見つかっJPAログをデバッグします。

私は、STSは、私はSysdeo tomcatPluginV32.zip

今私は、最新のSysdeo tomcatPluginV33.zipをインストールし、それが今で正常に動作を使用していたのTomcat 6.xので

日食がありました。

関連する問題