Javax.servlet.Filter, throw file not found exception
I want to use a url which is not exists to let the filter run.
In the method doFIlter(), if the URL is this one, I will return and do not run chain.doFilter
Why throw FIle not found exception? Will the fileter check the url whether exist or not?
I use the URL to let the filter run, but do not want to go to the URL.What should happen if someone requests the URL from the server ?
Nothing is not possible.
One possibilty is to send the HTTP Response Code 204 - No Content
The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation. The response MAY include new or updated metainformation in the form of entity-headers, which if present SHOULD be associated with the requested variant.
If the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent's active document view, although any new or updated metainformation SHOULD be applied to the document currently in the user agent's active view.
The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.
(RFC 2616 Fielding, et al.)
Similar Messages
-
Error in compiling: file javax\servlet\jsp\PageContext.class not found
Hi,
i'm getting an error when I'm trying to compile an java file. The error is as follows:
cannot access javax.servlet.jsp.PageContext
file javax\servlet\jsp\PageContext.class not found
Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
Any help is very welcome!
Thankx,
Nuno.hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
hope this helps. -
Java File not Found Exceptions and other errors?
Hello experts, an issue on our Portal has caught my attention. Every time the J2EE Engine is restarted, a large amount of errors are written on our Trace files. When looking at the trace files, I see that most errors are Java IO File not Found Exceptions. For example:
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/database.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001800003A9E00044A5F2B9CCDEC#1207672520886#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/server.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/server.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001900003A9E00044A5F2B9CE7BC#1207672520893#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/security.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/security.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001D00003A9E00044A5F2BE5C172#1207672525667#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/applications.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/applications.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
In summary, the system cannot find the files server.1.log, security.1.log, database.1.log and applications.1.log. I tried manually adding these files (I created them on my computer and left them empty) on the path written, but it did not work, for some reason they are deleted.
Another error that is happening during restart of the engine is the following:
#1.5 #0012799E98F6001B0000002000003A9E00044A5F2BCC28D7#1207672523990#com.sap.tc.logging##com.sap.tc.logging.APILogger.FileLog[setFormatter()]######c3c3f240058911dd9ed80012799e98f6#SAPEngine_System_Thread[impl:5]_10##0#0#Warning##Java###Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.#1#java.lang.Exception: Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.
at com.sap.tc.logging.FileLog.setFormatter(FileLog.java:448)
at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:795)
at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1535)
at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4450)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2610)
at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2464)
at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
Any ideas?Nothing really seemed to work when trying to solve this problem, just suddenly it stopped appearing. It might have been our installation of SPS 15, since it was around that time that the error went away.
-
File not found exception....in jboss
how to access a .properties file in jboss web application....as when running the jsp code from jboss which in turn invokes the java class file which is using the .properties file we get the file not found exception with respect to the properties file though it is not posing any exceptions while executing the java code from the command line..please feel free to provide any useful answers.
the jsp file has been used to create an object of the
java file that contains the processing logic...Yes, and given all I know about good application design, this doesn't sound like something a JSP should be doing.
absolutely fine on command line no hassels....An application server is not a command-line environment. It imposes a huge bunch of restrictions and implications.
Did you try what I told you? -
CTIOS 8.5(2) Agent Desktop fails to start - file not found exception
I can run the CTIOS 8.0(1) Agent Desktop OK against my 8.5(2) system, but when I install 8.5(2) SR on the client machine (running XP SP3), the app will not start. (Actually trace shows it starts a little bit but debugging doesn't point out the problem).
It pops up a Windows Message wanting to send a report to Microsoft (yeah, we know where that goes) and I can see it say something about a file not found exception.
I uninstall CTIOS 8.5(2) and it works perfectly.
Makes you wonder how this passed QC testing. I have tried on two different machines.
Anyone have the workaround that establishes the file it's looking for?
Regards,
GeoffI still have my TAC case open but I also have a workaround that seems to work. As Chad described above he had a machine that the 8.5.2 upgrade originally did not launch on but then magically started working on. I also came across that case. Once I had one working machine I could upgrade it and downgrade successfully without issues. Seeing that the 8.5.2 installer examines the system to be upgraded I figured it's checking the registry and/or the installation files. I then did the following:
Working system
1) Downgrade working 8.5.2 system to 8.0.1
2) Export the Cisco Systems Inc key from this 8.0.1 system
3) Copy the CTIOS Client and CTIOS Silent Monitor directories for the 8.0.1 system
Non working System
4) Stop the CTIOS Silent Monitor system
5) Delete the Cisco System Inc key from the reg
6) Import the Cisco Systems Inc key from the working system
7) delete the existing CTIOS Client and CTIOS Silent Monitor directories
8) Copy in the CTIOS Client and CTIOS Silent Monitor directories from the working system
9) Run the 8.5.2 installer
Reboot - and run the agent/supervisor desktop
I did this on several test machines and it worked every time. I have upgraded about 5-6 supervisors and they all say it's working fine as well.
Carlos -
File not found Exception when zipping a file
Hello I seem to have run into a problem when trying to zip a directory.
I get the error:
java.io.FileNotFoundException: C:\Users\dojo\Documents\Programming\compress (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at ZipUtility.zip(ZipUtility.java:31)
at ZipUtility.main(ZipUtility.java:21)
when i run the code
import java.io.File;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import java.io.*;
public class ZipUtility {
public ZipOutputStream cpZipOutputStream = null;
public String strSource = "";
public String strTarget = "";
public static long size = 0;
public static int numOfFiles = 0;
public static void main(String args[]) {
ZipUtility udZipUtility = new ZipUtility();
udZipUtility.strSource = "C:\\Users\\dojo\\Documents\\Programming\\compress\\restoreDump"; //args[0];
udZipUtility.strTarget = "C:\\Users\\dojo\\Documents\\Programming\\compress"; //args[1];
udZipUtility.zip();
public void zip(){
try {
File cpFile = new File (strSource);
if (!cpFile.isFile() && !cpFile.isDirectory() ) {
System.out.println("\nSource file/directory Not Found!");
return;
FileOutputStream fos = new FileOutputStream(strTarget);
cpZipOutputStream = new ZipOutputStream(fos);
cpZipOutputStream.setLevel(9);
zipFiles( cpFile);
cpZipOutputStream.finish();
cpZipOutputStream.close();
System.out.println("\n Finished creating zip file " + strTarget + " from source " + strSource);
System.out.println("\n Total of " + numOfFiles +" files are Zipped " );
System.out.println("\n Total of " + size + " bytes are Zipped ");
} catch (Exception e){
e.printStackTrace();
public void zipFiles(File cpFile) {
int byteCount;
final int DATA_BLOCK_SIZE = 2048;
FileInputStream cpFileInputStream;
if (cpFile.isDirectory()) {
if(cpFile.getName().equalsIgnoreCase(".metadata")){ //if directory name is .metadata, skip it.
return;
File [] fList = cpFile.listFiles() ;
for (int i=0; i< fList.length; i++){
zipFiles(fList) ;
else {
try {
if(cpFile.getAbsolutePath().equalsIgnoreCase(strTarget)){
return;
System.out.println("Zipping "+cpFile);
size += cpFile.length();
//String strAbsPath = cpFile.getAbsolutePath();
numOfFiles++;
String strAbsPath = cpFile.getPath();
String strZipEntryName = strAbsPath.substring(strSource.length()+1, strAbsPath.length());
//byte[] b = new byte[ (int)(cpFile.length()) ];
cpFileInputStream = new FileInputStream (cpFile) ;
ZipEntry cpZipEntry = new ZipEntry(strZipEntryName);
cpZipOutputStream.putNextEntry(cpZipEntry );
byte[] b = new byte[DATA_BLOCK_SIZE];
while ( (byteCount = cpFileInputStream.read(b, 0, DATA_BLOCK_SIZE)) != -1)
cpZipOutputStream.write(b, 0, byteCount);
//cpZipOutputStream.write(b, 0, (int)cpFile.length());
cpZipOutputStream.closeEntry() ;
} catch (Exception e) {
e.printStackTrace();
I really have no idea why its saying access denied if anyone can help that would be great.son_goku
Read the stack trace from the bottom up. It's telling you that the error, or exception arose
at ZipUtility.zip(ZipUtility.java:21)
which is udZipUtility.zip();This line called the zip() method which threw an exception
at ZipUtility.main(ZipUtility.java:31)
which is FileOutputStream fos = new FileOutputStream(strTarget);What is the value of strTarget?"C:\\Users\\dojo\\Documents\\Programming\\compress"This is a folder, isn't it?
Read the javadoc for public FileOutputStream(String name)
throws FileNotFoundException
If the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason then a FileNotFoundException is thrown.
Regards, Darryl -
File not found exception with Xalan and JRE 1.4.x
Hi everybody.
I'm trying to apply an XSL transformation to a XML file within a Java application.
No problem if I use JRE 1.3, but if I use JRE 1.4.x I've the following exception:
javax.xml.transform.TransformerException: File "C:\testweb.xml" not found.
I can ensure to you guys that the file exists.
Any Idea????? Thanx
Here attached is the code I use:
8<----------------------------------------
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
transformer.transform(
new StreamSource(Constants.getMenuPath()),
new StreamResult(
new FileOutputStream(
Settings.getMenusRelativeDirectory() + outputFile)
---------------------------------------->8OK I got it.
It is necessary to use prefix "file:///" before file name.
Thanx everyway. -
We get the followign when we navigate to the 'Peoplesoft' domain and then
add a servlet and attempt to "persist".
everything else seems to work fine.
By navigating to the peolesoft domain, we open the default server
and use "edit other domain" to pull up the console. then navigate to portal ->
edit descriptors.
OS is an Win2k Server.
Thanks in advance for any help.
---- Error starts below ------
java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
at weblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.java:272)
at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
at weblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:598)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy79.persist(Unknown Source)
at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:78)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException: An error occurred while attempting
to persist 'WebDescriptor-5' - with nested exception:
[java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:80)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date
Fri Jun 20 14:16:52 CDT 2003
Console Release Build
Console Build
Server Release Build
6.1.2.0
Server Build
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
All Server Product Versions
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogic file.encoding
= Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts = java.awt.graphicsenv
= sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar java.class.version
= 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home = F:\bea\weblogic\jdk131\jre
java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path = F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora92\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Dell\OpenManage\Array Manager;C:\Program Files\Dell\OpenManage\oma\bin;C:\Program
Files\Dell\OpenManage\OMSA\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program
Files\Dell\OpenManage\RAC\MN;C:\Program Files\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.factory.url.pkgs
= weblogic.jndi.factories java.protocol.handler.pkgs = weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|weblogic.net
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version
= 1.3.1-b24 java.security.policy = =F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
java.specification.name = Java Platform API Specification java.specification.vendor
= Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = Sun Microsystems
Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM)
Client VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor
= Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor = Sun
Microsystems Inc. java.vm.version = 1.3.1-b24 javax.rmi.CORBA.PortableRemoteObjectClass
= weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass = weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory = weblogic.xml.jaxp.RegistryDocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.transform.TransformerFactory = weblogic.xml.jaxp.RegistrySAXTransformerFactory
jmx.implementation.name = JMX RI jmx.implementation.vendor = Sun Microsystems
jmx.implementation.version = 1.0 jmx.specification.name = Java Management Extensions
jmx.specification.vendor = Sun Microsystems jmx.specification.version = 1.0 Final
Release line.separator = org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ; sun.boot.class.path
= F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.jar;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\classes
sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding = UnicodeLittle user.dir
= F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackp user.language
= en user.name = lackp user.region = US user.timezone = America/Chicago weblogic.Domain
= psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled = true weblogic.security.jaas.Configuration
= weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy = ./lib/Server.policy
Request Info
Protocol: HTTP/1.1
ServerName: 127.0.0.1
ServerPort: 7500
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDescriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: Basic
ContentType: null
CharacterEncoding: null
Locale: en_US
Method: GET
Session: weblogic.servlet.internal.session.MemorySessionData@92f6
RequestedSessionId: 2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500!1056136434604
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: system
RemoteUser: system
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1
Parameters
MBean = psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=WebDescriptor,WebAppComponent=PORTAL
Attributes
wlinternalaction = weblogic.management.console.actions.internal.InternalActionContext@2229ca
java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user = system
weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@34fa3c
weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs:
false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable:
true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy:
true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper
= weblogic.management.console.helpers.DebugHelper@27a485 weblogic.management.console.helpers.UnitsHelper
= weblogic.management.console.helpers.UnitsHelper@46fe47 weblogic.management.console.helpers.UrlHelper
= weblogic.management.console.helpers.UrlHelper@65ce3c
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Encoding
= gzip, deflate Accept-Language = en-us Authorization = Basic c3lzdGVtOmdsaXN0ZWFtMDM=
Connection = Keep-Alive Cookie = JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500
Host = 127.0.0.1:7500 Referer = http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: trueEditing other domains is a scenario fraught with peril, which is why it was
deprecated and removed from the console. It looks to me that the error
message sums up the problem, ther eis no applications directory in the
peoplesoft domain? Have you tried creating that directory from the file
system?
cheers
mbg
"Dan" <[email protected]> wrote in message
news:[email protected]...
>
We get the followign when we navigate to the 'Peoplesoft' domain and then
add a servlet and attempt to "persist".
everything else seems to work fine.
By navigating to the peolesoft domain, we open the default server
and use "edit other domain" to pull up the console. then navigate toportal ->
edit descriptors.
OS is an Win2k Server.
Thanks in advance for any help.
---- Error starts below ------
java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
atweblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.
java:272)
at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
atweblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:
598)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy79.persist(Unknown Source)
atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
perform(DoPersistTopLevelDescriptorAction.java:78)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException: An error occurredwhile attempting
to persist 'WebDescriptor-5' - with nested exception:
[java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
(Access is denied)]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
perform(DoPersistTopLevelDescriptorAction.java:80)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
et.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date
Fri Jun 20 14:16:52 CDT 2003
Console Release Build
Console Build
Server Release Build
6.1.2.0
Server Build
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
All Server Product Versions
WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
Server System Properties
awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogicfile.encoding
= Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =java.awt.graphicsenv
= sun.awt.Win32GraphicsEnvironment java.awt.printerjob =sun.awt.windows.WPrinterJob
java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jarjava.class.version
= 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home =F:\bea\weblogic\jdk131\jre
java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path =F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora9
2\bin;C:\Program
Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
;C:\Program
Files\Dell\OpenManage\Array Manager;C:\ProgramFiles\Dell\OpenManage\oma\bin;C:\Program
Files\Dell\OpenManage\OMSA\bin;C:\ProgramFiles\Dell\OpenManage\LU\bin;C:\Program
Files\Dell\OpenManage\RAC\MN;C:\ProgramFiles\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1
\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactoryjava.naming.factory.url.pkgs
= weblogic.jndi.factories java.protocol.handler.pkgs =weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|
weblogic.net
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Editionjava.runtime.version
= 1.3.1-b24 java.security.policy ==F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
java.specification.name = Java Platform API Specificationjava.specification.vendor
= Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = SunMicrosystems
Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = JavaHotSpot(TM)
Client VM java.vm.specification.name = Java Virtual Machine Specificationjava.vm.specification.vendor
= Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor= Sun
Microsystems Inc. java.vm.version = 1.3.1-b24javax.rmi.CORBA.PortableRemoteObjectClass
= weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass= weblogic.iiop.UtilDelegateImpl
javax.xml.parsers.DocumentBuilderFactory =weblogic.xml.jaxp.RegistryDocumentBuilderFactory
javax.xml.parsers.SAXParserFactory =weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.transform.TransformerFactory =weblogic.xml.jaxp.RegistrySAXTransformerFactory
jmx.implementation.name = JMX RI jmx.implementation.vendor = SunMicrosystems
jmx.implementation.version = 1.0 jmx.specification.name = Java ManagementExtensions
jmx.specification.vendor = Sun Microsystems jmx.specification.version =1.0 Final
Release line.separator = org.xml.sax.driver =weblogic.apache.xerces.parsers.SAXParser
os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ;sun.boot.class.path
=F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.ja
r;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\c
lasses
sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian =little
sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding =UnicodeLittle user.dir
= F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackpuser.language
= en user.name = lackp user.region = US user.timezone = America/Chicagoweblogic.Domain
= psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled =true weblogic.security.jaas.Configuration
= weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy =./lib/Server.policy
>
>
Request Info
Protocol: HTTP/1.1
ServerName: 127.0.0.1
ServerPort: 7500
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString:MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDe
scriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: Basic
ContentType: null
CharacterEncoding: null
Locale: en_US
Method: GET
Session:weblogic.servlet.internal.session.MemorySessionData@92f6
RequestedSessionId:2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7
500!9500!1056136434604
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: system
RemoteUser: system
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1
Parameters
MBean =psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=We
bDescriptor,WebAppComponent=PORTAL
>
Attributes
wlinternalaction =weblogic.management.console.actions.internal.InternalActionContext@2229ca
java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user =system
weblogic.management.console.catalog.Catalog =weblogic.management.console.catalog.XmlCatalog@34fa3c
weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: trueJavscriptHrefs:
false TableCellClick: true DocumentReloadedOnResize: falseDropdownStretchable:
true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported:true TableBorderFancy:
true PartialToWideTables: false DisabledControlSupported: trueweblogic.management.console.helpers.DebugHelper
= [email protected]nagement.console.helpers.UnitsHelper
= [email protected]nagement.console.helpers.UrlHelper
= weblogic.management.console.helpers.UrlHelper@65ce3c
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Encoding
= gzip, deflate Accept-Language = en-us Authorization = Basicc3lzdGVtOmdsaXN0ZWFtMDM=
Connection = Keep-Alive Cookie =JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1
620044925!7500!9500
Host = 127.0.0.1:7500 Referer =http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: true -
OIM 11g File not found exception
Hi,
I am getting following exception:
Caused By: java.io.FileNotFoundException: file:/opt/oracle/apps/oim11g/MWHOME/Oracle_IDM1/server/apps/oim.ear/admin.war/WEB-INF/lib/OESOIMTaskFlows.jar!/taskflows/policycreate/DataConstraints.jsff
at oracle.ide.net.JarIndex.getLOC(JarIndex.java:1191)
at oracle.ide.net.JarIndex.access$1000(JarIndex.java:58)
at oracle.ide.net.JarIndex$12.run(JarIndex.java:575)
at oracle.ide.net.JarIndex$12.run(JarIndex.java:571)
Can anyone help me in fixing the issue?I found a solution to this issue. The problem is with java.net.Socketexceptions happening on the servers. To resolve that you need to increase the ulimit for files.
Edit - /etc/security/limits.conf and the following for your user (mine was oracle)
oracle soft nofile 4096
oracle hard nofile 10240
Log off and log back in.
Start your serves and the exception should not happen again. -
File not found exception in JBOSS unix server
Hi
I am working on a JBOSS application (jdk 1.6)
I am getting the following exception during a file upload operation in the unix server
java.io.FileNotFoundException: D:\\Test.xls (No such file or directory)
The same operation works in my local server (ie windows JBOSS application)
Basically it is not able to form the file handle. It fails exactly here
file = new File("D:\\Test.xls");
Can someone help
Thanksdoes D:\\Test.xls look like a valid *nix file name to you?
-
Getting file not found exception in managed server
Hi,
Working on jdev 11.1.1.3.0, ADF BC with Rich faces.
I am downloading file from network file system, i am successfully download file in integrated weblogic server, the same application when i am trying to run with my managed server(DEV Server), i am getting error like
####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000275> <1281476342286> <BEA-000000> <downloadLetters file name*://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc*>
####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000276> <1281476342313> <BEA-000000> <<Aug 10, 2010 5:39:02 PM EDT> <Warning> <org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener> <BEA-000000> <
javax.el.ELException: java.io.FileNotFoundException: */bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc* (No such file or directory)
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
my file location is://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc, i am getting the correct file location while reading in the managed bean, but the error is showing as /bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc one / is missing, why it was happening in managed server.
Can any one help me, what is the issue here.Thanks for your reply, Timo, and John, the same file downloading is working fine with my Integrated weblogic server, but the same application when i deployed in my DEV server i am getting the error.
Code which i am trying to download file is
public void downloadCardInserts(FacesContext facesContext,
OutputStream outputStream) throws FileNotFoundException,
IOException {
// Add event code here...
UploadedFile filename=(UploadedFile)browseFile.getValue();
String fname=filename.getFilename();
String fname1="//bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/RENEWAL/"+fname;
System.out.println("file name11111:"+fname1);
FileInputStream in = new FileInputStream(new File(fname1));
byte[] buffer = new byte[1024];
int bytes = in.read(buffer);
while (bytes >= 0) {
outputStream.write(buffer, 0, bytes);
bytes = in.read(buffer);
} -
File not found exception with SES crawler
Hi,
I have integrated oracle SES with UCM 11g.
when i shedule the crawler i am getting this exception.
***Crawler raised the following error for data source "VzUCM" at time Mar 14, 2012 12:35:28***
EQG-30236: Crawler plug-in fatal error: java.io.FileNotFoundException: /poc11g/idcplg%3FIdcService=SES_CRAWLER_DOWNLOAD_CONTROL&source=SESVzCrawler (No such file or directory)
I am very sure the issue is with feed location.I am not sure how to append complete URL
like this:
http://viesacovn13.ebiz.verizon.com:16202//poc11g/idcplg?IdcService=SES_CRAWLER_DOWNLOAD_CONTROL&source=SESVzCrawler
Config XML
<?xml version="1.0" encoding="UTF-8" ?>
- <rsscrawler xmlns="http://xmlns.oracle.com/search/rsscrawlerconfig">
- <feedLocation>
- <![CDATA[ /poc11g/idcplg?IdcService=SES_CRAWLER_DOWNLOAD_CONTROL&source=SESVzCrawler
]]>
</feedLocation>
- <errorFileLocation>
- <![CDATA[ /poc11g/idcplg?IdcService=SES_CRAWLER_STATUS&IsJava=1&source=SESVzCrawler&StatusFeed=
]]>
</errorFileLocation>
<feedType>controlFeed</feedType>
<sourceName>SESVzCrawler</sourceName>
<securityType>attributeBased</securityType>
<securityAttribute name="Account" grant="true" />
<securityAttribute name="DocSecurityGroup" grant="true" />
<securityAttribute name="Collab" grant="true" />
</rsscrawler>
Thanks,
Vijay VadlamudiHi ,
http://viesacovn13.ebiz.verizon.com:16202//poc11g/idcplg?IdcService=SES_CRAWLER_DOWNLOAD_CONTROL&source=SESVzCrawler
Here after 16202 there is an extra forward slash ? Is that a typo ?
Is the Source name SESVzCrawler ?
Thanks
Srinath -
Hi,
I have an issue in retrieving a file. The following is the code snippet.
Properties defaultProps = new Properties();
InputStream in;
try{
//in = ldap.class.getClassLoader().getResourceAsStream("PropLDAP.properties");
defaultProps.load(new FileInputStream("*../html/PropLDAP.properties*"));
System.out.println(">>>>> SECURITY_CREDENTIALS >>>> " + defaultProps.getProperty("SECURITY_CREDENTIALS"));
//in.close();
catch(Exception e)
e.printStackTrace();
}I am able to retrieve the file in the browser using the following URL.
http://localhost:8080/JavaWorld/html/PropLDAP.properties
However, if I am providing the relative path in the code it isn't picking up.
../html/PropLDAP.properties
19:02:37,960 ERROR [STDERR] java.io.FileNotFoundException: ..\html\PropLDAP.properties (The system cannot find the path specified)
ThanksYou should read it thru the API similar to what you commented out.
//in = ldap.class.getClassLoader().getResourceAsStream("PropLDAP.properties");My guess is you commented it out because it wasn't working at the time. But really, you should fix it so that it does.
As long as PropLDAP.properties is in the classpath, whether it's in the EAR or WAR or JAR or as a loose file in the file system, it can find it thru the getResourceAsStream method. On the other hand, if you try to use FileInputStream it can ONLY find it if it is a loose file and you know the exact path where it resides. -
File Not Found exception.Am i missing anything?
I have created a file called CI.xml in an eclipse folder which exists
I am getting the message: The system cannot find the file
my code is
private static final String XML_TEMPLATE_FOLDER ="xml/template"
String fileFolder = getTemplateFolder();
File file = new File(fileFolder+"CI.xml");
private String getTemplateFolder(){
return XML_TEMPLATE_FOLDER;
}If I save this file on c:\ and pass it to the file api,it works.
am i overlooking anything?
please guidemasijade. wrote:
phdk wrote:
try: xml\\template
or use File.separatorNo need. In the File constructors "/" is always valid, regardless of the OS. (Now Runtime.exec() is another story, but that's not what we're talking about here.)I've noticed that "/" works on Windoze, but I can't find the documentation. The closest is this, in the [File API:|http://java.sun.com/javase/6/docs/api/java/io/File.html]
<quote>
The conversion of a pathname string to or from an abstract pathname is inherently system-dependent. When an abstract pathname is converted into a pathname string, each name is separated from the next by a single copy of the default separator character. The default name-separator character is defined by the system property file.separator, and is made available in the public static fields separator and separatorChar of this class. When a pathname string is converted into an abstract pathname, the names within it may be separated by the default name-separator character or by any other name-separator character that is supported by the underlying system. [Ed.: hmmm]
</quote>
So I don't know if I can take _"/" is always valid_ as vaild, unless there's better documentation for it. -
File Not Found Exception for select_attributes.jsff in OESOIMTaskflows.jar
Upon trying to create an authorization policy, I am running into the following error:
java.io.FileNotFoundException: file:/opt/oracle/Middleware/Oracle_IDM1/server/apps/oim.ear/admin.war/WEB-INF/lib/OESOIMTaskFlows.jar!/taskflows/dialogs/select_attributes.jsff
I went to the OESOIMTaskFlows.jar file and exploded it. I verified the select_attributes.jsff file does indeed exist. I am not sure why it is failing at this step. Does anyone have any idea how to get this file to register?
One thing I have done out of the ordinary is re-deploying a new instance on an existing Middleware Home (Oracle_IDM1/SOA1) by dropping/re-creating the tables via RCU, removing the user_projects folder, and running the config in Oracle_IDM1
Thanks.FYI, for anyone seeing this or anything similar, I did the following:
Checked my log at each step of authorization policy creation. Prior to clicking the edit attributes button, I noticed that there were too many open files in the log.
- went to /etc/security/limits.conf
- changed the hard / soft nofile limit to 65535
This seemed to fix the issue.
Maybe you are looking for
-
Multiple problems on G5 that equal on big problem(usb,leopard,Blue screen)
I have a dual 2.5 I've had for years no problems I couldnt fix... Recently I fryed the usb ports it's wierd my treo works on the but nothing else. So I buy a usb card..... Only problem is the card powers on after mac starts so no reseting pram starti
-
Tab order shows correctly, but doesn't work in PDF
Does anyone else have the problem, or know how to solve it, where you go through and set up the tab order correctly numbers for each page, but then when you tab through the preview pdf or the saved pdf, it will jump between pages instead of going thr
-
Upgrade from Java 2 sdk 1.4.2_05 to Java sdk 6.0
Hello. I am currently researching the effort involed in upgrading our servers from 1.4.2_05 to 6.0. Can I just install 6.0 on the servers and expect the apps compiled under 1.4 to run, or will I need to recompile all the apps under 6.0? Thanks in adv
-
Forms Personalization: how to Set default value to field
Hi all, I have trouble with to fill in a field with an initial value where in defined an LOV. When I open the screen "Contract Commitment" via the responsibility "Contract Commitment Super User" I would like to see a initial value in the "Type" field
-
When showing my pictures via Gallery app I see no way to control the order of pictures in slideshow. I would like to view pictures in chronological order. Thanks for any advice or recommendations. Solved! Go to Solution.