Working on Tomcat Server but same code is not working on oc4j server of E-B
Hello,
I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
ERROR MESSAGE:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
CODE JSP:
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
<meta
name="author"
content="MAX" />
<title>Test Register Page</title>
<link
rel="stylesheet"
href="css/style.css"
type="text/css"
media="screen" />
</head>
<body>
<div id="content">
<form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
<fieldset>
<legend>VIEW USER</legend>
<table border=1>
<tr>
<td width="200px" align="center"><b>Bank Name</b></td>
<td width="200px" align="center"><b>User Name</b></td>
</tr>
<%
Connection connection = null;
String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
ResultSet rs = null;
Statement statement = null;
try
// Get a Connection to the database
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
connection = DriverManager.getConnection(connectionURL,
"scott", "tiger");
statement = connection.createStatement();
rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
//Set 'authentication' flag
while (rs.next())
%>
<tr>
<td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
<td width="200px"><%= rs.getString("User_Name")%></td>
</tr>
<%
catch(SQLException e)
finally
rs.close();
statement.close();
connection.close();
%>
</table>
<label> </label>
</fieldset>
</form>
</div>
</body>
</html>
WEB xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<description>Register</description>
<display-name>Register</display-name>
<!-- Declare Servlets -->
<servlet>
<servlet-name>BaseServlet</servlet-name>
<servlet-class>BaseServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CategoryServlet</servlet-name>
<url-pattern>/Category</url-pattern>
</servlet-mapping>
<!-- Welcome File List -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
Edited by: bappy007 on Oct 10, 2010 1:57 AM
Edited by: bappy007 on Oct 10, 2010 1:58 AM
ERROR IN LOG FILE:
10/10/10 15:18:55.843 edwportal: Servlet error
java.lang.NullPointerException
at test.jspService(_test.java:93)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
Similar Messages
-
Camera could not start in LG handset but same code run well on nokia 6600
Hello !
my MMAPI code run well on nokia 6600 but same code can't implementing in any of LG handsets.
it throws media exception while initializing camera so any one have the solution for that?
premalTry editing boot.properties file in both Admin server and bi_server1 in these two locations
domain/servers/AdminServer/security/boot.properties
domain/servers/bi_server1/security/boot.properties
Once it is done,Try restarting and let us know the outcome.
Thanks, -
In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
<contextMenu idMso="ContextMenuFlaggedContactItem">
<splitButton idMso="DialMenu">
<menu>
<dynamicMenu id="CallContactwithFreedomvoice
" label="CallContactwithFreedomvoice"
getContent="OnGetContenttest" insertAfterMso="Call"/>
</menu> </splitButton> </contextMenu>Hi Narasimha prasad2,
Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
PL/SQL Block working fine but same code procedure is giving error.
Hi Experts,
I am executing procedure getting error ORA-27486: insufficient privileges
If It's PL/SQL block it's creating job classes.
Both the cases same user.
CREATE OR REPLACE PROCEDURE JOB_CLASS_PROC
AS
V_SQL VARCHAR2 (4000);
V_JOB_STEP VARCHAR2 (50);
BEGIN
-- Create Job Class if not exist
BEGIN
FOR i
IN (SELECT SNS.OWNER_NAME OWNER_NAME,
VDB.NAME
SNAME
FROM SCHEMA_NAMES SNS,
V$DATABASE VDB
WHERE OWNER_NAME NOT IN ('')
AND (OWNER_NAME || '_JOB_CLASS')
NOT IN
(SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
LOOP
V_SQL :=
'BEGIN
DBMS_SCHEDULER.CREATE_JOB_CLASS
job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
service => ''' || i.SNAME || ''',
comments => ''Job class for ' || i.owner_name || '''
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;';
EXECUTE IMMEDIATE V_SQL;
END LOOP;
END;
EXCEPTION
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
END JOB_CLASS_PROC;
DECLARE
V_SQL VARCHAR2 (4000);
V_JOB_STEP VARCHAR2 (50);
BEGIN
-- Create Job Class if not exist
BEGIN
FOR i
IN (SELECT SNS.OWNER_NAME OWNER_NAME,
VDB.NAME
SNAME
FROM SCHEMA_NAMES SNS,
V$DATABASE VDB
WHERE OWNER_NAME NOT IN ('')
AND (OWNER_NAME || '_JOB_CLASS')
NOT IN
(SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
LOOP
V_SQL :=
'BEGIN
DBMS_SCHEDULER.CREATE_JOB_CLASS
job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
service => ''' || i.SNAME || ''',
comments => ''Job class for ' || i.owner_name || '''
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;';
EXECUTE IMMEDIATE V_SQL;
END LOOP;
END;
EXCEPTION
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
END;
Why for same code procedure is giving error.
Please help me.
Thanks.Hi,
Then with the same grants how the below script is working.
If I put the below same script in Procedure it's not working.
DECLARE
V_SQL VARCHAR2 (4000);
V_JOB_STEP VARCHAR2 (50);
BEGIN
-- Create Job Class if not exist
BEGIN
FOR i
IN (SELECT SNS.OWNER_NAME OWNER_NAME,
VDB.NAME
SNAME
FROM SCHEMA_NAMES SNS,
V$DATABASE VDB
WHERE OWNER_NAME NOT IN ('')
AND (OWNER_NAME || '_JOB_CLASS')
NOT IN
(SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
LOOP
V_SQL :=
'BEGIN
DBMS_SCHEDULER.CREATE_JOB_CLASS
job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
service => ''' || i.SNAME || ''',
comments => ''Job class for ' || i.owner_name || '''
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;';
EXECUTE IMMEDIATE V_SQL;
END LOOP;
END;
EXCEPTION
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
END;
Please help me.
Thanks. -
I am getting and error code 150:30 when I try to use my CS4 AI, PS and AE. I tried uninstall and install again but same code
ok Can I tell when it is stopped or if it didn't work. It is still saying the same thing. I can't see a progress bar or anything. Do you have any idea how long it usually takes. Just curious so I know i din't make another mistake
-
My daughter can use facebook using an email address but same address will not open imessage
my daughter can use facebook using an email address but same address, any ideas ta.
You said " when trying to create an imessage account it won't accept the same e-mail address nor will it let me create a free icloud address as it says this device is not elegible for a free icloud address. "
Just what are you doing to create the account? -
My printer code says expired but same code continues to print from new printer photosmart 7510
Question is in subject heading. I see no way to get new printer code
Hello VMB,
In order to print a new printer code you must disable Web Services and re-enable it. Some printers have this option as 'Restore Factory Defaults" on the Web Services Menu. Once you have enabled Web Services it contacts the server for a new code that you can use to register your printer on ePrintCenter.
Hope this helps.
If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
Although I work for HP, my posts and replies are my own opinion and not those of HP. -
Java script not working in 1 pdf, but same script is NOT working in other
Dear Experts,
I have a problem with java script.
I have created 2 PDFs with the same Form name and sub form names.
I have written a javascript and this script seems to be working in one (Demand2.pdf) and NOT working in the other (Sample.pdf).
The link for Demand2.pdf is
https://acrobat.com/#d=XIydWx1RIU4oNdTySHtHfg
and the link for sample.pdf is
https://acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3w
Can you please guide me on this.
Many Thanks
BookFansHi,
The second file (Sample.pdf) is saved as Static. The script is changing the visual appearance of the form (showing and hiding objects). This requires the file to be saved as a Dynamic PDF. This is available in the save-as dialogue under the file name.
Good luck,
Niall -
Skype Number area codes do not include mine?
I need a skype number but area codes do not include mine??? wot do i do?
This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content. A link to this post appears where the post was originally added.Hi, Grapat, and welcome to the Community,
Unfortunately, Skype Numbers are not available for all exchanges, area codes, or even all states in the USA and all countries. We need to choose a Skype Number based upon what is listed at the time we are searching, or check back regularly to see if a particular exchange has been added to the list.
Regards,
Elaine
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often! -
Mountain Lion redemption code is not valid please help
I bought mountain lion and send me a invoice from apple
and they send a pdf files. it contains redepmtion code but that code is not valid?
I have no idea that situation
please helpContact Apple: http://www.apple.com/support/mac/app-store/contact/ They provided the code and it should work.
-
Tomcat : Hlow to run more than 1 instance of tomcat server on same machine?
Hi,
How to run more than 1 instance of tomcat server on the same machine.
I use tomcat 5.5. ,updated port number for second instance and tried to run,it takes the same old port number .No batch file available with this version to update the home directory to second instance to run the second server..
How to work on clustering and load balancing on tomcat server?
Any inputs?
Thanks in advance..
AniAnitha123 wrote:
We have only 1 dedicated server maintained by third party for hosting..
If are only getting your site hosted, then, normally, the host would handle clustering (to your sepcifications, of course, but it is normally the hosts responsibility).
If i need to implement clustering and load balancing for tomcat server then do we need to go for 2 different servers for production environment?
Yes, you would need two, or more, servers.
Also please guide me on how to implement clustering and load balancing for tomcat server by running 2 instances on 2 different machine? I'm a newbie to it..
It should have no (or at least minimal) impact on the code (as long as you are using beans, sessions, and the other components properly). It is handled by the web container (by the tomcat in this case). The tomcat documentation should show how to set it up (if it supports it all, I don't know, we don't have Tomcat at work, and at home I use only a single). -
when i open firefox web browser with my id and passwd then i cannot see my full data.but same work i we do on ie7, 8 or opera i can see my all data so please solve my this problem
i do all this work. but when i read that web script they read this type of script
function context(){
//This function takes care of Net 6 and IE.
return false;
and this side is developed in asp.jsp. in firefox it's not hatche data from server.so
with source code change how i can run this site on Mozilla firefox 14.
Please guide me for this problem -
Web service doesn't work on tomcat server
I uploaded the war file to tomcat server.
The structure as follows:
<MyWebServiceName>\classes (all the complied class files)
<MyWebServiceName>\wsdl (The generated wsdl file is in this folder)
<MyWebServiceName>\web.xml
But I can not get wsdl file from the url:
http://localhost:8080/<MyWebServiceName>/<MyWebServiceName>?wsdl
The error is the requested resource is not available.
I deloyed some other sample web services, they all work well. But I can not find any wsdl file for these web services on tomcat server. It is very strange.
Anyone can help me?Toshiba knowledge base - how to fix webcam - http://forums.toshiba.com/t5/Video-Display-Knowledge-Base/How-can-I-fix-my-webcam/ta-p/281393
Here is another post that gives some suggestions - http://www.pcauthorities.com/pc-errors/how-to-fix-webcam-problems/
S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!**** -
Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.
I rewrote code for debugging purpose and tried to catch error using GetLastError(); method,
but it only printed 0. Below is code snippet; I think Create() throw an exception
and code goes to catch block.
LONG ConnectTS(CString strIP, UINT n_Port)
try{
ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
if(!Create())
// Exception Line
n_Err = GetLastError();
return NET_INIT;
catch(...)
DWORD errorCode = GetLastError();
CString errorMessage
errorMessage.Format("%lu",errorCode);
ErrorLog (0, 0, "Image
System", (LPTSTR)(LPCTSTR)errorMessage);
return IS_ERR_WINDOWS;
Output: -
ConnectTS is calling Create [is going to call]
Image System
0 -
JApplet is not working in tomcat server
Hi All,
I am having problem running applet in my tomcat server. When i ran applet using appletviewer, it is working fine.
Due to applet restrictions, i signed oracle drivers jar file too. It is still saying oracle drivers not found. Could you please help me setting classpath for oracle drivers tooo.
I added path to oracle drivers in classpath in "autoexec.bat". Please let me know if i need to add the path elsewhere?
Added oracle drivers path to Classpath in autoexec.bat file:
;C:\oracle\ora92\jdbc\lib\classes111.jar
For time being, i gave permission to all local file requests in java.policy:
grant {
permission java.security.AllPermission;
Is there anything to do to make my applet work? Please let me know if you know the solution. I read many papers, but i am not understanding what they want me to do. Thank you for your time.
Regards,
bestpro.Aditya,
Are there any conditions to be met to invoke that BADI.Please put break points and check it out.
Thanks
Bala Duvvuri
Maybe you are looking for
-
I am getting an error message when I try to burn a cd
I am getting an eror message when I try to burn a cd of an iTunes playlist. The number that came up was 4310. Help!
-
Been searching for years for a developer who can assist with a unique situation where we require an html application to submit form data in a remote location where web access is not possible. Any suggestions would be welcomed. We have the pages set u
-
Connecting to enterprise TTLS+PAP wireless
Ok, here's the problem. I can't connect to our enterprise wireless. I'm one of the network admins, and our director has purchased an iPad, and want to be able to connect it to our internal wireless network. It's a RADIUS server that uses WPA2 Enterpr
-
Which is better, Kindle Plugin or Calibre?
I am wanting to create a kindle friendly file of the book I am working on. I know that Amazon released a Kindle Plugin for ID but I have read that there are various issues that it has because it is free and a beta version. Anyway, for those of you wh
-
Singing XML Data with PKCS#7 with SHA1withRSA
Dear All I am using the following code to sign xml message with PKCS#7 with SHA1withRSA. But I am facing bad signature error from the server, they are telling me that this is signed correctly. Please can anybody give some idea that i doing correctly