We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

pavan_immadi
pavan_immadi asked
on
Medium Priority
8,601 Views
Last Modified: 2013-12-01
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.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key HTTPServer7      at java.util.ResourceBundle.getObject(ResourceBundle.java:326)      at java.util.ResourceBundle.getString(ResourceBundle.java:286)      at com.bayer.cropscience.nafta.uscrop.hierarchymaint.ServerProperties.setDataSource(ServerProperties.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.service(OrionHttpJspPage.java:59)      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)      at java.lang.Thread.run(Thread.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,
Comment
Watch Question

Commented:
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.

Author

Commented:
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 ?

Commented:
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


Author

Commented:

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.ServletException: Error instantiating servlet 'DaytimeServlet'. Servlet class com.bayer.cropscience.nafta.uscrop.hierarchymaint.gui.DaytimeServlet not found in web-application HMP
      at com.evermind.server.http.HttpApplication.servletClassNotFound(HttpApplication.java:4674)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4639)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
      at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
      at com.evermind.server.Application.getHttpApplication(Application.java:512)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
      at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
      at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
      at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
      at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
      at java.lang.Thread.run(Thread.java:595)
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.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key HTTPServer7
      at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
      at java.util.ResourceBundle.getString(ResourceBundle.java:286)
      at com.bayer.cropscience.nafta.uscrop.hierarchymaint.ServerProperties.setDataSource(ServerProperties.java:87)
      at _index._jspService(_index.java:45)
      at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
      at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:662)
      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:370)
      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      at java.lang.Thread.run(Thread.java:595)

Commented:
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/internationalization settings all correct for the profile that starts up the OAS?  

Hope this helps.

Author

Commented:
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 ?



Commented:
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?

Author

Commented:
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.

Commented:
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.WE8ISO8859P1
ORA_NLS33=/<your_oracle_home>/ocommon/nls/admin/data
CLASSPATH=/<oracle_home>/j2ee/home/lib/jdbc.jar:/<oracle_home>/j2ee/home/lib/servlet.jar:/<oracle_home>/j2ee/home/lib/jndi.jar



Commented:
....Evidently you have to separate your search paths with semi-colons in windows instead of the colons listed above [as in CLASSPATH].

Commented:
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.

Author

Commented:

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;charset=windows-1252"%>
2.)<%@ page import="com.bayer.cropscience.nafta.uscrop.hierarchymaint.ServerProperties"%>
3.)
4.)
5.)<%
6.) ServerProperties serverProp = new ServerProperties();
7.) serverProp.setDataSource(null);
Here is the error message when I try to log on
500 Internal Server Error
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.ResourceBundle.getString(ResourceBundle.java:286)      at com.bayer.cropscience.nafta.uscrop.hierarchymaint.ServerProperties.setDataSource(ServerProperties.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.service(OrionHttpJspPage.java:59)      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)      at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)      at java.lang.Thread.run(Thread.java:595)


 
 
  //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

Commented:
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.... ;-)

Author

Commented:
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 ?

Commented:
Please post the error output.

Author

Commented:
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.ServletException: Error instantiating servlet 'DaytimeServlet'. Servlet class com.bayer.cropscience.nafta.uscrop.hierarchymaint.gui.DaytimeServlet not found in web-application HMP
      at com.evermind.server.http.HttpApplication.servletClassNotFound(HttpApplication.java:4674)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4639)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
      at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
      at com.evermind.server.Application.getHttpApplication(Application.java:512)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1958)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1910)
      at com.evermind.server.http.HttpSite.startHttpApplications(HttpSite.java:1839)
      at com.evermind.server.http.HttpServer.startHttpApplications(HttpServer.java:922)
      at com.evermind.server.Application.start(Application.java:1856)
      at oracle.oc4j.admin.management.mbeans.J2EEStateManageableObjectBase.start(J2EEStateManageableObjectBase.java:213)
      at oracle.oc4j.admin.management.mbeans.J2EEApplication.start(J2EEApplication.java:1233)
      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 sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
      at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:239)
      at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1071)
      at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:953)
      at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700)
      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      at oracle.oc4j.admin.jmx.server.state.ApplicationStateFilterMBeanServer.invoke(ApplicationStateFilterMBeanServer.java:556)
      at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:365)
      at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:332)
      at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
      at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
      at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:48)
      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
      at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:840)
      at MBeanServerEjbRemote_StatefulSessionBeanWrapper0.invoke(MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java:50)
      at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      at java.lang.Thread.run(Thread.java:595)
06/11/15 14:16:40.295 HMP: 10.1.3.0.0 Started
Commented:
Pavan_immadi,

If you've searched the WAR file that was given you for the 'Daytime_servlet', then it would appear that you still have an incomplete application.  Perhaps you could ask to have the app repackaged from the folks that initially gave it to you.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.