Dear Miliser
Saya ditugaskan migrasikan database oracle dari mesin yang ada
websphere-nya. Tomcat dan apache sudah di set, saya pakai Tomcat 5.5 dan
Apache 2 di OS OpenSuSe 10 64bit. Jalankan aplikasi contoh2 bawaan
Tomcat sudah bisa dilakukan (servlet JSP, dll..). Paket .war dari
websphere juga sudah bisa di deploy melalui menu manager di Tomcat. JNDI
sudah diset juga sesuai dengan settingan di Websphere, melalui menu
Admin di Tomcat. restart Tomcat juga sudah. Database Oracle juga sudah
di buat sesuai dengan mesin yang lama, tnsping dan lsnrctl sudah bisa
berjalan baik.
Tapi ketika saya jalankan aplikasi yang sudah di deploy, saya
mendapatkan error spt ini dari log catalina.out:
[2006-01-07 18:35:29,690] ERROR com.saf.dao.BaseDAO - BaseDAO static
block: com.ibatis.db.sqlmap.SqlMapException: Error while building SqlMap.
Cause:
com.ibatis.db.sqlmap.SqlMapException: There was an error configuring
JndiDataSourceDaoTransactionPool. Cause:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context <---- Caused by: javax.naming.NameNotFoundException: Name jdbc
is not bound in this Context ----> <---- Caused by:
com.ibatis.db.sqlmap.SqlMapException: There was an error configuring
JndiDataSourceDaoTransactionPool. Cause:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context <---- Caused by: javax.naming.NameNotFoundException: Name jdbc
is not bound in this Context ----> ---->
[2006-01-07 18:35:43,349] DEBUG org.apache.struts.util.RequestUtils -
Get module name for path /login.do
[2006-01-07 18:35:43,349] DEBUG org.apache.struts.util.RequestUtils -
Module name found: default
[2006-01-07 18:35:43,350] DEBUG
org.apache.struts.action.RequestProcessor - Processing a 'GET' for path
'/login'
[2006-01-07 18:35:43,350] DEBUG org.apache.struts.util.RequestUtils -
Looking for ActionForm bean instance in scope 'request' under attribute
key 'loginForm'
[2006-01-07 18:35:43,350] DEBUG org.apache.struts.util.RequestUtils -
Creating new DynaActionForm instance of type
'org.apache.struts.validator.DynaValidatorForm'
[2006-01-07 18:35:43,350] DEBUG org.apache.struts.util.RequestUtils -
--> DynaActionForm[dynaClass=loginForm,password=,userCode=,loginButton=]
[2006-01-07 18:35:43,350] DEBUG
org.apache.struts.action.RequestProcessor - Storing ActionForm bean
instance in scope 'request' under attribute key 'loginForm'
[2006-01-07 18:35:43,350] DEBUG
org.apache.struts.action.RequestProcessor - Populating bean properties
from this request
[2006-01-07 18:35:43,350] DEBUG org.apache.commons.beanutils.BeanUtils
-
BeanUtils.populate(DynaActionForm[dynaClass=loginForm,password=,userCode=,loginButton=],
{})
[2006-01-07 18:35:43,350] DEBUG
org.apache.struts.action.RequestProcessor - Looking for Action
instance for class com.saf.action.LoginAction
[2006-01-07 18:35:43,350] DEBUG
org.apache.struts.action.RequestProcessor - Creating new Action instance
Kemudian pada tampilan webnya setelah diakses, ada error sbb:
javax.servlet.ServletException: Servlet execution threw an exception
com.saf.utility.NoCacheFilter.doFilter(NoCacheFilter.java:46)
root cause
java.lang.NoClassDefFoundError
com.saf.dao.usm.UsmService.<init>(UsmService.java:21)
com.saf.dao.usm.UsmService.getInstance(UsmService.java:26)
com.saf.action.LoginAction.<init>(LoginAction.java:46)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
java.lang.Class.newInstance0(Class.java:308)
java.lang.Class.newInstance(Class.java:261)
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.saf.utility.NoCacheFilter.doFilter(NoCacheFilter.java:46)
ada yang tahu permasalahannya dimana..?
saya sudah googling, dan mengikuti petunjuk menambahkan context.xml atau
tag context di server.xml, namun masih belum bisa..
saya bukan programmernya, hanya ditugasi migrasi. Apakah ada error di
syntax programmingnya..? (programmernya bilang, mslh ada di settingan
tomcatnya.. tp saya sudah coba belum beres2 juga..) :-(
Terimakasih atas jawabannya
-singgahpai-
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis