pavan_immadi
asked on
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key HTTPServer7 at java.util.ResourceBundle.getObject(ResourceBundle.java:326) at java.util.Resourc
I have installed Oracle Application Server and Deployed an Application on it. I configured the DataSources and tested the Connection .
it worked, but when I try to login to the Application I get the following error, initialyy it tries to redirect to index.jsp page but later turns out to
500 Internal Server Error
java.util.MissingResourceE xception: Can't find resource for bundle java.util.PropertyResource Bundle, key HTTPServer7 at java.util.ResourceBundle.g etObject(R esourceBun dle.java:3 26) at java.util.ResourceBundle.g etString(R esourceBun dle.java:2 86) at com.bayer.cropscience.naft a.uscrop.h ierarchyma int.Server Properties .setDataSo urce(Serve rPropertie s.java:87) at _index._jspService(_index. java:45) [SRC:/index.jsp:7] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.se rvice(Orio nHttpJspPa ge.java:59 ) at oracle.jsp.runtimev2.JspPa geTable.se rvice(JspP ageTable.j ava:416) at oracle.jsp.runtimev2.JspSe rvlet.inte rnalServic e(JspServl et.java:47 8) at oracle.jsp.runtimev2.JspSe rvlet.serv ice(JspSer vlet.java: 401) at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletReque stDispatch er.invoke( ServletReq uestDispat cher.java: 719) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletReque stDispatch er.forward Internal(S ervletRequ estDispatc her.java:3 76) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestH andler.doP rocessRequ est(HttpRe questHandl er.java:87 0) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestH andler.pro cessReques t(HttpRequ estHandler .java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHa ndler.run( AJPRequest Handler.ja va:299) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHa ndler.run( AJPRequest Handler.ja va:187) at oracle.oc4j.network.Server SocketRead Handler$Sa feRunnable .run(Serve rSocketRea dHandler.j ava:260) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourceP ooledExecu tor$MyWork er.run(Rel easableRes ourcePoole dExecutor. java:303) at java.lang.Thread.run(Threa d.java:595 )
Can any body tell me what other steps that I have to take while installing the Oracle Application Server ? Am I missing anything in the Deployment ?
The ear file contains 1.) War file 2.) MetaInf Director which has a.) application.xml b.) data-sources.xml c.) orion-application.xml
Previously this File was Deployed on Oracle application Server on unix and it is still working fine, but when I am trying to replicate it on windows It does not work.
DO I have to change anything in the Files mentioned above ?
Please let me know .
Thank you,
it worked, but when I try to login to the Application I get the following error, initialyy it tries to redirect to index.jsp page but later turns out to
500 Internal Server Error
java.util.MissingResourceE
Can any body tell me what other steps that I have to take while installing the Oracle Application Server ? Am I missing anything in the Deployment ?
The ear file contains 1.) War file 2.) MetaInf Director which has a.) application.xml b.) data-sources.xml c.) orion-application.xml
Previously this File was Deployed on Oracle application Server on unix and it is still working fine, but when I am trying to replicate it on windows It does not work.
DO I have to change anything in the Files mentioned above ?
Please let me know .
Thank you,
I see you have 10gAS R3 - what version of java do you have installed on the windows machine and what service pack level are you on? Oracle certifies only the Sun's "JavaSoft JDK Server" versions 1.4.2_09+ and 1.5.0_05+ with SP2 and above with the 10gAS R3 product.
ASKER
The Java Veriosn is
C:\Documents and Settings\ESREF>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
So do you think that I need to upgrade the JavaSDK ?
C:\Documents and Settings\ESREF>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
So do you think that I need to upgrade the JavaSDK ?
Absolutely - and that's what Oracle will tell you before they even talk to you. (;-p) Some fixes are easy ones. This might be an easy one.
You can find the downloads here:
https://sdlc6d.sun.com/ECom/EComActionServlet;jsessionid=FEFD344A77D5A1DA1BDCF057DAF5937F
You can find the downloads here:
https://sdlc6d.sun.com/ECom/EComActionServlet;jsessionid=FEFD344A77D5A1DA1BDCF057DAF5937F
ASKER
Thank you bpeterse.
I applied the Fix and the Java Version is compliant with the OracleApplication Server.
C:\Documents and Settings\ESREF>java -version
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
But whenI start the Application Server I see that there is a Servlet which is not getting loaded . Here is a Error message from the log file. Any ideas ?? I beleive this is something related to the Application code not the Deployment or any Dat Source Configurations. Any ideas about this error message or the Issue.
06/11/01 13:15:29.944 10.1.3.0.0 Started
06/11/01 13:15:33.179 HMP: Error preloading servlet
javax.servlet.ServletExcep
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.Applic
at com.evermind.server.Applic
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at oracle.oc4j.admin.internal
at oracle.oc4j.admin.internal
at oracle.oc4j.admin.internal
at oracle.oc4j.admin.internal
at oracle.oc4j.admin.internal
at oracle.oc4j.admin.jmx.serv
at oracle.oc4j.admin.jmx.serv
at EDU.oswego.cs.dl.util.conc
at java.lang.Thread.run(Threa
06/11/01 13:15:33.179 HMP: 10.1.3.0.0 Started
06/11/01 13:16:48.6 HMP: Servlet error
java.util.MissingResourceE
at java.util.ResourceBundle.g
at java.util.ResourceBundle.g
at com.bayer.cropscience.naft
at _index._jspService(_index.
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.se
at oracle.jsp.runtimev2.JspPa
at oracle.jsp.runtimev2.JspPa
at oracle.jsp.runtimev2.JspSe
at oracle.jsp.runtimev2.JspSe
at javax.servlet.http.HttpSer
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletReque
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletReque
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestH
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestH
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHa
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHa
at oracle.oc4j.network.Server
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourceP
at java.lang.Thread.run(Threa
Get the WAR or EAR file that you used to deploy this application and do a 'jar -tvf' <war_file_name>|grep DaytimeServlet. If not found, then perhaps someone gave you an incomplete application.
Another thought - what country is this being deployed for? Are your language/internationalizat ion settings all correct for the profile that starts up the OAS?
Hope this helps.
Another thought - what country is this being deployed for? Are your language/internationalizat
Hope this helps.
ASKER
I deployed this app on a Windows 2003 Server but not on a Unix Box.
I searched for the file and there are two class Files by these names : DaytimeServlet.class and DaytimeServlet_stub.class in the War file.
Ans this Application is Deployed for United States.
So do you think that the files are not the once which the Application is looking for ?
I searched for the file and there are two class Files by these names : DaytimeServlet.class and DaytimeServlet_stub.class in the War file.
Ans this Application is Deployed for United States.
So do you think that the files are not the once which the Application is looking for ?
The 'ResourceBundle.java' led me to believe that the NLS_LANG parameter might not be set - do you have all the Environment variables set correctly before starting the app server instance?
ASKER
I don't know if I am supposed to set this variable. Can you tell me how to set this variable ? I only set the JAVA_HOME nothing else.
For Unix installations, it is a requirement so I assume it's the same for Windows. You can set en environment variable in at least 2 different places in Windows:
1) Rt. click on My Computer > properties > Advanced [tab] > Environment Variables. From there, you can set your user account env var's or system wide variables.
2) Start > Programs > Administrative Tools > Services. Find the service(s) that starts up your application server, stop it if it's running and then edit the startup parameters at the bottom of the 'General' tab of the Properties for that service.
Either way, set the following environment variables and see if this helps:
NLS_LANG=AMERICAN_AMERICA. WE8ISO8859 P1
ORA_NLS33=/<your_oracle_ho me>/ocommo n/nls/admi n/data
CLASSPATH=/<oracle_home>/j 2ee/home/l ib/jdbc.ja r:/<oracle _home>/j2e e/home/lib /servlet.j ar:/<oracl e_home>/j2 ee/home/li b/jndi.jar
1) Rt. click on My Computer > properties > Advanced [tab] > Environment Variables. From there, you can set your user account env var's or system wide variables.
2) Start > Programs > Administrative Tools > Services. Find the service(s) that starts up your application server, stop it if it's running and then edit the startup parameters at the bottom of the 'General' tab of the Properties for that service.
Either way, set the following environment variables and see if this helps:
NLS_LANG=AMERICAN_AMERICA.
ORA_NLS33=/<your_oracle_ho
CLASSPATH=/<oracle_home>/j
....Evidently you have to separate your search paths with semi-colons in windows instead of the colons listed above [as in CLASSPATH].
It would be best to review the docs for your release here:
http://download-east.oracle.com/docs/cd/B25221_04/index.htm
and there you should find a complete list of variables you have to set for Windows. Looking at my documentation (Release 2), it doesn't appear windows has the same requirements as unix for env vars. But then, it doesn't have the same power as unix either... ;-p
Hope this helps.
http://download-east.oracle.com/docs/cd/B25221_04/index.htm
and there you should find a complete list of variables you have to set for Windows. Looking at my documentation (Release 2), it doesn't appear windows has the same requirements as unix for env vars. But then, it doesn't have the same power as unix either... ;-p
Hope this helps.
ASKER
Thank you for your prompt response bpeterse.
I don't see the jdbc.jar and jndi.jar in the Directories that you specified. And I was not given any jar files from the Customer. Do I have to give the ojdbc14.jar instead of jdbc.jar in the Variables, because that is the jar file being used in the DataSource settings. But not sure about the jndi.jar.
And when I looked in the link that you have sent me it only specified the Oracle_Home in the Envirinmental Variables along with TEMP and TMP .
I guess except the jndi.jar and jdbc.jar everything else is set.
Any ideas ? The error shows that there is an error at line 7 of the index.jsp file which says :
1.)<%@ page contentType="text/html;cha
2.)<%@ page import="com.bayer.cropscie
3.)
4.)
5.)<%
6.) ServerProperties serverProp = new ServerProperties();
7.) serverProp.setDataSource(n
Here is the error message when I try to log on
500 Internal Server Error
java.util.MissingResourceE
//out.println("Nazeer Test = " + serverProp.deployEnv);
What could be this ServerProepertie file ?
Let me know if ou have any ideas . Here is the error message
You say you've already configured your data source for this app - so how about commenting out line 7 and see what happens. It sure seems to be puking on the data source setting. I don't think you'll need the ojdbc14.jar if you're using the Oracle 10gAS to connect to an oracle RDBMS. I just checked my server and couldn't find it in there, however; it is used on our older servers where we're connecting from a tomcat server to an Oracle RB.
I sure hope this helps as I'm running out of ideas.... ;-)
I sure hope this helps as I'm running out of ideas.... ;-)
ASKER
You are Right , Oracle 10 g does not use ojdb14.jar. And I commented out the Line number 7 in the index.jsp and I was able to see the IndexPage after logging in. But I am getting another error saying "FileNot Found .......DayTimeServlet" Where actually there is one class file Related to this Servlet at that location mentioned in the error. I am not sure Why it is showing this errorr. Commenting out the 7th line really helped in going one step forward. Do you think there is something to do with this DayTimeServlet which is not getting instantiated at the time of the ServerStart ?
Please post the error output.
ASKER
Sure , Here is the Error from the log file.
06/11/15 14:16:39.60 HMP: 10.1.3.0.0 Stopped
06/11/15 14:16:39.216 10.1.3.0.0 Started
06/11/15 14:16:40.295 HMP: Error preloading servlet
javax.servlet.ServletExcep tion: Error instantiating servlet 'DaytimeServlet'. Servlet class com.bayer.cropscience.naft a.uscrop.h ierarchyma int.gui.Da ytimeServl et not found in web-application HMP
at com.evermind.server.http.H ttpApplica tion.servl etClassNot Found(Http Applicatio n.java:467 4)
at com.evermind.server.http.H ttpApplica tion.findS ervlet(Htt pApplicati on.java:46 39)
at com.evermind.server.http.H ttpApplica tion.findS ervlet(Htt pApplicati on.java:45 41)
at com.evermind.server.http.H ttpApplica tion.initP reloadServ lets(HttpA pplication .java:4730 )
at com.evermind.server.http.H ttpApplica tion.initD ynamic(Htt pApplicati on.java:10 19)
at com.evermind.server.http.H ttpApplica tion.<init >(HttpAppl ication.ja va:649)
at com.evermind.server.Applic ationState Running.ge tHttpAppli cation(App licationSt ateRunning .java:428)
at com.evermind.server.Applic ation.getH ttpApplica tion(Appli cation.jav a:512)
at com.evermind.server.http.H ttpSite$Ht tpApplicat ionRunTime Reference. createHttp Applicatio nFromRefer ence(HttpS ite.java:1 975)
at com.evermind.server.http.H ttpSite$Ht tpApplicat ionRunTime Reference. createHttp Applicatio nFromRefer ence(HttpS ite.java:1 958)
at com.evermind.server.http.H ttpSite$Ht tpApplicat ionRunTime Reference. getHttpApp lication(H ttpSite.ja va:1910)
at com.evermind.server.http.H ttpSite.st artHttpApp lications( HttpSite.j ava:1839)
at com.evermind.server.http.H ttpServer. startHttpA pplication s(HttpServ er.java:92 2)
at com.evermind.server.Applic ation.star t(Applicat ion.java:1 856)
at oracle.oc4j.admin.manageme nt.mbeans. J2EEStateM anageableO bjectBase. start(J2EE StateManag eableObjec tBase.java :213)
at oracle.oc4j.admin.manageme nt.mbeans. J2EEApplic ation.star t(J2EEAppl ication.ja va:1233)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at sun.reflect.misc.Trampolin e.invoke(M ethodUtil. java:36)
at sun.reflect.GeneratedMetho dAccessor5 0.invoke(U nknown Source)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at sun.reflect.misc.MethodUti l.invoke(M ethodUtil. java:239)
at javax.management.modelmbea n.Required ModelMBean .invokeMet hod(Requir edModelMBe an.java:10 71)
at javax.management.modelmbea n.Required ModelMBean .invoke(Re quiredMode lMBean.jav a:953)
at oracle.oc4j.admin.jmx.serv er.mbeans. model.Defa ultModelMB eanImpl.in voke(Defau ltModelMBe anImpl.jav a:700)
at com.sun.jmx.mbeanserver.Dy namicMetaD ataImpl.in voke(Dynam icMetaData Impl.java: 213)
at com.sun.jmx.mbeanserver.Me taDataImpl .invoke(Me taDataImpl .java:220)
at com.sun.jmx.interceptor.De faultMBean ServerInte rceptor.in voke(Defau ltMBeanSer verInterce ptor.java: 815)
at com.sun.jmx.mbeanserver.Jm xMBeanServ er.invoke( JmxMBeanSe rver.java: 784)
at oracle.oc4j.admin.jmx.serv er.state.A pplication StateFilte rMBeanServ er.invoke( Applicatio nStateFilt erMBeanSer ver.java:5 56)
at oracle.oc4j.admin.jmx.ejb. MBeanServe rEjbBean.i nvoke(MBea nServerEjb Bean.java: 365)
at oracle.oc4j.admin.jmx.ejb. MBeanServe rEjbBean.i nvoke(MBea nServerEjb Bean.java: 332)
at sun.reflect.GeneratedMetho dAccessor5 7.invoke(U nknown Source)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at com.evermind.server.ejb.in terceptor. joinpoint. EJBJoinPoi ntImpl.inv oke(EJBJoi nPointImpl .java:35)
at com.evermind.server.ejb.in terceptor. Invocation ContextImp l.proceed( Invocation ContextImp l.java:69)
at com.evermind.server.ejb.in terceptor. system.DMS Intercepto r.invoke(D MSIntercep tor.java:5 2)
at com.evermind.server.ejb.in terceptor. Invocation ContextImp l.proceed( Invocation ContextImp l.java:69)
at com.evermind.server.ejb.in terceptor. system.TxS upportsInt erceptor.i nvoke(TxSu pportsInte rceptor.ja va:37)
at com.evermind.server.ejb.in terceptor. Invocation ContextImp l.proceed( Invocation ContextImp l.java:69)
at com.evermind.server.ejb.in terceptor. system.Sec urityRoleI nterceptor .invoke(Se curityRole Intercepto r.java:48)
at com.evermind.server.ejb.in terceptor. Invocation ContextImp l.proceed( Invocation ContextImp l.java:69)
at com.evermind.server.ejb.in terceptor. system.DMS Intercepto r.invoke(D MSIntercep tor.java:5 2)
at com.evermind.server.ejb.in terceptor. Invocation ContextImp l.proceed( Invocation ContextImp l.java:69)
at com.evermind.server.ejb.St atefulSess ionEJBObje ct.OC4J_in vokeMethod (StatefulS essionEJBO bject.java :840)
at MBeanServerEjbRemote_State fulSession BeanWrappe r0.invoke( MBeanServe rEjbRemote _StatefulS essionBean Wrapper0.j ava:50)
at sun.reflect.GeneratedMetho dAccessor5 6.invoke(U nknown Source)
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at com.evermind.server.rmi.Rm iMethodCal l.run(RmiM ethodCall. java:53)
at com.evermind.util.Releasab leResource PooledExec utor$MyWor ker.run(Re leasableRe sourcePool edExecutor .java:303)
at java.lang.Thread.run(Threa d.java:595 )
06/11/15 14:16:40.295 HMP: 10.1.3.0.0 Started
06/11/15 14:16:39.60 HMP: 10.1.3.0.0 Stopped
06/11/15 14:16:39.216 10.1.3.0.0 Started
06/11/15 14:16:40.295 HMP: Error preloading servlet
javax.servlet.ServletExcep
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.Applic
at com.evermind.server.Applic
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.http.H
at com.evermind.server.Applic
at oracle.oc4j.admin.manageme
at oracle.oc4j.admin.manageme
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at sun.reflect.misc.Trampolin
at sun.reflect.GeneratedMetho
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at sun.reflect.misc.MethodUti
at javax.management.modelmbea
at javax.management.modelmbea
at oracle.oc4j.admin.jmx.serv
at com.sun.jmx.mbeanserver.Dy
at com.sun.jmx.mbeanserver.Me
at com.sun.jmx.interceptor.De
at com.sun.jmx.mbeanserver.Jm
at oracle.oc4j.admin.jmx.serv
at oracle.oc4j.admin.jmx.ejb.
at oracle.oc4j.admin.jmx.ejb.
at sun.reflect.GeneratedMetho
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.in
at com.evermind.server.ejb.St
at MBeanServerEjbRemote_State
at sun.reflect.GeneratedMetho
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.evermind.server.rmi.Rm
at com.evermind.util.Releasab
at java.lang.Thread.run(Threa
06/11/15 14:16:40.295 HMP: 10.1.3.0.0 Started
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So, from all your past comments I can confirm that there is nothing wrong with the Deployment or Oracle Application server or Apache Tomcat. I will do the same thing like you said.Contact the Developer and tell him to Re-build the EAR file.
Thank you for all your help.
Thank you for all your help.