Implementing Java SSL in 10g database: Cannot find trusted cert
I am currently running a 10g database, with java procedures stored in it. One of these creates a SSL connection so that it can extract data. After numerous problems and snags along the way, I can't figure this one out. When the java tries to create a connection, I get a SSLHandshake exception, and it says that a trusted certificate cannot be found. I am familiar with the keytool, but when I run it and import the proper certificate, it creates a .keystore file in my home directory of the user I am logged into, on the server that I am logged into. Does anyone know where the JVM of the database looks for the .keystore file? I'm pretty sure the problem is it is just looking in the wrong place. Any input is appreciated.
Thanks
Wes H.
Hi,
I am also facing the exact same issue, any help will be appreciated.
Thanks!
Similar Messages
-
Could not find trusted cert in chain
Hi,
Environment:
The server and client are both located on the same Sun Solaris 2.8 box.
MQ Series V 5.3 CSD07
Could not find trusted cert in chain.
main, SEND SSL v3.0 ALERT: fatal, description = certificate_unknown
main, WRITE: SSL v3.0 Alert, length = 2
JMSException thrown javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:QM_SSL'
Linked Exception com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2397
Has anyone encounter this error? I have self-signed certificates and the CA is installed on both client and server and I have CA signed certificate on Client (clients.jks)
Any pointer would be highly appreciated. Thank you.
Raj1.Check the cacerts path if u are using cacerts
2.U Can use keystore
3.U need to install the certificate on the client machine as the warning is treated as error on handshake.
4.to debug use:
On IBM's JVM, add: -Djavax.net.debug=true
On Sun's JVM, add: -Djavax.net.debug=ssl -
Java.io.FileNotFoundException: The system cannot find the path specified
hi all.
have this problem
i have a jsp with the codes as follows:
try{
File f=new File("C:/Program Files/Apache Group/Tomcat 4.1/webapps/iiso/account.xml");
FileWriter fw=new FileWriter(f,false);
XMLConverter xmlc=new XMLConverter();
String msg=xmlc.ConvertToXML("account");
fw.write(msg);
fw.flush();
System.out.println("file printed");
}catch(IOException ioe)
System.out.println(ioe);
}it works prefectly on my comp but however when i posted it up on the dev server
which is running on tomcat 4.0
i got this error:
java.io.FileNotFoundException: P:\Program Files\Apache Tomcat 4.0\webapps\IISOelearn\account.xml (The system cannot find the path specified)
the dev server is running on P drive.
tried installing tomcat 4.0 on my com and the code runs well.
could there be other sources tt i miss out causing the error?
many thanx in advance!
=)Most probably the server has a different path setup from you.
Instead of hardcoding the full file path into your app, you should have the following
ServletContext application = getServletConfig().getServletContext();
String fileName = application.getRealPath("/account.xml");
File f = new File(fileName);The method ServletContext.getRealPath takes a WEBSITE relative link, and turns it into a real location on disk.
This makes your code completely independant of what machine it is installed on.
Cheers,
evnafets -
Need help, implementing streams between oracle 10g databases
Hello all.
Please help me, and give me instruction if any body implement streams between databases (Oracle 10g)
I have implemented streams between schema table on (10g) and result was success.
Firstly I want to know some thing, such as:
1) Is it possible make streams with conditions, (make only DML or DDL i know) but make DML and not DELETE operation, just INSERT and UPDATE operations on the table?
2) After changes was applied on target database, can I delete that records which copied (replicated) on source database?
I have 2 databases and one of them is for archive purpose (I want use it as target database for streams). Other one is PROD database, applications make DML operation.
I) record insert with null status
II) processing (status 1)
III) if success (status 2) unsuccess (status 3)
For now, I have cron script on (Linux host) and in this script has PLSQL anonymous block and it works couple times during the day. This script works as archive.
My task is: Make it via Oracle streams.
Thank you beforehand.For conditions on the type of operation (Insert) check in the doc after apply handler and you can associate what ever code and conditions you want. You can also choose to work with a subset rules but there are some restriction as no lobs :
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#insertedID7|http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#insertedID7]
For a complete list of the restrictions :
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/ap_restrictions.htm#i1012965|http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/ap_restrictions.htm#i1012965] -
Problem with Java keystore and certificates (unable to find valid cert path
Our program is made so that when a certificate is not signed by a trusted Certification Authority, it will ask the user if he/her wishes to trust the certificate or not. If they decide to trust the certificate, it will accept the self signed certificate and import it into the keystore and then use that certificate to log the user in. This works fine. It will import the certificate into the keystore and use the specified ip address to establish a connection with the LDAP server (Active Directory in our case) and authenticate properly. However, the problem arises when we then try and connect to a different ip address (without restarting tomcat, if we restart tomcat, it works fine...). It imports the certificate into the keystore fine, but always gives the exception
"Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
and does not authenticate with our LDAP server (which is Active Directory). The problem seems to be that it is no longer looking at the System.setProperty("javax.net.ssl.trustStore", myTrustStore);
I have tried multiple times to just reset this property and try and "force" it to read from my specified trust file when this error happens. I have also imported the certificates directly into the <java_home>/jre/lib/security/cacerts and <java_home>/jre/lib/security/jssecacerts directories as the java documentation says that it will look at those directories first to see if it can find a trusted certificate. However, this does not work either. The only way that I can get this to work is by restarting tomcat all together.
If both of the certificates are already in the keystore before tomcat is started up, everything will work perfect. Again, the only problem is after first connecting to an IP address using TLS and importing the certificate, and then trying to connect to another IP address with a different certificate and import it into the keystore.
One of the interesting features of this is that after the second IP address has failed, I can change the IP address back to the first one that authenticated successfully and authenticate successfully again (ie
I use ip 1.1.1.1, import self signed certificate, authenticates successfully
login with ip 2.2.2.2 import self signed certificate, FAILS
login again with 1.1.1.1 (doesn't import certificate because it is already in keystore) successfully authenticates
Also, I am using java 1.5.0_03.
Any help is greatly appreciated as I've been trying to figure this out for over a week now.
ThanksPlease don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
I'm locking this thread now. -
After upgrade to JHS Production: cannot find two standard java Classes
Hi, First: congratulations on the Production release. Great that it is there.
After making several backups, I have upgraded to JHS build 91 Production release (I came from JHS build 78).
1. after upgrade to JHS Production, I tested my application first (so before re-enabling Jheadstart on the ViewController and regenerating pages). The application still worked fine
2. I re-enabled JHeadstart on the VC project
3. I opened my Applictation Definition Files and saved them (I noticed a deprecated property OverwriteUiModel that disappeared after saving)
4. I ran the generator on my three App. Def. Files.
5. I rebuild the whole application
6. I ran the application, the first (Table-style) page comes up fine
7. But when clicking on one of the records in the Table to navigate to the Form page...the Embedded OC4J exits with a fatal error:
Fatal error: Cannot find class java/lang/StackOverflowError
Fatal error: Cannot find class java/lang/NullPointerException
The last part of the log before these fatal errors is as follows:
06/08/11 10:12:47 [1171] Binding param "Bind_IdPerson": 210002
06/08/11 10:12:47 [1172] **** refreshControl() for BindingContainer :PersonsPageDef
06/08/11 10:12:47 [1173] *** DCDataControl.sync() called from :DCBindingContainer.refresh
06/08/11 10:12:47 [1174] **** refreshControl() for BindingContainer :PersonsPageDef
06/08/11 10:12:47 [1175] Invoke method Action:999
06/08/11 10:12:47 [1176] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkTypes
10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkTypes: bind parameter values have not changed, NO Requery performed
06/08/11 10:12:47 [1177] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1178] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
06/08/11 10:12:47 [1179] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1180] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c60
06/08/11 10:12:47 [1181] Invoke method Action:999
06/08/11 10:12:47 [1182] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkStatuses
10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkStatuses: bind parameter values have not changed, NO Requery performed
06/08/11 10:12:47 [1183] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1184] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
06/08/11 10:12:47 [1185] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1186] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c61
06/08/11 10:12:47 [1187] Invoke method Action:999
06/08/11 10:12:47 [1188] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeOrgPersonTypes
10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeOrgPersonTypes: bind parameter values have not changed, NO Requery performed
06/08/11 10:12:47 [1189] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1190] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
06/08/11 10:12:47 [1191] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1192] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c62
06/08/11 10:12:47 [1193] Invoke method Action:999
06/08/11 10:12:47 [1194] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataValidationStatuses
10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataValidationStatuses: bind parameter values have not changed, NO Requery performed
06/08/11 10:12:47 [1195] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1196] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
06/08/11 10:12:47 [1197] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1198] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c63
06/08/11 10:12:47 [1199] Invoke method Action:999
06/08/11 10:12:47 [1200] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataDivisionStatuses
10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataDivisionStatuses: bind parameter values have not changed, NO Requery performed
06/08/11 10:12:47 [1201] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:47 [1202] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
06/08/11 10:12:47 [1203] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
06/08/11 10:12:48 [1204] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c64
06/08/11 10:12:48 [1205] *** DCDataControl.sync() called from :DCBindingContainer.refresh
06/08/11 10:12:48 [1206] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1207] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1208] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1209] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1210] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1211] ##### QueryCollection.finl no RowFilter
06/08/11 10:12:48 [1212] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1213] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1214] Business Object Browsing may be unavailable
06/08/11 10:12:48 [1215] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovAddressesPageDef.xml
06/08/11 10:12:48 [1216] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1217] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1218] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1219] Executing and syncing on IteratorBinding.refresh from :AddrLinkTypeIterator
06/08/11 10:12:48 [1220] Resolving VO:CodeAddrLinkTypes for iterator binding:AddrLinkTypeIterator
06/08/11 10:12:48 [1221] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1222] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1223] Business Object Browsing may be unavailable
06/08/11 10:12:48 [1224] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovPersonAddrOrganizationsPageDef.xml
06/08/11 10:12:48 [1225] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1226] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1227] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1228] Executing and syncing on IteratorBinding.refresh from :AddrLinkStatusIterator
06/08/11 10:12:48 [1229] Resolving VO:CodeAddrLinkStatuses for iterator binding:AddrLinkStatusIterator
06/08/11 10:12:48 [1230] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1231] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
06/08/11 10:12:48 [1232] Business Object Browsing may be unavailable
06/08/11 10:12:48 [1233] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovOrganizationsPageDef.xml
06/08/11 10:12:48 [1234] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1235] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:48 [1236] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
06/08/11 10:12:49 [1237] Executing and syncing on IteratorBinding.refresh from :OrgPersonTypeIterator
06/08/11 10:12:49 [1238] Resolving VO:CodeOrgPersonTypes for iterator binding:OrgPersonTypeIterator
Fatal error: Cannot find class java/lang/StackOverflowError
Fatal error: Cannot find class java/lang/NullPointerException
Process exited with exit code -1.
Any idea why this might have happened, just because I upgrade to JHS production release?
I am reverting to build 78 again to continue developing, but hope to be able to get working with the prod release soon, but I lack knowledge to determine where the error occurs...
ToineSandra,
I have the (ugly) feeling that I am facing the problem mentioned in http://forums.oracle.com/forums/thread.jspa?messageID=1211326? : it looks like when a JSPX page gets too complex, the Embedded OC4J raises this StackOverFlow class notfound error :-(. Probably the (it only hits me when navigating to the most complex page) generated page generated with build 78 was fine, but the generated page after build 91 has become too complex, allthough nothing changed in between. What I can see from the difference between the before and after build 91 situation for all pages, is that you have added the <id=...> arguments to all ADF elements, like [id="PersonsSaveButton"] in:
<af:commandButton actionListener="#{bindings.Commit.execute}"
action="Commit"
textAndAccessKey="#{nls['SAVE_BUTTON_LABEL_PERSONS']}"
id="PersonsSaveButton">
<af:resetActionListener/>
</af:commandButton>In build78 these were not there. As far as I can see another difference after generating with build 91 is a new element in the page:
<af:panelGroup rendered="#{(bindings.PersonsIterator.currentRowIndexInRange!=-1 and bindings.PersonsIterator.findMode!='true')}">I have not seen a proper solution for this on the JDeveloper forum. I noticed people asking if there is a kind of 'maximum' on how complex a page can get before this error situation happens. No answer on that found (you do not want to know there is a maximum anyway).
The specific page is a master with 5 stacked detail regions and three "use as LOV" groups. Further on about 30 domains are used...
And the page has not finished yet, it will get more "complex" that this. I hope someone knows a good solution so that I can continue to use the Embedded OC4J for testing, otherwise developing wil get very time consuming if I have to deploy to AS every time...something I cannot afford since the project deadline is getting nearer and nearer.
Toine -
Cannot find class in same directory during compilation
hi
i have two file hello.java & hi.java in same directory having simple println statements.
hello.java
public class hello {
public static void main(String[] args) {
System.out.println("hello");
new hi();
}hi.java
class hi {
hi() {
System.out.println("hi");
}hi.java has compiled
but when i try to compile hello.java i get error saying "Cannot find symbol class hi"
i've tried giving classpath pointing to current directory during compilation as
javac -classpath . hello.java
but this also does not work.
Please let me know if i am missing anything?
thanks in advance...The javac compiler uses the Classpath to find classes. If your directory structure is c:\myjava\buron\doeacc (for example) then you need to have c:\myjava in the Classpath when you compile. For example javac -classpath c:\myjava MainFrame.java
-
Cannot find symbol error.. really stuck.
I have a class named Rectangle.java. It is in a package "Geometry" together with Point.java and Line.java. But when I try to use Rectangle.java in my main program, MyRect.java, it gives me a "cannot find symbol" error, particularly the methods and sometimes the variables. I tried compiling just my Rectangle class and it compiled fine.. And I tried the Line and Point classes on another program and it works fine... well probably because the Line and Point classes are from a book(Ivor Horton's Beginning Java 2).. I am just starting out in Java. :)
Rectangle.java
package Geometry;
public class Rectangle{
public Point[] corner = new Point[4];
public String name;
public Rectangle(){
corner[0].setPoints(0,0);
corner[1].setPoints(1,0);
corner[2].setPoints(0,1);
corner[3].setPoints(1,1);
name = new String("Unknown");
public Rectangle(double point1_x,double point1_y,double point2_x, double point2_y, String Name){
corner[0].setPoints(point1_x, point1_y);
corner[3].setPoints(point2_x, point2_y);
corner[1].setPoints(point2_x, point1_y);
corner[2].setPoints(point1_x, point2_y);
name = new String(Name);
public Rectangle(final Rectangle oldRect, String Name){
corner[0] = oldRect.corner[0];
corner[3] = oldRect.corner[3];
corner[1] = oldRect.corner[1];
corner[2] = oldRect.corner[2];
name = new String(Name);
public double getWidth(){
return corner[0].distance(corner[1]);
public static void printRectangle(final Rectangle rect){
for(int i= 0;i<4;i++){
System.out.println("Corner"+(i+1)+" X: "+rect.corner.getX()+" Corner"+(i+1)+" Y: "+rect.corner[i].getY());
System.out.println();
public String toString(){
return ("Name: "+name);
}MyRect.java
import Geometry.*;
public class MyRect{
public static void main(String[] args){
Rectangle myRect = new Rectangle(0,0,2,1);
Rectangle copyRect = new Rectangle(myRect);
printRectangle(myRect);
double width = myRect.getWidth();
}and the errors:
MyRect.java:4: cannot find symbol
symbol : constructor Rectangle(double,double,double,double,java.lang.String)
location: class Rectangle
Rectangle myRect = new Rectangle(0.0,0.0,2.0,1.0,"My Rectangle")
^
MyRect.java:9: cannot find symbol
symbol : variable name
location: class Rectangle
System.out.println(myRect.name);
^
2 errorsAre you sure you have posted the whole content of MyRect.java
import Geometry.*;
public class MyRect{
public static void main(String[] args){
Rectangle myRect = new Rectangle(0,0,2,1);
Rectangle copyRect = new Rectangle(myRect);
printRectangle(myRect);
double width = myRect.getWidth();
}I don't see the following error line in the code you have given.
MyRect.java:4: cannot find symbol
symbol : constructor Rectangle(double,double,double,double,java.lang.String)
location: class Rectangle
Rectangle myRect = new Rectangle(0.0,0.0,2.0,1.0,"My Rectangle")
^
MyRect.java:9: cannot find symbol
symbol : variable name
location: class Rectangle
System.out.println(myRect.name);
^
2 errors -
Jardiff Failing Cannot find path for creation
I get the following error when I try to enable versioning:
2002-08-12 17:54:53 Generating JarDiff for spotlight.jar 1.4->1.5
2002-08-12 17:54:53 Failed to genereate jardiff
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1294)
at java.io.File.createTempFile(File.java:1382)
at java.io.File.createTempFile(File.java:1419)
at com.sun.javaws.servlet.JarDiffHandler.generateJarDiff(JarDiffHandler.java:156)
Any ideasWhat version of java are u running the servlet on ?
-
Cannot find api to implement RIDC connect WebCenter Content Server over SSL
Hi WebCenter Content team,
I find the following sample code from http://docs.oracle.com/cd/E23943_01/doc.1111/e10807/c23_ridc.htm#BJFIHEHI
Example 23-6 IDC Protocol over SSL
+// build a secure IDC client as cast to specific type+
IntradocClient idcClient = (IntradocClient)
manager.createClient("idcs://localhost:4443");
+// set the SSL socket options+
config.setKeystoreFile("ketstore/client_keystore"); //location of keystore file
config.setKeystorePassword ("password"); // keystore password
config.setKeystoreAlias("SecureClient"); //keystore alias
config.setKeystoreAliasPassword("password"); //password for keystore alias
I downloaded RIDC package from Individual Component Downloads in http://www.oracle.com/technetwork/middleware/webcenter/content/downloads/index.html.
But cannot find the above methods in IdcClientConfig and its subclasses. For example, cannot compile the following code.
IdcClientConfig config = idcClient.getConfig();
config.setKeystoreFile("ketstore/client_keystore"); // no such method
Could you please give a correct example.
Thanks a lot.Most likely the port. RIDC listens usually at 4444, 16200 is the port for browser-based communication.
-
Cannot find symbl method update Date(int,java.util.Date)
I get following error
cannot find symbl method update Date(int,java.util.Date) on compling class called GuestDataBean at line ( rowSet.updateDate( 4, guest.getDate() ); ).
GustBean.java. I need help on why I get it.
// JavaBean to store data for a guest in the guest book.
package com.deitel.jhtp6.jsp.beans;
import java.util.*;
public class GuestBean
private String firstName;
private String lastName;
private String email;
private Date date;
private String message;
//Constructors
public GuestBean(){
public GuestBean(String firstname, String lastname, String email,Date date,String message){
this.firstName=firstname;
this.lastName=lastName;
this.email=email;
this.date=date;
this.message=message;
// set the guest's first name
public void setFirstName( String name )
firstName = name;
} // end method setFirstName
// get the guest's first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set the guest's last name
public void setLastName( String name )
lastName = name;
} // end method setLastName
// get the guest's last name
public String getLastName()
return lastName;
} // end method getLastName
// set the guest's email address
public void setEmail( String address )
email = address;
} // end method setEmail
// get the guest's email address
public String getEmail()
return email;
} // end method getEmail
public void setMessage( String mess)
message = mess;
} // end method setEmail
// get the guest's email address
public String getMessage()
return message;
} // end method getEmail
public void setDate( Date dat )
date = dat;
} // end method setEmail
// get the guest's email address
public Date getDate()
return date;
} // end method getEmail
} // end class GuestBean
GuestDataBean.java/**
* @(#)GuestDataBean.java
* @author
* @version 1.00 2008/7/18
// Class GuestDataBean makes a database connection and supports
// inserting and retrieving data from the database.
package com.deitel.jhtp6.jsp.beans;
import java.sql.SQLException;
import javax.sql.rowset.CachedRowSet;
import java.util.ArrayList;
import com.sun.rowset.CachedRowSetImpl; // CachedRowSet implementation
import java.sql.*;
public class GuestDataBean
private CachedRowSet rowSet;
// construct TitlesBean object
public GuestDataBean() throws Exception
// load the MySQL driver
Class.forName( "org.gjt.mm.mysql.Driver" );
// specify properties of CachedRowSet
rowSet = new CachedRowSetImpl();
rowSet.setUrl( "jdbc:mysql://localhost:3306/virsarmedia" );
rowSet.setUsername( "root" );
rowSet.setPassword( "" );
// obtain list of titles
rowSet.setCommand(
"SELECT firstName, lastName, email,date,message FROM guest" );
rowSet.execute();
} // end GuestDataBean constructor
// return an ArrayList of GuestBeans
public ArrayList< GuestBean > getGuestList() throws SQLException
ArrayList< GuestBean > guestList = new ArrayList< GuestBean >();
rowSet.beforeFirst(); // move cursor before the first row
// get row data
while ( rowSet.next() )
GuestBean guest = new GuestBean();
guest.setFirstName( rowSet.getString( 1 ) );
guest.setLastName( rowSet.getString( 2 ) );
guest.setEmail( rowSet.getString( 3 ) );
guest.setDate( rowSet.getDate( 4 ) );
guest.setMessage( rowSet.getString( 5 ) );
guestList.add( guest );
} // end while
return guestList;
} // end method getGuestList
// insert a guest in guestbook database
public void addGuest( GuestBean guest ) throws SQLException
rowSet.moveToInsertRow(); // move cursor to the insert row
// update the three columns of the insert row
rowSet.updateString( 1, guest.getFirstName() );
rowSet.updateString( 2, guest.getLastName() );
rowSet.updateString( 3, guest.getEmail() );
rowSet.updateDate( 4, guest.getDate() );
rowSet.updateString( 5, guest.getMessage() );
rowSet.insertRow(); // insert row to rowSet
rowSet.moveToCurrentRow(); // move cursor to the current row
rowSet.commit(); // propagate changes to database
} // end method addGuest
} // end class GuestDataBeanThis isn't a JSP question, it better belongs in the JavaProgramming, or JDBC forums.
But the problem is because the updateDate method uses a java.sql.Date object and you are giving it a java.util.Date object. You have to convert from java.util.Date to java.sql.Date. See: [the api for java.sql.Date|http://java.sun.com/javase/6/docs/api/java/sql/Date.html] .
Edited by: stevejluke on Jul 21, 2008 5:43 PM -
Java.lang.RuntimeException: Cannot find FacesContext
Error 500--Internal Server Error
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
at jsp_servlet.__servicemethod_jspx._jspx___tag0(__servicemethod_jspx.java:90)
at jsp_servlet.__servicemethod_jspx._jspService(__servicemethod_jspx.java:65)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
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:300)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
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:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
*** Using port 7101 ***
"C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\bin\startWebLogic.cmd"
[waiting for the server to complete its initialization...]
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
WLS Start Mode=Development
CLASSPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\OracleBI\web\bin;C:\OracleBI\web\catalogmanager;C:\OracleBI\SQLAnywhere;C:\Program Files\Java\jdk1.5.0_15\bin;C:\OracleBI\server\Bin;C:\ADE\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\emacs\bin;c:\PROGRAM FILES\TERATERM;C:\CYGWIN\BIN;c:\Program Files\WinZip;\\StCifsRR1.us.oracle.com\packages\windows\packages\farm\farm;\\StCifsRR1.us.oracle.com\packages\windows\packages\farm\sfe\generic;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80 "-Dhttp.nonProxyHosts=*oraclecorp.com|*oracle.com|localhost|localhost.localdomain|127.0.0.1|::1|sgodavar-pc.us.oracle.com|sgodavar-pc" -Dhttps.proxyHost=www-proxy.us.oracle.com -Dhttps.proxyPort=80 "-Dhttps.nonProxyHosts=*oraclecorp.com|*oracle.com|localhost|localhost.localdomain|127.0.0.1|::1|sgodavar-pc.us.oracle.com|sgodavar-pc" -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1 -Doracle.server.config.dir=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.security.jps.config=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
<Oct 5, 2010 10:31:50 AM PDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Microsystems Inc.>
<Oct 5, 2010 10:31:51 AM PDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
<Oct 5, 2010 10:31:53 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Oct 5, 2010 10:31:53 AM PDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Oct 5, 2010 10:31:53 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Oct 5, 2010 10:31:53 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00009. Log messages will continue to be logged in C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
<Oct 5, 2010 10:31:53 AM PDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
<Oct 5, 2010 10:32:01 AM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Oct 5, 2010 10:32:06 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Oct 5, 2010 10:32:06 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\access.log00005. Log messages will continue to be logged in C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\access.log.>
<Oct 5, 2010 10:32:20 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Oct 5, 2010 10:32:20 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Oct 5, 2010 10:32:30 AM PDT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application BrowseEditApp is not versioned.>
<Oct 5, 2010 10:32:46 AM PDT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application methodActionInvokeAction is not versioned.>
<Oct 5, 2010 10:33:21 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Oct 5, 2010 10:33:21 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00009. Log messages will continue to be logged in C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
<Oct 5, 2010 10:33:21 AM PDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Oct 5, 2010 10:33:24 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Oct 5, 2010 10:33:24 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Oct 5, 2010 10:33:24 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
<Oct 5, 2010 10:33:24 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 144.25.110.215:7101 for protocols iiop, t3, ldap, snmp, http.>
<Oct 5, 2010 10:33:24 AM PDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
<Oct 5, 2010 10:33:25 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Oct 5, 2010 10:33:25 AM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
IntegratedWebLogicServer startup time: 101421 ms.
IntegratedWebLogicServer started.
[Running application service_method_app on Server Instance IntegratedWebLogicServer...]
[10:33:28 AM] ---- Deployment started. ----
[10:33:28 AM] Target platform is (Weblogic 10.3).
[10:33:31 AM] Retrieving existing application information
[10:33:32 AM] Running dependency analysis...
[10:33:32 AM] Deploying 2 profiles...
[10:33:34 AM] Wrote Web Application Module to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\service_method_app\ViewControllerWebApp.war
[10:33:36 AM] Wrote Enterprise Application Module to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\service_method_app
[10:33:36 AM] Deploying Application...
<Oct 5, 2010 10:33:37 AM PDT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application service_method_app is not versioned.>
[10:33:50 AM] Application Deployed Successfully.
[10:33:50 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
[10:33:50 AM] http://144.25.110.215:7101/service_method_app-ViewController-context-root
[10:33:50 AM] Elapsed time for deployment: 22 seconds
[10:33:50 AM] ---- Deployment finished. ----
Run startup time: 22250 ms.
[Application service_method_app deployed to Server Instance IntegratedWebLogicServer]
Target URL -- http://127.0.0.1:7101/service_method_app-ViewController-context-root/servicemethod.jspx
<Oct 5, 2010 10:33:51 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@5299877[app:service_method_app module:service_method_app-ViewController-context-root path:/service_method_app-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
at jsp_servlet.__servicemethod_jspx._jspx___tag0(__servicemethod_jspx.java:90)
at jsp_servlet.__servicemethod_jspx._jspService(__servicemethod_jspx.java:65)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
Truncated. see log file for complete stacktrace
>
<Oct 5, 2010 10:33:51 AM PDT> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Oct 5, 2010 10:33:51 AM PDT. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Oct 5, 2010 10:33:51 AM PDT SERVER = DefaultServer MESSAGE = [ServletContext@5299877[app:service_method_app module:service_method_app-ViewController-context-root path:/service_method_app-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
at jsp_servlet.__servicemethod_jspx._jspx___tag0(__servicemethod_jspx.java:90)
at jsp_servlet.__servicemethod_jspx._jspService(__servicemethod_jspx.java:65)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
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:300)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
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:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = sgodavar-pc TXID = CONTEXTID = 15a0f7a52bec9522:45602610:12b7d74678b:-8000-0000000000000014 TIMESTAMP = 1286300031515
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>
<Oct 5, 2010 10:33:55 AM PDT> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\documents and settings\sgodavar\application data\jdeveloper\system11.1.1.3.37.56.60\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_4 with a lockout minute period of 1.>Wow, I like stack traces ;-)
No indication what you try to do, no information about your environment either.
What I see is that the URL you use to start the app (if it is an app) has a suffix '.jspx' in it. This is normally not the case for Fusion Web apps. And the 'faces' part of the url is missing. So try http://127.0.0.1:7101/service_method_app-ViewController-context-root/faces/servicemethodTimo
@John: same idea :-) You beat me again... -
JMS Database Persistence Provider in OC4J 10131:system cannot find the path
I'm walking through the steps here with OC4J standalone 10131:
http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
And when I try to create the RA with a new RP I get the following exception in the logs. My datasource is setup and is tested. Thoughts?
oracle.sysman.ias.studio.j2ee.deploy.DeployUtil$DeploymentFailureException
at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:211)
at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:85)
at oracle.sysman.ias.studio.oc4j.jms.JMXDeployDbProviderAdminBean.deployDBProviderAndConfigure(JMXDeployDbProviderAdminBean.java:121)
at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.deployDBProvider(DeployDbProviderHelper.java:242)
at oracle.sysman.ias.studio.oc4j.jms.DeployDbProviderHelper.handleEvent(DeployDbProviderHelper.java:127)
at oracle.sysman.ias.studio.sdk.AbstractController.handleEvent(AbstractController.java:769)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:378)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283)
at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:297)
at oracle.cabo.servlet.UIXServlet.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.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
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.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.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.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: The system cannot find the path specified
at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:122)
at oracle.sysman.ias.studio.j2ee.deploy.DeployPageUtil.getArchiveType(DeployPageUtil.java:105)
at oracle.sysman.ias.studio.j2ee.deploy.DeployUtil.deployArchive(DeployUtil.java:133)
... 33 more
Caused by: java.util.zip.ZipException: The system cannot find the path specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
... 35 moregday Jason.
Not sure off the top of my head, looks like something is missing.
Caused by: java.util.zip.ZipException: The system cannot find the path specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.oc4j.admin.jmx.shared.util.JarTool.<init>(JarTool.java:119)
I'm not even sure what file is being deployed to create the RA/RP here, I'll see if I can find out.
-steve- -
Error: cannot find symbol implements..
I have an interface and I'm trying to implement.
package data_structures;
public interface ListADT<E> extends Iterable<E> {
//Method Signatures
and
package data_structures;
public class LinkedListDS<E> implements ListADT<E> {
//Code
And when I try to compile the class I get
LinkedListDS.java:3 error: cannot find symbol
public class LinkedListDS<E> implements ListADT<E> {
____________________________________^
symbol: class ListADT
And I'm not really sure what I'm doing wrong here or what exactly Java wants me to do to correct this error.What are you using to compile? If the command line, and not an IDE which will do this for you, then compile the interface, first.
-
Database Control on Windows - Gives error Cannot Find Server or DNS Error
hi all,
After installing 10g on Windows, the necessary services for my new db are running, listener is up.
But when I try to bring up Database Control via http://pnclultraprd.corporate.mem.5500/em/console/logon/logon
I get "The page cannot be displayed. Cannot find server'
I've not had this before on new installations and I'm stuck.
Any tips? thanks, JohnWhat is the status of the enterprise manager and agent,
emctl status dbconsole
emctl status agentHTH
Aman....
Maybe you are looking for
-
Is anyone aware of a leather holster that is big enough to accommodate the iPhone 4 with the wireless keyboard attached to it? Needs to be able to be clipped to a belt. Thank you.
-
WVC80N Recorded Video won't play in Media Player
I have a WVC80N camera. I'm able to view the video, live over the WEB with not problems. I can get the motion detection to work and email me video in .asf format that I can see fine. I was able to get the video Recording to work and save the *.AVI
-
Error with data source and jndi
Dave, I am using weblogic 6.1 now and I am still getting the same problem. Error: The DataSource name with the JNDI name: Organization can not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your
-
Import certificate from trading partner
Hi I got a certificate from my trading partner. (Communication is AS2) Now I have to import it to my B2B and use it while communicating with him Can someone tell me how to import this so that I can select the certificate in the Security tab? Thanks V
-
Outlook notification appears before email arrives in inbox
issue we have with a couple of folks, outlook notification appears before email arrives in inbox. any idea why this happens? if they click on the inbox, then click on another folder, then click back on the inbox, they email shows up. users are get