DefaultServlet?
I've figured out how to manipulate the welcome-file-list tag in web.xml for tomcat to bring up the desired web page if someone hits my site without specifying a page (e.g. www.mysite.com will take them to www.mysite.com/index.html).
But, my index page has active content so when someone visits my site at www.mysite.com I really want them to hit a servlet first, and have that servlet get some information from the database then redirect to my default.jsp page.
I don't know how to do that though. When I tried to define a "MyDefaultServlet" servlet and url-map it to "/" I get all kinds of errors when I start up tomcat.
Any help, advice, pushes in the right direction will be greatly appreciated. In the mean time I'll be trying to find the answer at Apache. Thanks.
What I used in the past is to place a index.html file in the root folder. The index.html does not contain anything besides a JS redirect to my app:
<script language="JavaScript">
location.replace("bla/Login");
</script>
Maybe not the most elegant approach but it works.
Similar Messages
-
DefaultServlet bug? forwarding to static content under WEB-INF
I've encountered what seems to be a bug in the DefaultServlet in WebServer 7.0u2, when trying to do a requestDispatch->forward to static content (e.g., a .png file) under WEB-INF. In general, I can forward into content under WEB-INF, and my servlet works fine when forwarding to dynamic content under WEB-INF (e.g., a .jsp file), but when I try to forward to static content, a 404 error is sent. The same servlet also works fine if I put the static content outside of WEB-INF. In summary:
forwarding to /WEB-INF/foo.png responds with error 404 (even though the content exists)
forwarding to /WEB-INF/foo.jsp works fine
forwarding to /other-dir/foo.png works fine
I'm baffled as to why I can't forward to static content under WEB-INF. I have a very simple web.xml file, and no suffix-based mappings, so the only servlet that should be responding to the forward is the servlet container's DefaultServlet. Is there some bug in DefaultServlet? Am I misunderstanding something?pl. upgrade to latest update (web server 7 u5 as of now) and see if your problem is still reproduced.
-
Hello,
My server keeps doing errors like,
HTTP Status 404 - Servlet default is not available
type Status report
message Servlet default is not available
description The requested resource (Servlet default is not available) is not available.
Apache Tomcat/5.5.9
Would you let me know what wrong with Defaultservlet. I set it up with
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
But it doesnt work. Pls help me. Where is the jar with Defaultservlet.
Thanks,
TonyThanks!
Would you let me know how to set it up. I know it should be working by default. However, I tried times with reinstallation. Still nothing comes out. This is my servlet mapping within web.xml
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Tony -
Error in starting weblogic commerce server on Win2000
I downloaded the evaluation release of Weblogic Commerce 3.1 and th licence,
and installed it on Windows 2000 Professional,
I have a Weblogic Application Server 5.1 installed
the server did not start and gave an error, please help us as to what the
problem is and how to get it running.
=========== Error Message ===============
JAVA_CLASSPATH IS
C:\jdk\lib\tools.jar;C:\weblogic\lib\weblogic510sp6boot.jar;C:
\weblogic\classes\boot
WEBLOGIC_CLASSPATH IS
C:\weblogic\lib\weblogic510sp6.jar;C:\weblogic\lib\WebLogi
c_RDBMS.jar;C:\weblogic\license;C:\weblogic\classes;C:\weblogic\lib\weblogic
aux.
jar;C:\weblogic\lib\weblogic-tags-510.jar;C:\WebLogicCommerceServer3.1\licen
se;C
:\WebLogicCommerceServer3.1\classes;C:\WebLogicCommerceServer3.1\lib\rules.j
ar;C
:\WebLogicCommerceServer3.1\lib\jrulesserviceprovider.jar;C:\WebLogicCommerc
eSer
ver3.1\deploy\bmp\classes;C:\WebLogicCommerceServer3.1\eval\win32\Taxware\cl
asse
s;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;C:\weblogic\eval\cloudscape
\lib
\tools.jar;C:\weblogic\eval\cloudscape\lib\client.jar
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <WebLogicServer> Read global
properties C:\WebLogicCommerceServer3.1\weblogic.propertie
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <WebLogicServer> No per-server
properties files found
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Logging> FileLogger initialized.
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <WebLogicServer> ************
WebLogic Server (5.1.0 04/03/2000 17:13:23 #66825) 'serve
:\WebLogicCommerceServer3.1
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <WebLogicServer> ************ (c)
1995, 1996, 1997, 1998 WebLogic, Inc., (c) 1999 BEA S
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.swapIntervalSecs', current value: '10'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.ConnectionConsumer', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.enforceClientCert', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.login.readTimeoutMillis', current value: '5000'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.propertiesFile', current value: 'C:\WebLogicCo
.properties'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.bindAddr', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadCheckSecs', current value: '-1'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.authRealmName', current value: 'WebLogic Server
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.SSLHandler.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.startupFailureIsFatal', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.http.keepAliveSecs', current value: '60'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.servlet.classpath', current value: ''
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientPingSecs', current value: '45'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.defaultWebApp', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreDir', current value: 'se
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.perServerPropertiesFile', current value: 'null
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.queue', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.invalidationIntervalSecs', current valu
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.persistence', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.user.enable', current value: 'tr
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.rmi.dgc.callSystemGC', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.enableEvents', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.maxTransactedDurableSubscribers', current value:
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.weight', current value: '100'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.connectionPoolArgs', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.disableGuest', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.persistentStorePool', current value: ''
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.URLAclFile', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.percentSocketReaders', current value: '33'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.zac.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jdbc.TXDataSource', current value: '[weblogic.jdbc.TX
.jts.commercePool=commercePool ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.DNSName', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.ejb.deploy', current value: 'C:/WebLogicCommerceServe
C:/WebLogicCommerceServer3.1/lib/axiom.jar,C:/WebLogicCommerceServer3.1/lib/
ebusiness.jar,C:/WebLogicCommerceServer3.1/lib/adv
erceServer3.1/lib/bridge.jar,C:/WebLogicCommerceServer3.1/lib/document.jar,C
:/WebLogicCommerceServer3.1/lib/p13nadvisor.jar,C:
.1/lib/portal.jar,C:/WebLogicCommerceServer3.1/lib/ruleeditorbeans.jar,C:/We
bLogicCommerceServer3.1/lib/rulesservice.jar,C:/We
lib/servicemgr.jar'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.workspace.showUserKeysOnly', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.allow', current value: '[weblogic.allow.reserve.weblo
commercePool=everyone
weblogic.allow.execute.weblogic.servlet.Certificate=system
weblogic.allow.execute.weblogic.servlet.Admin
low.execute.weblogic.servlet.AdminLicense=system
weblogic.allow.execute.weblogic.servlet.AdminConnections=system
weblogic.allo
et.classes=everyone
weblogic.allow.execute.weblogic.servlet.AdminClients=system
weblogic.allow.execute.weblogic.servlet.AdminV
llow.execute.weblogic.servlet.AdminMain=system
weblogic.allow.execute.weblogic.servlet.AdminThreads=system
weblogic.allow.rese
tionPool.docPool=everyone weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.execute.weblogic.servlet.AdminEvents=
ite.weblogic.workspace=everyone
weblogic.allow.execute.weblogic.servlet.AdminJDBC=system
weblogic.allow.execute.weblogic.servl
ow.execute.weblogic.servlet.AdminProps=system
weblogic.allow.execute.weblogic.servlet.ConsoleHelp=everyone ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.listenPort', current value: '7501'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.allow', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModify', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.io.fileSystem', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.startupArgs', current value: '[weblogic.system
p=TraceFlags=E ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jdbc.enableLogFile', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookie.domain', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.debug', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.clustering.enable', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.shutdownArgs', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.rmi.startupClass', current value: '[weblogic.rmi.star
blogic.rmi.internal.RegistryImpl ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.keepAlive.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.jdbc.connTimeoutSecs', current value: '
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.name', current value: 'server'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.helpPageURL', current value: 'http://www.weblo
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.key.server', current value: 'C:\WebLogicComm
okey.pem'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.rmi.startupArgs', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.topicSessionPool', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.logFileBufferKBytes', current value: '8'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.home', current value: 'C:\weblogic'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.documentRoot', current value: 'public_html'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModifyRecursive', current value
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.errorPage', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority3', current value: 'nul
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.administrativePort', current value: '0'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority2', current value: 'nul
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.startupClass', current value: '[weblogic.syste
tup=com.beasys.commerce.foundation.plugin.weblogic.TraceStartup
weblogic.system.startupClass.KeyBootstrap=com.beasys.commerce.
otstrap
weblogic.system.startupClass.serviceManager=com.beasys.commerce.servicemanag
er.CommerceServiceManagerStartup ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.nonPrivGroup', current value: 'nobody'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.multicastTTL', current value: '1'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.home', current value: 'C:\WebLogicCommerceServ
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.https.keepAliveSecs', current value: '120'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jndi.transportableObjectFactories', current value: ''
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.certificateCacheSize', current value: '3'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientTimeoutSecs', current value: '4
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jdbc.DataSource', current value: '[weblogic.jdbc.Data
l.docPool=docPool ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.nonPrivUser', current value: 'nobody'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.zac.publishRoot', current value: 'exports'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.defaultLoadAlgorithm', current value: 'round-
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.enable', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.administrator.phone', current value: '(None)'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jdbc.connectionPool', current value: '[weblogic.jdbc.
rl=jdbc:beasys:docmgmt:com.beasys.commerce.axiom.document.ref.RefDocumentPro
vider,driver=com.beasys.commerce.axiom.document.jd
=0,initialCapacity=10,maxCapacity=20,capacityIncrement=1,allowShrinking=true
,shrinkPeriodMins=15,refreshMinutes=5,props=jdbc.u
mmercePool;jdbc.isPooled=true;weblogic.t3.waitForConnection=true;weblogic.t3
.waitSecondsForConnection=999999999999;weblogic.jt
onSecs=999999999999;docBase=C:/WebLogicCommerceServer3.1/dmsBase;schemaXML=C
:/WebLogicCommerceServer3.1/dmsBase/doc-schema.xml
nPool.commercePool=url=jdbc:cloudscape:Commerce;create=true;upgrade=true,dri
ver=COM.cloudscape.core.JDBCDriver,loginDelaySecs=
Capacity=20,capacityIncrement=1,allowShrinking=true,shrinkPeriodMins=15,test
ConnsOnReserve=true,testTable=WLCS_IS_ALIVE,refres
ne;password=none;server=none;weblogic.t3.waitForConnection=true;weblogic.t3.
waitSecondsForConnection=999999999999,weblogic.jts
nSecs=999999999999,verbose=false ]'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.debug', current value: 'false'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jdbc.logFileName', current value: 'C:\WebLogicCommerc
og'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.dnsName', current value: 'null'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.requireAuthentication', current value: 'true'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.multicastAddress', current value: ''
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.defaultSecureProtocol', current value: 't3s'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.auth.enable', current value: 'tr
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.executeThreadCount', current value: '15'
Fri Dec 01 11:04:39 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookie.comment', current value: 'Weblog
ng Cookie'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.tableNamePrefix', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.connectionPool', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.shutdownClass', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.defaultServlet', current value: 'file'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.name', current value: 'mycluster'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.defaultProtocol', current value: 't3'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.postTimeoutSecs', current value: '30'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.group', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.caseSensitive', current value: '
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.certificate.server', current value: 'C:\WebL
rver\democert.pem'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.mimeType', current value: '[weblogic.httpd.mime
.wmlscriptc=wmlsc weblogic.httpd.mimeType.application/x-java-vm=class
weblogic.httpd.mimeType.image/gif=gif weblogic.httpd.mim
stream=exe weblogic.httpd.mimeType.text/html=html,htm
weblogic.httpd.mimeType.application/pdf=pdf weblogic.httpd.mimeType.appl
ar weblogic.httpd.mimeType.image/jpeg=jpeg,jpg
weblogic.httpd.mimeType.image/vnd.wap.wbmp=wbmp
weblogic.httpd.mimeType.applica
tpd.mimeType.text/vnd.wap.wmlscript=wmls
weblogic.httpd.mimeType.text/vnd.wap.wml=wml
weblogic.httpd.mimeType.application/vnd.
ttpd.mimeType.application/x-java-serialized-object=ser ]'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.webApp', current value: '[weblogic.httpd.webApp
rceServer3.1/server/webapps/examples/portal/portal.war
weblogic.httpd.webApp.tools=C:/WebLogicCommerceServer3.1/server/webapps
c.httpd.webApp.wlcs=C:/WebLogicCommerceServer3.1/server/webapps/wlcs/ ]'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.minPasswordLen', current value: '8'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.connectionFactoryArgs', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreType', current value: 'f
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cacheEntries', current value: '1024'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.certificate.authority', current value: 'C:\W
\server\ca.pem'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.resource.MailSession', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookie.maxAgeSecs', current value: '-1'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.login.readTimeoutMillisSSL', current value: '25000'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.cluster.enable', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.SSL.ciphersuites', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.indexFiles', current value: 'index.html,index.h
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.password', current value: '[weblogic.password.system=
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.enableLogFile', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.enableReverseDNSLookups', current value: 'fals
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.indexDirectories', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.maxLogFileSize', current value: '1024'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.logFile', current value: 'C:\WebLogicCommerceS
.log'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.timeoutSecs', current value: '3600'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.logFileFormat', current value: 'common'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.perClusterPropertiesFile', current value: 'nul
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.key.export.lifespan', current value: '500'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.CORBA.connectionPool', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'java.system.property', current value: '[java.system.property.c
/WebLogicCommerceServer3.1/db/data ]'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.logFileName', current value: 'C:\WebLogicCommer
s.log'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.defaultMimeType', current value: 'text/plain'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.debug.httpd.servlet', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.connectionFactoryName', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.SSLListenPort', current value: '7502'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.URLResource', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookie.name', current value: 'WebLogicS
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.quiescent', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.register', current value: '[weblogic.httpd.regi
sys.commerce.foundation.flow.FlowManager
weblogic.httpd.register.AdminProps=admin.AdminProps
weblogic.httpd.register.classes=w
hServlet weblogic.httpd.register.AdminEvents=admin.AdminEvents
weblogic.httpd.register.AdminMain=admin.AdminMain weblogic.http
gic.servlet.ServerSideIncludeServlet
weblogic.httpd.register.servletimages=weblogic.servlet.internal.InternalImag
eServlet webl
oleHelp=weblogic.servlet.ClasspathServlet
weblogic.httpd.register.AdminJDBC=admin.AdminJDBC
weblogic.httpd.register.ShowDocSer
.content.ShowDocServlet
weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
weblogic.httpd.register.AdminCaptureRootCA=a
weblogic.httpd.register.AdminRealm=admin.AdminRealm
weblogic.httpd.register.AdminLicense=admin.AdminLicense weblogic.httpd.reg
certificate weblogic.httpd.register.AdminConnections=admin.AdminConnections
weblogic.httpd.register.AdminClients=admin.AdminCl
ister.file=weblogic.servlet.FileServlet
weblogic.httpd.register.AdminVersion=admin.AdminVersion
weblogic.httpd.register.authen
.ClientAuthenticationServlet
weblogic.httpd.register.AdminThreads=admin.AdminThreads ]'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA4', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA3', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.clientRootCA2', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookies.enable', current value: 'true'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.servlet.extensionCaseSensitive', current value:
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.group.enable', current value: 't
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.nativeIO.enable', current value: 'true'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.rmi.enableServerSideStubs', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.cookie.path', current value: '/'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.session.URLRewriting.enable', current value: 't
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.enableSetUID', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.acl.enable', current value: 'tru
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.topic', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.administrator.name', current value: 'WebLogic Adminis
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.jms.queueSessionPool', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.ssl.enable', current value: 'true'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.administrator.location', current value: '(None)'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.enableSetGID', current value: 'false'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.initArgs', current value: '[weblogic.httpd.init
Filename=/weblogic/admin/help/NoContent.html
weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=0,packagePrefix=jsp,compileCo
mmand
gDir=C:/WebLogicCommerceServer3.1/server/classfiles,verbose=false,keepgenera
ted=false weblogic.httpd.initArgs.file=defaultFile
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.administrator.email', current value: 'root'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.enableConsole', current value: 'true'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.security.realm.cache.perm.enable', current value: 'tr
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.system.user', current value: 'system'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <Config> Property name:
'weblogic.httpd.charsets', current value: 'null'
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> awt.toolkit =
sun.awt.windows.WToolkit
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> cloudscape.system.home
= C:/WebLogicCommerceServer3.1/db/data
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> commerce.properties =
C:\WebLogicCommerceServer3.1\weblogiccommerce.prop
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> file.encoding = Cp1252
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> file.encoding.pkg =
sun.io
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> file.separator = \
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.awt.fonts =
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.awt.graphicsenv =
sun.awt.Win32GraphicsEnvironment
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.awt.printerjob =
sun.awt.windows.WPrinterJob
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.class.path =
C:\jdk\lib\tools.jar;C:\weblogic\lib\weblogic510sp6boo
s\boot
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.class.version =
46.0
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.compiler =
symcjit
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.ext.dirs =
C:\jdk\jre\lib\ext
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.home = C:\jdk\jre
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.io.tmpdir =
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.library.path =
C:\jdk\bin;.;C:\WINNT\System32;C:\WINNT;C:\WINNT\sys
System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\Microsoft Visual Studio\Common\MSDev98\Bin;
ft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual
Studio\VC98\bin;C:\jdk\bin;C:\weblogic\bin;C:\weblogic\bin;C:\
1\eval\win32\CyberCash\bin;C:\WebLogicCommerceServer3.1\eval\win32\Taxware\b
in
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.protocol.handler.pkgs = weblogic.utils|weblogic.utils
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.security.manager
=
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.security.policy =
C:\weblogic\weblogic.policy
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.specification.name = Java Platform API Specification
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.specification.vendor = Sun Microsystems Inc.
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.specification.version = 1.2
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vendor = Sun
Microsystems Inc.
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vendor.url =
http://java.sun.com/
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.version = 1.2.2
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vm.info = build
JDK-1.2.2-001, native threads, symcjit
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vm.name = Classic
VM
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.vm.specification.name = Java Virtual Machine Specification
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.vm.specification.vendor = Sun Microsystems Inc.
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
java.vm.specification.version = 1.0
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vm.vendor = Sun
Microsystems Inc.
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> java.vm.version =
1.2.2
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> line.separator =
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> os.arch = x86
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> os.name = Windows NT
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> os.version = 5.0
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> path.separator = ;
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> pipeline.properties =
C:\WebLogicCommerceServer3.1\pipeline.properties
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> sun.boot.class.path =
C:\jdk\jre\lib\rt.jar;C:\jdk\jre\lib\i18n.jar;C:\j
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> sun.boot.library.path
= C:\jdk\jre\bin
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props>
sun.io.unicode.encoding = UnicodeLittle
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> user.dir =
C:\WebLogicCommerceServer3.1
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> user.home =
C:\Documents and Settings\Administrator
Fri Dec 01 11:04:40 GMT+05:30 2000:<I> <System Props> user.language = en
Fri Dec 01 11:04:40 GMT+05:30 2Hello Muffy,
It looks like you do not have WLS 5.1 service pack 6 installed correctly. I
say this because I do not see the sp6 message at the top of your log and I saw
this message in your log:
org.xml.sax.SAXParseException: Element "weblogic-enterprise-bean" allows no
further input; "transaction-isolation" is not allowed
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com -
Unable to debug any application after upgrading to Reef Shark and Update 6
Hi,
Since I upgraded to Reef Shark and consequently also installed the update 6 I can't access the deployment server.
None of the applications show up in the broswer, nor does the admin-console for the server.
I get the following exceptions in the browser window when I want to debug my application:
javax.servlet.ServletException: com.sun.security.auth.PolicyFile
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:218)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessController.doPrivileged(Native Method)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
java.lang.IncompatibleClassChangeError: com.sun.security.auth.PolicyFile
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:219)
javax.security.auth.Policy$3.run(Policy.java:215)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Policy.getPolicyNoCheck(Policy.java:209)
javax.security.auth.Policy.getPolicy(Policy.java:179)
javax.security.auth.SubjectDomainCombiner$2.run(SubjectDomainCombiner.java:178)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:174)
java.security.AccessControlContext.goCombiner(AccessControlContext.java:386)
java.security.AccessControlContext.optimize(AccessControlContext.java:310)
java.security.AccessController.checkPermission(AccessController.java:400)
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
java.lang.SecurityManager.checkRead(SecurityManager.java:863)
java.io.File.lastModified(File.java:771)
org.apache.naming.resources.FileDirContext$FileResourceAttributes.getLastModifiedDate(FileDirContext.java:1123)
org.apache.naming.resources.ResourceAttributes.get(ResourceAttributes.java:706)
org.apache.naming.resources.DirContextURLConnection.getLastModified(DirContextURLConnection.java:211)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:474)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:450)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:262)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessController.doPrivileged(Native Method)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)And when start the admin-console, the browser window stays empty, but this is the exception-trace from the server-log:
[#|2005-02-12T00:21:44.890+0100|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|ApplicationDispatcher[/asadmin] Servlet.service() for servlet default threw exception
java.lang.IncompatibleClassChangeError: com.sun.security.auth.PolicyFile
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at javax.security.auth.Policy$3.run(Policy.java:215)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Policy.getPolicyNoCheck(Policy.java:209)
at javax.security.auth.Policy.getPolicy(Policy.java:179)
at javax.security.auth.SubjectDomainCombiner$2.run(SubjectDomainCombiner.java:178)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:174)
at java.security.AccessControlContext.goCombiner(AccessControlContext.java:386)
at java.security.AccessControlContext.optimize(AccessControlContext.java:310)
at java.security.AccessController.checkPermission(AccessController.java:400)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
at java.io.File.lastModified(File.java:771)
at org.apache.naming.resources.FileDirContext$FileResourceAttributes.getCreationDate(FileDirContext.java:1097)
at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.set(DefaultServlet.java:2399)
at org.apache.catalina.servlets.DefaultServlet$ResourceInfo.<init>(DefaultServlet.java:2331)
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:884)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:748)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:208)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
at java.lang.Thread.run(Thread.java:534)
|#]
[#|2005-02-12T00:21:44.890+0100|WARNING|sun-appserver-pe8.0.0_01|org.apache.catalina.authenticator.FormAuthenticator|_ThreadID=14;|Unexpected error forwarding to login page
javax.servlet.ServletException: com.sun.security.auth.PolicyFile
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:286)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:208)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
at java.lang.Thread.run(Thread.java:534)
|#]I have no clue as to what is causing this problem. Any help is highly appreciated.
IwanHi Iwan,
From JDK 1.4 the com.sun.security.auth.PolicyFile class has been deprecated and replaced by sun.security.provider.PolicyFile. Could this be the reason?
I found this info at the following URL. Maybe this will help you in some way: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/security/jaas/spec/com/sun/security/auth/PolicyFile.html
Cheers :-)
Creator Team -
Error Creating New Location in Business Rules
I have installed System 11.1.1.x EAS Web on Windows / WebLogic. When I log into EAS as 'Admin' I can log into Business Rules and Create a New Location. When I log in as any other user, I get a message that "Business Rules Login Successful" but when I try to create a New Location I get and error. I get to the select location screen. When I expand (+)Essbase, I see my Essbase Server. When I expand my Essbase Server, I get this error message:
Error Connecting to Essbase Server <server name>
Detail: Exception occurred. Please check your log files for details.
hbrserver.log:
2010-01-14 10:02:44,265 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.util.UserServerInfoXMLParser - Error while reading file server.xml
2010-01-14 10:02:44,265 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.core.UserManagerCmdListener - EAS error exporting HBR data (xto.exportXml) to the xml transfer object.
2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Cannot sign on user. Invalid sign on attempt.
com.essbase.api.base.EssException: Cannot sign on user. Invalid sign on attempt.
at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
at com.essbase.api.session.Essbase.signOn(Unknown Source)
at com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement.connect(Unknown Source)
at com.hyperion.hbr.plugin.essbase.EssbaseMetadata.getChild(Unknown Source)
at com.hyperion.hbr.plugin.essbase.EssbaseMetadata.connect(Unknown Source)
at com.hyperion.hbr.core.MetadataCmdListener.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Error connecting to Essbase server <my essbase server>.
2010-01-14 10:02:44,296 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadata - Error connecting to Essbase server <my essbase server>.
hbrclient.log:
2010-01-13 18:24:45,883 WARN AWT-EventQueue-0 com.hyperion.hbr.core.MetadataManagerServerRemote - Cannot retrieve connected root element for Essbase/<my essbase server>.
2010-01-13 18:29:41,114 WARN AWT-EventQueue-0 com.hyperion.hbr.core.MetadataManagerServerRemote - Cannot retrieve connected root element for Essbase/<my essbase server>John, Thanks for the response.
The user has all provisions in SS for Essbase and Applications (Server Access as well as Application Administrator). I can explore all the Essbase applications in EAS.
I have double checked all the provisions and refershed security in EAS. I am still getting the same error.
Here are a few more interesting things that I have noticed from debugging. The only account with the ability to create "New Locations" or Associate a Business Rule with an Essbase Application is "admin". If I deprovision "admin" in SS, I can no longer create New Locations. If I add the provisions back for "admin" then I can create New Locations. So, that tells me that BR is looking at SS for provisioning of "admin".
Here is another interesting message in hbrserver.log.
2010-01-14 11:42:34,377 WARN [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving Indirect Users and Groups.
I get the above message when I 'Right Mouse' on Administration under Business Rules and select "Refresh User List".
Any additional thoughts?
Edited by: user3086671 on Jan 14, 2010 9:02 AM -
Problem in jdbc-tomcat-mysql connection
hi everybody
i m in serious problem since last 15-20 days. i m trying hard to make the connection jdbc-mysql using tomcat with the help of a jsp test page but every time i am facing almost the similar probems listed below in detail:
to make sure that the jdrivers's .jar (mysql-connector-java-3.1.7-bin.jar) available for such connections working fine i have tried the above said connection without using tomcat....which is working fine...for this i have created a dummy database with a dummy table ..and written some queries in the .java file of my code which upon running inserts the specified values in the defined(dummy) database.
this is the confirmation that the classpath etc..are ok in regard to the mysql-connector-java-3.1.7-bin.jar
now i have placed a copy of this .jar file in to the commons/lib directory of the tomcat web server(which is suppossed to be the place for such external jars)
after doing so i have followed 2 methods :
method 1st:........
i have made aone more jar file from the following .java file....
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class TestSQLLoad
String user = "Not Connected";
String pwd = "no pwd";
int id = -1;
public void init() {
try{
Context ctx = new InitialContext();
if(ctx == null ) {
throw new Exception("Boom - No Context");
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
if (ds != null) {
Connection conn = ds.getConnection();
if(conn != null) {
user = "Got Connection "+conn.toString();
Statement stmt = conn.createStatement();
String q = "select name, password, id from user";
ResultSet rst = stmt.executeQuery(q);
if(rst.next()) {
user=rst.getString(1);
pwd=rst.getString(2);
id = rst.getInt(3);
conn.close();
}catch(Exception e) {
e.printStackTrace();
public String getUser() {
return user;
public String getPassword() {
return pwd;
public int getID()
return id;
after compiling it at the cmd prompt i made a .jar file from the .class of it and named it MySQLLoad.jar...then i placed it also in to the commons/lib directory where the mysql-connector-java-3.1.7-bin.jar was already placed.
then i have changed the server.xml and web.xml files from the conf directory of the tomcat as given here:
server.xml
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<Context path="/testdb" docBase="TOMCAT_HOME/webapps/tomcat-docs/testdb"
debug="5" reloadable="true" crossContext="true" >
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/TestDB"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>10</value>
</parameter>
<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>5</value>
</parameter>
<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>mysql</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/testdb?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>
and the other xml file i.e
web.xml is here:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- ======================== Introduction ============================== -->
<!-- This document defines default values for all web applications -->
<!-- loaded into this instance of Tomcat. As each application is -->
<!-- deployed, this file is processed, followed by the -->
<!-- "/WEB-INF/web.xml" deployment descriptor from your own -->
<!-- applications. -->
<!-- -->
<!-- WARNING: Do not configure application-specific resources here! -->
<!-- They should go in the "/WEB-INF/web.xml" file in your application. -->
<!-- ================== Built In Servlet Definitions ==================== -->
<!-- The default servlet for all web applications, that serves static -->
<!-- resources. It processes all requests that are not mapped to other -->
<!-- servlets with servlet mappings (defined either here or in your own -->
<!-- web.xml file. This servlet supports the following initialization -->
<!-- parameters (default values are in square brackets): -->
<!-- -->
<!-- debug Debugging detail level for messages logged -->
<!-- by this servlet. [0] -->
<!-- -->
<!-- input Input buffer size (in bytes) when reading -->
<!-- resources to be served. [2048] -->
<!-- -->
<!-- listings Should directory listings be produced if there -->
<!-- is no welcome file in this directory? [true] -->
<!-- -->
<!-- output Output buffer size (in bytes) when writing -->
<!-- resources to be served. [2048] -->
<!-- -->
<!-- readonly Is this context "read only", so HTTP -->
<!-- commands like PUT and DELETE are -->
<!-- rejected? [true] -->
<!-- -->
<!-- readmeFile File name to display with the directory -->
<!-- contents. [null] -->
<!-- -->
<!-- For directory listing customization. Checks localXsltFile, then -->
<!-- globalXsltFile, then defaults to original behavior. -->
<!-- -->
<!-- localXsltFile Make directory listings an XML doc and -->
<!-- pass the result to this style sheet residing -->
<!-- in that directory. This overrides -->
<!-- globalXsltFile[null] -->
<!-- -->
<!-- globalXsltFile Site wide configuration version of -->
<!-- localXsltFile This argument is expected -->
<!-- to be a physical file. [null] -->
<!-- -->
<!-- -->
<servlet>
<servlet-name>default</servlet-name>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/TestDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- The "invoker" servlet, which executes anonymous servlet classes -->
<!-- that have not been defined in a web.xml file. Traditionally, this -->
<!-- servlet is mapped to the URL pattern "/servlet/*", but you can map -->
<!-- it to other patterns as well. The extra path info portion of such a -->
<!-- request must be the fully qualified class name of a Java class that -->
<!-- implements Servlet (or extends HttpServlet), or the servlet name -->
<!-- of an existing servlet definition. This servlet supports the -->
<!-- following initialization parameters (default values are in square -->
<!-- brackets): -->
<!-- -->
<!-- debug Debugging detail level for messages logged -->
<!-- by this servlet. [0] -->
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- The JSP page compiler and execution servlet, which is the mechanism -->
<!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
<!-- is mapped to the URL pattern "*.jsp". This servlet supports the -->
<!-- following initialization parameters (default values are in square -->
<!-- brackets): -->
<!-- -->
<!-- checkInterval If development is false and checkInterval is -->
<!-- greater than zero, background compilations are -->
<!-- enabled. checkInterval is the time in seconds -->
<!-- between checks to see if a JSP page needs to -->
<!--Look at the URl below:
How to connect to Microsoft SQL server with Type 4 JDBC driver
http://www.java-tips.org/content/view/615/29/ -
File upload abort after long time
Hi,
I am trying to upload big files to individual table with BLOB column. During upload process after long time approx. 2h I get the following error message:
[#|2012-08-01T19:03:01.667+0200|WARNING|sun-appserver2.1|java.lang.Class|_ThreadID=27;_ThreadName=httpSSLWorkerThread-8082-2;_Reques
tID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:236)
java.io.IOException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:236)
at oracle.jdbc.driver.OracleBlobOutputStream.write(OracleBlobOutputStream.java:151)
at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:296)
at oracle.dbtools.apex.utilities.StreamCopy.drain(StreamCopy.java:43)
at oracle.dbtools.apex.utilities.StreamCopy.drain(StreamCopy.java:30)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.getBlob(ApexFileLoader.java:207)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.processApexFileUtil(ApexFileLoader.java:167)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.processFile(ApexFileLoader.java:55)
at oracle.dbtools.apex.hooks.ProcessorRegistry.fileUploadPreProcess(ProcessorRegistry.java:94)
at oracle.dbtools.apex.FileUpload.loadFiles(FileUpload.java:52)
at oracle.dbtools.apex.ModApex.doPost(ModApex.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at oracle.dbtools.rt.web.HttpEndpointBase.defaultServlet(HttpEndpointBase.java:133)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.sql.SQLTimeoutException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
at oracle.jdbc.driver.T4C8TTILob.processError(T4C8TTILob.java:789)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
at oracle.jdbc.driver.T4C8TTILob.write(T4C8TTILob.java:178)
at oracle.jdbc.driver.T4CConnection.putBytes(T4CConnection.java:2412)
at oracle.sql.BLOB.setBytes(BLOB.java:881)
at oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:228)
... 43 more
|#]
[#|2012-08-01T19:03:01.743+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
init: # headers=47
declare nm owa.vc_arr := ?;
vl owa.vc_arr := ?;
begin
owa.init_cgi_env( ?, nm, vl );
htp.init; htp.HTBUF_LEN := 63;
? := sys_context('USERENV','SID');
end;
INIT FAILED:The connection is closed: The connection is closed|#]
[#|2012-08-01T19:03:01.743+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
nm(1) := 'accept';
vl(1) := 'text/html, application/xhtml+xml, */*';
nm(2) := 'referer';
vl(2) := 'http://degtlun1118.server.arvato-systems.de:8082/apex/f?p=108:19:151527714221001::NO';
nm(3) := 'accept-language';
vl(3) := 'de-DE';
nm(4) := 'user-agent';
vl(4) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
nm(5) := 'content-type';
vl(5) := 'multipart/form-data; boundary=---------------------------7dc10a1f5001c';
nm(6) := 'accept-encoding';
vl(6) := 'gzip, deflate';
nm(7) := 'host';
vl(7) := 'degtlun1118.server.arvato-systems.de:8082';
nm(8) := 'content-length';
vl(8) := '1002208860';
nm(9) := 'connection';
vl(9) := 'Keep-Alive';
nm(10) := 'cache-control';
vl(10) := 'no-cache';
nm(11) := 'cookie';
vl(11) := 'WWV_CUSTOM-F_3062908104789135_108=0B847723FCDB7B7246A26318ACA79A41; LOGIN_USERNAME_COOKIE=scaub01; ORA_WWV_REMEMBER_UN=SC
AUB01:rzsam_irlacc; ORA_WWV_USER_63105666364946=4D6F39F871BFB3EBFBA81249BBC0BF0B';
nm(12) := 'APEX_LISTENER_VERSION';
vl(12) := '1.1.3.243.11.40';
nm(13) := 'DAD_NAME';
vl(13) := '';
nm(14) := 'DOC_ACCESS_PATH';
vl(14) := '';
nm(15) := 'DOCUMENT_TABLE';
vl(15) := '';
nm(16) := 'GATEWAY_IVERSION';
vl(16) := '3';
nm(17) := 'GATEWAY_INTERFACE';
vl(17) := 'CGI/1.1';
nm(18) := 'HTTP_ACCEPT';
vl(18) := 'text/html, application/xhtml+xml, */*';
nm(19) := 'HTTP_ACCEPT_ENCODING';
vl(19) := 'gzip, deflate';
nm(20) := 'HTTP_ACCEPT_LANGUAGE';
vl(20) := 'de-DE';
nm(21) := 'HTTP_ACCEPT_CHARSET';
vl(21) := 'null';
nm(22) := 'HTTP_COOKIE';
vl(22) := 'WWV_CUSTOM-F_3062908104789135_108=0B847723FCDB7B7246A26318ACA79A41; LOGIN_USERNAME_COOKIE=scaub01; ORA_WWV_REMEMBER_UN=SC
AUB01:rzsam_irlacc; ORA_WWV_USER_63105666364946=4D6F39F871BFB3EBFBA81249BBC0BF0B';
nm(23) := 'HTTP_IF_MODIFIED_SINCE';
vl(23) := 'null';
nm(24) := 'HTTP_IF_NONE_MATCH';
vl(24) := 'null';
nm(25) := 'HTTP_HOST';
vl(25) := 'degtlun1118.server.arvato-systems.de:8082';
nm(26) := 'HTTP_ORACLE_ECID';
vl(26) := '';
nm(27) := 'HTTP_PORT';
vl(27) := '8082';
nm(28) := 'HTTP_REFERER';
vl(28) := 'http://degtlun1118.server.arvato-systems.de:8082/apex/f?p=108:19:151527714221001::NO';
nm(29) := 'HTTP_USER_AGENT';
vl(29) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
nm(30) := 'PATH_ALIAS';
vl(30) := ' ';
nm(31) := 'PATH_INFO';
vl(31) := '/wwv_flow.accept';
nm(32) := 'PLSQL_GATEWAY';
vl(32) := 'WebDb';
nm(33) := 'QUERY_STRING';
vl(33) := 'null';
nm(34) := 'REMOTE_ADDR';
vl(34) := '162.49.176.225';
nm(35) := 'REMOTE_USER';
vl(35) := 'APEX_PUBLIC_USER';
nm(36) := 'REQUEST_CHARSET';
vl(36) := 'AL32UTF8';
nm(37) := 'REQUEST_IANA_CHARSET';
vl(37) := 'UTF-8';
nm(38) := 'REQUEST_METHOD';
vl(38) := 'POST';
nm(39) := 'REQUEST_PROTOCOL';
vl(39) := 'http';
nm(40) := 'REQUEST_SCHEME';
vl(40) := 'http';
nm(41) := 'SCRIPT_NAME';
vl(41) := '/apex';
nm(42) := 'SCRIPT_PREFIX';
vl(42) := '';
nm(43) := 'SERVER_NAME';
vl(43) := 'degtlun1118.server.arvato-systems.de';
nm(44) := 'SERVER_PORT';
vl(44) := '8082';
nm(45) := 'SERVER_PROTOCOL';
vl(45) := 'HTTP/1.1';
nm(46) := 'SERVER_SOFTWARE';
vl(46) := 'Mod-Apex';
nm(47) := 'WEB_AUTHENT_PREFIX';
vl(47) := ' ';
|#]
[#|2012-08-01T19:03:01.744+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
The connection is closed: The connection is closed|#]
[#|2012-08-01T19:03:01.744+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
The connection is closed: The connection is closed|#]
I am using Glassfish Server v2.1.1 with APEX Listener v1.1.3.243.11.40
The Timeout parameters for JDBC settings in APEX Listener are default. Thus I would expect to abort earlier to be an issue of JDBC Connection?
Anybody an idea?
Thanks!Appears to be a question for the {forum:id=858} forum.
-
APEX File upload abort after long time
Hi,
I am trying to upload big files to individual table with BLOB column. During upload process after long time approx. 2h I get the following error message:
[#|2012-08-01T19:03:01.667+0200|WARNING|sun-appserver2.1|java.lang.Class|_ThreadID=27;_ThreadName=httpSSLWorkerThread-8082-2;_Reques
tID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:236)
java.io.IOException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:236)
at oracle.jdbc.driver.OracleBlobOutputStream.write(OracleBlobOutputStream.java:151)
at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:296)
at oracle.dbtools.apex.utilities.StreamCopy.drain(StreamCopy.java:43)
at oracle.dbtools.apex.utilities.StreamCopy.drain(StreamCopy.java:30)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.getBlob(ApexFileLoader.java:207)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.processApexFileUtil(ApexFileLoader.java:167)
at oracle.dbtools.apex.hooks.fileUpload.ApexFileLoader.processFile(ApexFileLoader.java:55)
at oracle.dbtools.apex.hooks.ProcessorRegistry.fileUploadPreProcess(ProcessorRegistry.java:94)
at oracle.dbtools.apex.FileUpload.loadFiles(FileUpload.java:52)
at oracle.dbtools.apex.ModApex.doPost(ModApex.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at oracle.dbtools.rt.web.HttpEndpointBase.defaultServlet(HttpEndpointBase.java:133)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.sql.SQLTimeoutException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:382)
at oracle.jdbc.driver.T4C8TTILob.processError(T4C8TTILob.java:789)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:445)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:191)
at oracle.jdbc.driver.T4C8TTILob.write(T4C8TTILob.java:178)
at oracle.jdbc.driver.T4CConnection.putBytes(T4CConnection.java:2412)
at oracle.sql.BLOB.setBytes(BLOB.java:881)
at oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java:228)
... 43 more
2012-08-01T19:03:01.743+0200 WARNING sun-appserver2.1 javax.enterprise.system.stream.err ThreadID=27;ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;
init: # headers=47
declare nm owa.vc_arr := ?;
vl owa.vc_arr := ?;
begin
owa.init_cgi_env( ?, nm, vl );
htp.init; htp.HTBUF_LEN := 63;
? := sys_context('USERENV','SID');
end;
INIT FAILED:The connection is closed: The connection is closed|#]
[#|2012-08-01T19:03:01.743+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
nm(1) := 'accept';
vl(1) := 'text/html, application/xhtml+xml, */*';
nm(2) := 'referer';
vl(2) := 'http://degtlun1118.server.arvato-systems.de:8082/apex/f?p=108:19:151527714221001::NO';
nm(3) := 'accept-language';
vl(3) := 'de-DE';
nm(4) := 'user-agent';
vl(4) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
nm(5) := 'content-type';
vl(5) := 'multipart/form-data; boundary=---------------------------7dc10a1f5001c';
nm(6) := 'accept-encoding';
vl(6) := 'gzip, deflate';
nm(7) := 'host';
vl(7) := 'degtlun1118.server.arvato-systems.de:8082';
nm(8) := 'content-length';
vl(8) := '1002208860';
nm(9) := 'connection';
vl(9) := 'Keep-Alive';
nm(10) := 'cache-control';
vl(10) := 'no-cache';
nm(11) := 'cookie';
vl(11) := 'WWV_CUSTOM-F_3062908104789135_108=0B847723FCDB7B7246A26318ACA79A41; LOGIN_USERNAME_COOKIE=scaub01; ORA_WWV_REMEMBER_UN=SC
AUB01:rzsam_irlacc; ORA_WWV_USER_63105666364946=4D6F39F871BFB3EBFBA81249BBC0BF0B';
nm(12) := 'APEX_LISTENER_VERSION';
vl(12) := '1.1.3.243.11.40';
nm(13) := 'DAD_NAME';
vl(13) := '';
nm(14) := 'DOC_ACCESS_PATH';
vl(14) := '';
nm(15) := 'DOCUMENT_TABLE';
vl(15) := '';
nm(16) := 'GATEWAY_IVERSION';
vl(16) := '3';
nm(17) := 'GATEWAY_INTERFACE';
vl(17) := 'CGI/1.1';
nm(18) := 'HTTP_ACCEPT';
vl(18) := 'text/html, application/xhtml+xml, */*';
nm(19) := 'HTTP_ACCEPT_ENCODING';
vl(19) := 'gzip, deflate';
nm(20) := 'HTTP_ACCEPT_LANGUAGE';
vl(20) := 'de-DE';
nm(21) := 'HTTP_ACCEPT_CHARSET';
vl(21) := 'null';
nm(22) := 'HTTP_COOKIE';
vl(22) := 'WWV_CUSTOM-F_3062908104789135_108=0B847723FCDB7B7246A26318ACA79A41; LOGIN_USERNAME_COOKIE=scaub01; ORA_WWV_REMEMBER_UN=SC
AUB01:rzsam_irlacc; ORA_WWV_USER_63105666364946=4D6F39F871BFB3EBFBA81249BBC0BF0B';
nm(23) := 'HTTP_IF_MODIFIED_SINCE';
vl(23) := 'null';
nm(24) := 'HTTP_IF_NONE_MATCH';
vl(24) := 'null';
nm(25) := 'HTTP_HOST';
vl(25) := 'degtlun1118.server.arvato-systems.de:8082';
nm(26) := 'HTTP_ORACLE_ECID';
vl(26) := '';
nm(27) := 'HTTP_PORT';
vl(27) := '8082';
nm(28) := 'HTTP_REFERER';
vl(28) := 'http://degtlun1118.server.arvato-systems.de:8082/apex/f?p=108:19:151527714221001::NO';
nm(29) := 'HTTP_USER_AGENT';
vl(29) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
nm(30) := 'PATH_ALIAS';
vl(30) := ' ';
nm(31) := 'PATH_INFO';
vl(31) := '/wwv_flow.accept';
nm(32) := 'PLSQL_GATEWAY';
vl(32) := 'WebDb';
nm(33) := 'QUERY_STRING';
vl(33) := 'null';
nm(34) := 'REMOTE_ADDR';
vl(34) := '162.49.176.225';
nm(35) := 'REMOTE_USER';
vl(35) := 'APEX_PUBLIC_USER';
nm(36) := 'REQUEST_CHARSET';
vl(36) := 'AL32UTF8';
nm(37) := 'REQUEST_IANA_CHARSET';
vl(37) := 'UTF-8';
nm(38) := 'REQUEST_METHOD';
vl(38) := 'POST';
nm(39) := 'REQUEST_PROTOCOL';
vl(39) := 'http';
nm(40) := 'REQUEST_SCHEME';
vl(40) := 'http';
nm(41) := 'SCRIPT_NAME';
vl(41) := '/apex';
nm(42) := 'SCRIPT_PREFIX';
vl(42) := '';
nm(43) := 'SERVER_NAME';
vl(43) := 'degtlun1118.server.arvato-systems.de';
nm(44) := 'SERVER_PORT';
vl(44) := '8082';
nm(45) := 'SERVER_PROTOCOL';
vl(45) := 'HTTP/1.1';
nm(46) := 'SERVER_SOFTWARE';
vl(46) := 'Mod-Apex';
nm(47) := 'WEB_AUTHENT_PREFIX';
vl(47) := ' ';
2012-08-01T19:03:01.744+0200 WARNING sun-appserver2.1 javax.enterprise.system.stream.err ThreadID=27;ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;
The connection is closed: The connection is closed|#]
[#|2012-08-01T19:03:01.744+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=27;_ThreadName=httpSSLWorkerTh
read-8082-2;_RequestID=4cec5fc8-b9e1-4017-a859-8759ec1f5d37;|
The connection is closed: The connection is closed|#]
I am using Glassfish Server v2.1.1 with APEX Listener v1.1.3.243.11.40
The Timeout parameters for JDBC settings in APEX Listener are default. Thus I would expect to abort earlier to be an issue of JDBC Connection?
Anybody an idea?
Thanks!Appears to be a question for the {forum:id=858} forum.
-
Serious problem of jdbc-mysql connectivity using tomcat
hi everybody
i m in serious problem since last 15-20 days. i m trying hard to make the connection jdbc-mysql using tomcat with the help of a jsp test page but every time i am facing almost the similar probems listed below in detail:
to make sure that the jdrivers's .jar (mysql-connector-java-3.1.7-bin.jar) available for such connections working fine i have tried the above said connection without using tomcat....which is working fine...for this i have created a dummy database with a dummy table ..and written some queries in the .java file of my code which upon running inserts the specified values in the defined(dummy) database.
this is the confirmation that the classpath etc..are ok in regard to the mysql-connector-java-3.1.7-bin.jar
now i have placed a copy of this .jar file in to the commons/lib directory of the tomcat web server(which is suppossed to be the place for such external jars)
after doing so i have followed 2 methods :
method 1st:........
i have made aone more jar file from the following .java file....
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class TestSQLLoad
String user = "Not Connected";
String pwd = "no pwd";
int id = -1;
public void init() {
try{
Context ctx = new InitialContext();
if(ctx == null ) {
throw new Exception("Boom - No Context");
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
if (ds != null) {
Connection conn = ds.getConnection();
if(conn != null) {
user = "Got Connection "+conn.toString();
Statement stmt = conn.createStatement();
String q = "select name, password, id from user";
ResultSet rst = stmt.executeQuery(q);
if(rst.next()) {
user=rst.getString(1);
pwd=rst.getString(2);
id = rst.getInt(3);
conn.close();
}catch(Exception e) {
e.printStackTrace();
public String getUser() {
return user;
public String getPassword() {
return pwd;
public int getID()
return id;
after compiling it at the cmd prompt i made a .jar file from the .class of it and named it MySQLLoad.jar...then i placed it also in to the commons/lib directory where the mysql-connector-java-3.1.7-bin.jar was already placed.
then i have changed the server.xml and web.xml files from the conf directory of the tomcat as given here:
server.xml
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/testdb" docBase="TOMCAT_HOME/webapps/tomcat-docs/testdb"
debug="5" reloadable="true" crossContext="true" >
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/TestDB"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/TestDB">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>10</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>5</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>mysql</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/testdb?autoReconnect=true</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
</Server>
and the other xml file i.e
web.xml is here:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>default</servlet-name>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/TestDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-cl ***>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
<!-- The mapping for the JSP servlet -->
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>abs</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ai</extension>
<mime-type>application/postscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>aif</extension>
<mime-type>audio/x-aiff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>aifc</extension>
<mime-type>audio/x-aiff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>aiff</extension>
<mime-type>audio/x-aiff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>aim</extension>
<mime-type>application/x-aim</mime-type>
</mime-mapping>
<mime-mapping>
<extension>art</extension>
<mime-type>image/x-jg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>asf</extension>
<mime-type>video/x-ms-asf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>asx</extension>
<mime-type>video/x-ms-asf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>au</extension>
<mime-type>audio/basic</mime-type>
</mime-mapping>
<mime-mapping>
<extension>avi</extension>
<mime-type>video/x-msvideo</mime-type>
</mime-mapping>
<mime-mapping>
<extension>avx</extension>
<mime-type>video/x-rad-screenplay</mime-type>
</mime-mapping>
<mime-mapping>
<extension>bcpio</extension>
<mime-type>application/x-bcpio</mime-type>
</mime-mapping>
<mime-mapping>
<extension>bin</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>
<mime-mapping>
<extension>bmp</extension>
<mime-type>image/bmp</mime-type>
</mime-mapping>
<mime-mapping>
<extension>body</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>cdf</extension>
<mime-type>application/x-cdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>cer</extension>
<mime-type>application/x-x509-ca-cert</mime-type>
</mime-mapping>
<mime-mapping>
<extension>class</extension>
<mime-type>application/java</mime-type>
</mime-mapping>
<mime-mapping>
<extension>cpio</extension>
<mime-type>application/x-cpio</mime-type>
</mime-mapping>
<mime-mapping>
<extension>csh</extension>
<mime-type>application/x-csh</mime-type>
</mime-mapping>
<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>
<mime-mapping>
<extension>dib</extension>
<mime-type>image/bmp</mime-type>
</mime-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
<mime-mapping>
<extension>dtd</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>dv</extension>
<mime-type>video/x-dv</mime-type>
</mime-mapping>
<mime-mapping>
<extension>dvi</extension>
<mime-type>application/x-dvi</mime-type>
</mime-mapping>
<mime-mapping>
<extension>eps</extension>
<mime-type>application/postscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>etx</extension>
<mime-type>text/x-setext</mime-type>
</mime-mapping>
<mime-mapping>
<extension>exe</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gif</extension>
<mime-type>image/gif</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gtar</extension>
<mime-type>application/x-gtar</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gz</extension>
<mime-type>application/x-gzip</mime-type>
</mime-mapping>
<mime-mapping>
<extension>hdf</extension>
<mime-type>application/x-hdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>hqx</extension>
<mime-type>application/mac-binhex40</mime-type>
</mime-mapping>
<mime-mapping>
<extension>htc</extension>
<mime-type>text/x-component</mime-type>
</mime-mapping>
<mime-mapping>
<extension>htm</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>hqx</extension>
<mime-type>application/mac-binhex40</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ief</extension>
<mime-type>image/ief</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jad</extension>
<mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jar</extension>
<mime-type>application/java-archive</mime-type>
</mime-mapping>
<mime-mapping>
<extension>java</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpe</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpeg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>js</extension>
<mime-type>text/javascript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jsf</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jspf</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>kar</extension>
<mime-type>audio/x-midi</mime-type>
</mime-mapping>
<mime-mapping>
<extension>latex</extension>
<mime-type>application/x-latex</mime-type>
</mime-mapping>
<mime-mapping>
<extension>m3u</extension>
<mime-type>audio/x-mpegurl</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mac</extension>
<mime-type>image/x-macpaint</mime-type>
</mime-mapping>
<mime-mapping>
<extension>man</extension>
<mime-type>application/x-troff-man</mime-type>
</mime-mapping>
<mime-mapping>
<extension>me</extension>
<mime-type>application/x-troff-me</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mid</extension>
<mime-type>audio/x-midi</mime-type>
</mime-mapping>
<mime-mapping>
<extension>midi</extension>
<mime-type>audio/x-midi</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mif</extension>
<mime-type>application/x-mif</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mov</extension>
<mime-type>video/quicktime</mime-type>
</mime-mapping>
<mime-mapping>
<extension>movie</extension>
<mime-type>video/x-sgi-movie</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mp1</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mp2</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mp3</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpa</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpe</extension>
<mime-type>video/mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpeg</extension>
<mime-type>video/mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpega</extension>
<mime-type>audio/x-mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpg</extension>
<mime-type>video/mpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>mpv2</extension>
<mime-type>video/mpeg2</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ms</extension>
<mime-type>application/x-wais-source</mime-type>
</mime-mapping>
<mime-mapping>
<extension>nc</extension>
<mime-type>application/x-netcdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>oda</extension>
<mime-type>application/oda</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pbm</extension>
<mime-type>image/x-portable-bitmap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pct</extension>
<mime-type>image/pict</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pgm</extension>
<mime-type>image/x-portable-graymap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pic</extension>
<mime-type>image/pict</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pict</extension>
<mime-type>image/pict</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pls</extension>
<mime-type>audio/x-scpls</mime-type>
</mime-mapping>
<mime-mapping>
<extension>png</extension>
<mime-type>image/png</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pnm</extension>
<mime-type>image/x-portable-anymap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pnt</extension>
<mime-type>image/x-macpaint</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ppm</extension>
<mime-type>image/x-portable-pixmap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ppt</extension>
<mime-type>application/powerpoint</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ps</extension>
<mime-type>application/postscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>psd</extension>
<mime-type>image/x-photoshop</mime-type>
</mime-mapping>
<mime-mapping>
<extension>qt</extension>
<mime-type>video/quicktime</mime-type>
</mime-mapping>
<mime-mapping>
<extension>qti</extension>
<mime-type>image/x-quicktime</mime-type>
</mime-mapping>
<mime-mapping>
<extension>qtif</extension>
<mime-type>image/x-quicktime</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ras</extension>
<mime-type>image/x-cmu-raster</mime-type>
</mime-mapping>
<mime-mapping>
<extension>rgb</extension>
<mime-type>image/x-rgb</mime-type>
</mime-mapping>
<mime-mapping>
<extension>rm</extension>
<mime-type>application/vnd.rn-realmedia</mime-type>
</mime-mapping>
<mime-mapping>
<extension>roff</extension>
<mime-type>application/x-troff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>rtf</extension>
<mime-type>application/rtf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>rtx</extension>
<mime-type>text/richtext</mime-type>
</mime-mapping>
<mime-mapping>
<extension>sh</extension>
<mime-type>application/x-sh</mime-type>
</mime-mapping>
<mime-mapping>
<extension>shar</extension>
<mime-type>application/x-shar</mime-type>
</mime-mapping>
<mime-mapping>
<extension>smf</extension>
<mime-type>audio/x-midi</mime-type>
</mime-mapping>
<mime-mapping>
<extension>sit</extension>
<mime-type>application/x-stuffit</mime-type>
</mime-mapping>
<mime-mapping>
<extension>snd</extension>
<mime-type>audio/basic</mime-type>
</mime-mapping>
<mime-mapping>
<extension>src</extension>
<mime-type>application/x-wais-source</mime-type>
</mime-mapping>
<mime-mapping>
<extension>sv4cpio</extension>
<mime-type>application/x-sv4cpio</mime-type>
</mime-mapping>
<mime-mapping>
<extension>sv4crc</extension>
<mime-type>application/x-sv4crc</mime-type>
</mime-mapping>
<mime-mapping>
<extension>swf</extension>
<mime-type>application/x-shockwave-flash</mime-type>
</mime-mapping>
<mime-mapping>
<extension>t</extension>
<mime-type>application/x-troff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tar</extension>
<mime-type>application/x-tar</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tcl</extension>
<mime-type>application/x-tcl</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tex</extension>
<mime-type>application/x-tex</mime-type>
</mime-mapping>
<mime-mapping>
<extension>texi</extension>
<mime-type>application/x-texinfo</mime-type>
</mime-mapping>
<mime-mapping>
<extension>texinfo</extension>
<mime-type>application/x-texinfo</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tif</extension>
<mime-type>image/tiff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tiff</extension>
<mime-type>image/tiff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tr</extension>
<mime-type>application/x-troff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>tsv</extension>
<mime-type>text/tab-separated-values</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ulw</extension>
<mime-type>audio/basic</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ustar</extension>
<mime-type>application/x-ustar</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xbm</extension>
<mime-type>image/x-xbitmap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xht</extension>
<mime-type>application/xhtml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xhtml</extension>
<mime-type>application/xhtml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xml</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xpm</extension>
<mime-type>image/x-xpixmap</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xsl</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xwd</extension>
<mime-type>image/x-xwindowdump</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wav</extension>
<mime-type>audio/x-wav</mime-type>
</mime-mapping>
<mime-mapping>
<extension>svg</extension>
<mime-type>image/svg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>svgz</extension>
<mime-type>image/svg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>vsd</extension>
<mime-type>application/x-visio</mime-type>
</mime-mapping>
<mime-mapping>
<!-- Wireless Bitmap -->
<extension>wbmp</extension>
<mime-type>image/vnd.wap.wbmp</mime-type>
</mime-mapping>
<mime-mapping>
<!-- WML Source -->
<extension>wml</extension>
<mime-type>text/vnd.wap.wml</mime-type>
</mime-mapping>
<mime-mapping>
<!-- Compiled WML -->
<extension>wmlc</extension>
<mime-type>application/vnd.wap.wmlc</mime-type>
</mime-mapping>
<mime-mapping>
<!-- WML Script Source -->
<extension>wmls</extension>
<mime-type>text/vnd.wap.wmlscript</mime-type>
</mime-mapping>
<mime-mapping>
<!-- Compiled WML Script -->
<extension>wmlscriptc</extension>
<mime-type>application/vnd.wap.wmlscriptc</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wrl</extension>
<mime-type>x-world/x-vrml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>Z</extension>
<mime-type>application/x-compress</mime-type>
</mime-mapping>
<mime-mapping>
<extension>z</extension>
<mime-type>application/x-compress</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zip</extension>
<mime-type>application/zip</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
after all this i have taken a jsp page whose code is here:
(the mysql database used is named as "testdb" and the table name is "user" which is having fields name,password and id)
<html>
<head>
<title>DB Test</title>
</head>
<body>
<%
TestSQLLoad tst = new TestSQLLoad ( );
tst.init();
%>
<h2>Results</h2>
User <%= tst.getUser() %>
Pwd <%= tst.getPassword() %>
Id <%= tst.getID() %>
</body>
</html>
and placed it in to the Tomcat 5.5\webapps\tomcat-docs\testdb directory and saved as test-db.jsp
when i run this page on the browser i get a lot may errors stating
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.
AND NOW WHEN just to get rid of such errords i try to include a statement
<%@ page import="pkg.TestSQLLoad" %> in the jsp page code (and also place the MySQLLoad.class file in a folder called pkg and place it in the same directory where the jsp page is )and make it look like
<html>
<head>
<%@ page import="pkg.TestSQLLoad" %>
<title>DB Test</title>
</head>
<body>
<%
TestSQLLoad tst = new TestSQLLoad ( );
tst.init();
%>
<h2>Results</h2>
User <%= tst.getUser() %>
Pwd <%= tst.getPassword() %>
Id <%= tst.getID() %>
</body>
</html>
now when i run it i get the following errors:
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. pkg.TestSQLLoad resolves to a package
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
in response to the above error i have even tried placing the MySQLLoad.class directly in the testdb folder along with the jsp page without keeping it in a package named pkg and then importing directly as <@page import="MySQLLoad" %>
that too gave me the following errors
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The import TestSQLLoad cannot be resolved
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
An error occurred at line: 12 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
and if i do not use the statement <%@ page import="MySQLLoad"%> then also i get the errors like
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
An error occurred at line: 11 in the jsp file: /testdb/test-db.jsp
Generated servlet error:
TestSQLLoad cannot be resolved or is not a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
THE 2nd Method:
in my second method i did the same changes in the web.xml and server.xml
then i took a jsp page with the following code:
<%@ page import="javax.sql.*,java.sql.*,javax.naming.*,com.mysql.jdbc.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> trial doc </TITLE>
</HEAD>
<BODY>
<h1>Trial Document</h1>
<% InitialContext context=new InitialContext( );
DataSource dataSource=(DataSource) context.lookup("java:comp/env/jdbc/testdb");
Connection conn=dataSource.getConnection();
Statement stmt=conn.createStatement();
ResultSet rset=stmt.executeQuery("select * from user");
if (rset.next()){
%>
<table width="100%" border="1">
<tr align="left">
<th>name</th> <th>password</th><th>id</th>
</tr>
<%
do {
%>
<tr><td> <%=rset.getString(1)%> </td>
<td><%=rset.getString(2) %></td>
<td><%=rset.getString(3) %></td></tr>
<%
} while (rset.next());
%>
</table>
<%
} else{
%>
No results from query
<%
rset.close();
stmt.close();
conn.close();
context.close();
%>
</BODY>
</HTML>
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
Generated servlet error:
The type Connection is ambiguous
An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
Generated servlet error:
The type Statement is ambiguous
An error occurred at line: 15 in the jsp file: /testdb/Big1.jsp
Generated servlet error:
The type ResultSet is ambiguous
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.j ava:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
org.apache.jasper.compiler.Compiler.compile(Cthanx for ur response
as u said that the problem is more of a jsp page not getting compiled....
me also pointed towards the similar situation providing all the surrounding situations
which i have met and gone through
i m still thinking that problem may b in the tomcat's server.xml and web.xml as well
so better if u plz guide me in that regard
regards,
kuldeep -
Business Rules will not launch or open in EAS or Planning
The Business Rules will not open or launch in EAS. Additionally, they do not show up in Planning at all. The error received is "Exception occurred. Please check your log file for details." As of Friday, everything was working fine. On Monday morning the issue started. The only thing that occurred over the weekend was the weekly stop & start of all services.
Addiitonal Info:
Version 9.3.1
Can create new rules, but after saved, cannot launch or re-open
Can view the business rules in EAS, cannot open, launch, or validate
Cannot view any business rules in Planning
Have already tried stopping and starting all services
Have already tried different ids.
When reviewing the error log I could find it says the following:
AJPRequestHandler-HTTPThreadGroup-6 com.hyperion.hbr.security.HbrSecurityAPI -
Error Code: -1
com.hyperion.css.CSSCommunicationException: Unable to communicate with the server. Error Code: 3
NestedException:
com.hyperion.css.CSSCommunicationException: Failed to connect to the directory server. Error Code: 3
NestedException:
javax.naming.CommunicationException: USRTPD201P:389 [Root exception is java.net.ConnectException: Connection refused: connect]
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.MSADProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.CSSAPIImpl.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserById(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getIndirectRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntry(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.getMergedCSSentriesArray(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.updateAllHashes(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPI.getGroupsHash(Unknown Source)
at com.hyperion.hbr.db.DBGroups.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.GroupManagerServer.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getInheritedObjects(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getUserAccessibleObjects(Unknown Source)
at com.hyperion.hbr.core.AccessHash.getCurrentAccess(Unknown Source)
at com.hyperion.hbr.core.AccessHash.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.validateLaunchLocations(Unknown Source)
at com.hyperion.hbr.core.AccessControlCmdListener.validateLaunchLocations(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
Error Code: -1
com.hyperion.css.CSSCommunicationException: Failed to connect to the directory server. Error Code: 3
NestedException:
javax.naming.CommunicationException: USRTPD201P:389 [Root exception is java.net.ConnectException: Connection refused: connect]
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.getBorrowObject(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.borrowValidatedConnection(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.MSADProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.CSSAPIImpl.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserById(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getIndirectRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntry(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.getMergedCSSentriesArray(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.updateAllHashes(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPI.getGroupsHash(Unknown Source)
at com.hyperion.hbr.db.DBGroups.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.GroupManagerServer.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getInheritedObjects(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getUserAccessibleObjects(Unknown Source)
at com.hyperion.hbr.core.AccessHash.getCurrentAccess(Unknown Source)
at com.hyperion.hbr.core.AccessHash.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.validateLaunchLocations(Unknown Source)
at com.hyperion.hbr.core.AccessControlCmdListener.validateLaunchLocations(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
javax.naming.CommunicationException: USRTPD201P:389 [Root exception is java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:204)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
at com.hyperion.css.spi.util.jndi.pool.CSSJNDIKeyedObjectFactory.init(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.CSSJNDIKeyedObjectFactory.makeObject(Unknown Source)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:792)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.getBorrowObject(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.borrowValidatedConnection(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.MSADProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.CSSAPIImpl.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserById(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getIndirectRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntry(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.getMergedCSSentriesArray(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.updateAllHashes(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPI.getGroupsHash(Unknown Source)
at com.hyperion.hbr.db.DBGroups.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.GroupManagerServer.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getInheritedObjects(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getUserAccessibleObjects(Unknown Source)
at com.hyperion.hbr.core.AccessHash.getCurrentAccess(Unknown Source)
at com.hyperion.hbr.core.AccessHash.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.validateLaunchLocations(Unknown Source)
at com.hyperion.hbr.core.AccessControlCmdListener.validateLaunchLocations(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:346)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:181)
... 62 moreI can view the rules in EAS, just cannot open or launch. I am thinking it still has to do with the active directory that they changed, but need more time to research. Here is the specific error now:
2013-08-07 10:09:32,057 INFO AJPRequestHandler-HTTPThreadGroup-6 com.hyperion.hbr.security.HbrSecurityAPI - LDAP porvider could not be contacted.
Error Code: -1
com.hyperion.css.CSSCommunicationException: LDAP porvider could not be contacted. Error Code: 3
NestedException:
java.net.ConnectException: Connection refused: connect
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.validateSocketConnection(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.init(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.<init>(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.MSADProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.CSSAPIImpl.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserById(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getIndirectRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntry(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.getMergedCSSentriesArray(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.updateAllHashes(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPI.getGroupsHash(Unknown Source)
at com.hyperion.hbr.db.DBGroups.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.GroupManagerServer.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getInheritedObjects(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getUserAccessibleObjects(Unknown Source)
at com.hyperion.hbr.core.AccessHash.getCurrentAccess(Unknown Source)
at com.hyperion.hbr.core.AccessHash.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.validateLaunchLocations(Unknown Source)
at com.hyperion.hbr.core.AccessControlCmdListener.validateLaunchLocations(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Nested Exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.validateSocketConnection(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.init(Unknown Source)
at com.hyperion.css.spi.util.jndi.pool.JNDIConnectionPool.<init>(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.JNDIHelper.getURLContext(Unknown Source)
at com.hyperion.css.spi.impl.msad.MSADProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.CSSAPIImpl.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserById(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getUserByIdentity(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getIndirectRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntries(Unknown Source)
at com.hyperion.css.spi.impl.nv.NativeProvider.getRolesListForEntry(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.getMergedCSSentriesArray(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPIHelper.updateAllHashes(Unknown Source)
at com.hyperion.hbr.security.HbrSecurityAPI.getGroupsHash(Unknown Source)
at com.hyperion.hbr.db.DBGroups.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.GroupManagerServer.getGroupsForGroup(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getInheritedObjects(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.getUserAccessibleObjects(Unknown Source)
at com.hyperion.hbr.core.AccessHash.getCurrentAccess(Unknown Source)
at com.hyperion.hbr.core.AccessHash.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.canLaunch(Unknown Source)
at com.hyperion.hbr.core.AccessControlManagerServer.validateLaunchLocations(Unknown Source)
at com.hyperion.hbr.core.AccessControlCmdListener.validateLaunchLocations(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.essbase.eas.framework.server.application.AbstractCommandListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultCommandDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.EventDispatcherWorkListener.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultWorkDispatcher.dispatchEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultEventController.handleEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultApplication.generateWorkEvent(Unknown Source)
at com.essbase.eas.framework.server.application.DefaultServlet.handleRequest(Unknown Source)
at com.essbase.eas.server.AppManServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595) -
Cannot get "keepgenerated" option to work
I am attempting to keep the Java files generated from some JSP's. I have
placed the followin in my weblogic.properties file:
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=d:/jdk13/bin/javac.exe,\
workingDir=/weblogic/myserver/public_html/colocation/jsp,\
keepgenerated=true,\
verbose=true
The compiled files show up in a automatically generated directory:
D:\weblogic\myserver\public_html\colocation\_tmp_war\jsp_servlet
But there are no source (.java) files there, or in the directory that I
intended to have as the "workingDir".
What am I doing wrong?
Thanks for the quick response. It works well now.
"Dimitri Rakitine" <[email protected]> wrote in message
news:[email protected]...
> If you deploy WAR it should go into web.xml context param - see
> http://www.weblogic.com/docs51/classdocs/webappguide.html#createdd
>
> These are the reserved WebLogic context parameter names and their
function:
>
> weblogic.httpd.servlet.reloadCheckSecs
> Where the <param-value> gives the interval in seconds that WebLogic checks
for modified servlet classes. For
> more details on this property, see Reloading servlet classes in the
Setting WebLogic Properties document.
>
> weblogic.httpd.defaultServlet
> Where the <param-value> specifies the fully qualified class name of a
servlet that handles a URL request that
> cannot be resolved to any other servlet. For more details on the default
servlet, see Setting a default servlet
> in the Setting WebLogic Properties document.
>
> weblogic.httpd.documentRoot
> Where the <param-value> redefines the location of the document root for
this servlet context. The default
> document root is the root directory of the Web Application.
>
> weblogic.httpd.servlet.classpath
> Where the <param-value> redefines the servlet classpath--the location from
which the Web Application loads its
> servlet classes. In a Web Application, the servlet classpath defaults to
the WEB-INF/classes
> directory. WebLogic Server treats this classpath as the equivalent of the
classpath established by the
> servlet.classpath property that is specified in the weblogic.properties
file.
>
> weblogic.jsp.precompile
> If set to true, all JSP files in the Web Application will be pre-compiled
when WebLogic Server starts up. If
> set to false, JSP files will be compiled when they are first requested.
The default is false.
>
> weblogic.jsp.compileCommand
> Specifies the full pathname of the standard Java compiler used to compile
the generated JSP servlets. For
> example, to use the standard Java compiler, specify its location on your
system as the <param-value>:
> <param-value>/jdk117/bin/javac.exe</param-value>
> weblogic.jsp.verbose
> When set to true, debugging information is printed out to the browser, the
command prompt, and WebLogic Server
> log file.
>
> weblogic.jsp.packagePrefix
> Specifies the package into which all compiled JSP pages will be placed.
>
> weblogic.jsp.keepgenerated
> Keeps the Java files that are created as an intermediary step in the
compilation process.
>
> weblogic.jsp.pageCheckSeconds
> Sets the interval at which WebLogic Server checks to see if JSP files have
changed and need
> recompiling. Dependencies are also checked and recursively reloaded if
changed. If set to 0, pages are checked
> on every request. If set to -1, page checking and recompiling is disabled.
>
> weblogic.jsp.encoding
> (Optional) Specifies the character set used in the JSP page. If not
specified, the default encoding for your
> platform is used.
>
>
> Charles P. Cuozzo <[email protected]> wrote:
> > I am attempting to keep the Java files generated from some JSP's. I have
> > placed the followin in my weblogic.properties file:
>
> > weblogic.httpd.initArgs.*.jsp=\
> > pageCheckSeconds=1,\
> > compileCommand=d:/jdk13/bin/javac.exe,\
> > workingDir=/weblogic/myserver/public_html/colocation/jsp,\
> > keepgenerated=true,\
> > verbose=true
>
> > The compiled files show up in a automatically generated directory:
> > D:\weblogic\myserver\public_html\colocation\_tmp_war\jsp_servlet
>
> > But there are no source (.java) files there, or in the directory that I
> > intended to have as the "workingDir".
>
> > What am I doing wrong?
>
>
>
> --
> Dimitri
-
Javax.ejb.EJBException: Null primary key returned by ejbCreate method
Hi all,
I'm using SunOne 7.1 and I got this error when I call the create on the CMP bean.
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.ejb.EJBException: Null primary key returned by ejbCreate method
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: javax.ejb.EJBException: Null primary key returned by ejbCreate method
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.ejb.containers.EntityContainer.postCreate(EntityContainer.java:801)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.applicationAdmin.ejb.ApplicationAdminBean_854379388_ConcreteImpl_LocalHomeImpl.createNewApplication(ApplicationAdminBean_854379388_ConcreteImpl_LocalHomeImpl.java:64)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean_EJBObjectImpl.insertNewApplicationName(SFApplicationAdminBean_EJBObjectImpl.java:31)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin._SFApplicationAdminBean_EJBObjectImpl_Tie._invoke(Unknown Source)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
cmp:
public java.lang.Integer ejbCreateNewApplication(java.lang.String application) throws javax.ejb.CreateException {
setApplication(application);
return null;
The key is auto_increment and is an integer.
I'm usin MySQL and it is already set up as ANSI. (running as mysqld --ansi)
Any Idea?
Thanks in advanceWhat happend when two concourrent user try to get the same key on the table? If for example I have 30 users at same time do I have lock table?
Any way here the finest log using sunone 8. The error is the same, so I think I missing something:
[#|2004-08-14T12:11:19.296+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=11;|IM: preInvokeorg.apache.catalina.servlets.DefaultServlet@1acecf3|#]
[#|2004-08-14T12:11:19.296+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=11;|IM: postInvokeorg.apache.catalina.servlets.DefaultServlet@1acecf3|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Changing Policy Context ID: oldV = null newV = Test|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = SFApplicationAdmin (Action) = create,Home, (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = SFApplicationAdmin (Action) = insertNewApplicationName,Remote,java.util.Hashtable (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: preInvokeuk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean@1fa487f|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: doAsPrivileged contextId(Test)|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
new|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
mgmt: com.sun.enterprise.naming.TransientContext:com.sun.enterprise.naming.TransientContext@ad00b2|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
new|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
SFApplicationAdmin: javax.naming.Reference:Reference Class Name: reference
Type: url
Content: ejb/SFApplicationAdmin
|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = ApplicationAdmin (Action) = createNewApplication,LocalHome,java.lang.String (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|[Pool-ApplicationAdmin]: Added PoolResizeTimerTask...|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: preInvokeuk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl@7ae165|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|:Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] -->SQLPersistenceManagerFactory.getPersistenceManager().|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] <->SQLPersistenceManagerFactory.getPersistenceManager() FOUND javax.transaction.Transaction: com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<--SQLPersistenceManagerFactory.getFromPool().|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|PersistenceManagerImpl cache properties: _txCacheInitialCapacity=20, _flushedCacheInitialCapacity=20, _flushedCacheLoadFactor=0.75, _weakCacheInitialCapacity=20, _weakCacheLoadFactor=0.75.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.utility|_ThreadID=22;|NullSemaphore constructor() for PersistenceManagerImpl.cacheLock.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.utility|_ThreadID=22;|NullSemaphore constructor() for PersistenceManagerImpl.fieldUpdateLock.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<--SQLPersistenceManagerFactory.getFromPool() PM: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c for JTA com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<->SQLPersistenceManagerFactory.getPersistenceManager() JDO Transaction: Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.transaction|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] Tran[ Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
].begin:status = STATUS_NO_TRANSACTION ,txType: UNKNOWN for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.transaction|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] Tran[ Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
].setStatus: STATUS_NO_TRANSACTION => STATUS_ACTIVE for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] <->SQLPersistenceManagerFactory.getPersistenceManager() : com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c for JTA: com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.getCurrentWrapper() > current: null.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.pushCurrentWrapper() > current: null new: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@567117.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.popCurrentWrapper() > current: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@567117 prev: null.|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: postInvokeuk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl@7ae165|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|Exception in forceDestroyBean()
java.lang.IllegalStateException: Primary key not available
at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:114)
at com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1232)
at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:2559)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2416)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:763)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:197)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
|#]
[#|2004-08-14T12:11:26.196+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|EJB5018: An exception was thrown during an ejb invocation on [ApplicationAdmin]|#]
[#|2004-08-14T12:11:26.196+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
at com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB11HelperImpl.assertPrimaryKeyFieldNotNull(JDOEJB11HelperImpl.java:446)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl.setApplicationId(ApplicationAdminBean_1421299025_ConcreteImpl.java:102)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean.ejbCreateNewApplication(ApplicationAdminBean.java:93)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl.ejbCreateNewApplication(ApplicationAdminBean_1421299025_ConcreteImpl.java:334)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:168)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:2564)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2416)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:763)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:197)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
|#]
Any Idea?
Thanks in advance for any help -
Java.io.IOException: There is no process to read data written to a pipe.
Hi all
I am facing a problem when i run my application
I am using jdk1.3 and Tomcat 4.0.3
Actually my application works absolutely fine but when i check the
local_host log file of tomcat i find the following stack trace in it
2006-01-04 10:59:00 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
java.io.IOException: There is no process to read data written to a pipe.
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code))
at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java(Compiled Code))
at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java(Compiled Code))
at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java(Compiled Code))
at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312)
at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:189)
at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1903)
at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1652)
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1197)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:498)
2006-01-04 10:59:00 ErrorDispatcherValve[localhost]: Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/error]
java.lang.IllegalStateException
at java.lang.RuntimeException.<init>(RuntimeException.java:39)
at java.lang.IllegalStateException.<init>(IllegalStateException.java:36)
at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:384)
at org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:250)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:178)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:498)
What i dont get is in the entire stack trace i am not able to locate which of my application files is causing the errors
I searched on net and found a few root causes but i am not able to find out exactly which class file is causing the stack trace
Any suggestions are most welcome
Thanking in advanceDid you do something strange like writing the object out using the Servlet response's output stream and then attempted to redirect or forward a user to another page? That is usually how the IllegalStateException gets generated. You would still see a valid response from the caller's perspective, but since you attempted to forward or redirect after data has already been written to the stream on the server, an exception is thrown there.
- Saish -
A problem with HttpClusterServlet
Hi all.
I have a cluster of two wls instances (working ok) and now I wish to put a third one in front of them.
I've registered the HttpClusterServlet as the default servlet:
weblogic.allow.execute.weblogic.servlet=everyone
weblogic.httpd.register.cluster=\
weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.cluster=\
defaultServers=myserver1:7008:7009|myserver2:7008:7009,DebugConfigInfo=ON
weblogic.httpd.defaultServlet=cluster
but when I call it from my browser I get a 500 with this stack trace (if weblogic.debug.httpd.servlet is true):
java.lang.NullPointerException
at weblogic.servlet.internal.HttpClusterServlet$Server.(HttpClusterServlet.java:391)
at weblogic.servlet.internal.HttpClusterServlet$2.next(HttpClusterServlet.java:257)
at weblogic.servlet.internal.HttpClusterServlet.service(HttpClusterServlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
Where is the mistake?
I have a wls 5.1 SP5 running on a jvm 1.2.2 running on an hpux 11.00.
Any help appreciated.
Carlo Montanari
How about your properties in the backend of the servers in the cluster.
- Prasad
Carlo Montanari wrote:
> Hi all.
> I have a cluster of two wls instances (working ok) and now I wish to put a third one in front of them.
> I've registered the HttpClusterServlet as the default servlet:
>
> weblogic.allow.execute.weblogic.servlet=everyone
> weblogic.httpd.register.cluster=\
> weblogic.servlet.internal.HttpClusterServlet
> weblogic.httpd.initArgs.cluster=\
> defaultServers=myserver1:7008:7009|myserver2:7008:7009,DebugConfigInfo=ON
> weblogic.httpd.defaultServlet=cluster
>
> but when I call it from my browser I get a 500 with this stack trace (if weblogic.debug.httpd.servlet is true):
>
> java.lang.NullPointerException
> at weblogic.servlet.internal.HttpClusterServlet$Server.(HttpClusterServlet.java:391)
> at weblogic.servlet.internal.HttpClusterServlet$2.next(HttpClusterServlet.java:257)
> at weblogic.servlet.internal.HttpClusterServlet.service(HttpClusterServlet.java:129)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:760)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:707)
> at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:369)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
>
> Where is the mistake?
> I have a wls 5.1 SP5 running on a jvm 1.2.2 running on an hpux 11.00.
> Any help appreciated.
> --
>
> Carlo Montanari
Maybe you are looking for
-
My Windows 7 64Bit Computer doesn't recognize my iPhone4S
Just as the title states my computer here does not see or recognize my iPhone 4S. No matter what I have tried and done to get it to see and recognize my phone via my wireless network doesn't see it at all. I have forget this network, turned wifi off
-
Facing problem in installing oracle http server
hi, i am trying to install oracle http server from companion cd (oracle 10g) but facing this error /Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory. i don't know wha
-
How to modify the new mask/track feature after you've left the clip?
After you've created an ellipse or polygon mask with the new filter feature, positioned it where you want it in the Program panel, then gone on to other editing, how do you later come back and grab that mask to move it's position? Clicking on it in
-
Cant find edit photo option n82
Hi, ive read there is a built in photo editor..but i have no EDIT option in gallery or after taken picture..please help me..
-
HT1270 Please confirm macbook pro early 2011
I read in document of apple and on apple web, it write maximum Ram 8GB, i don't understand 8GB for 2 slot (2X4=8GB) or 8GB for one slot (2X8=16GB). please help me to make clear? thanks