• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read local files in JSP application hosted on WebLogic

 
Nekh Run
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP file that I use to read-write a local HTML file provided as an input by the user at runtime. The input html file could be at any path.
I use the following code to read the input file name:



... and the following code to read the file:


The JSP app works fine on the local server. I use NetBeans integrated Glassfish. When uploaded to WebLogic, it crashes after the user submits the input file name. The error message is quite vague "incident 126 created with problem key BEA-000000".

I don't have much exp with Java-JSP nor programming is my profession. At some forums with similar problems, members suggested that input file must be at context-root and the developer must configure the weblogic.xml to do that OR use ClassLoader.getSystemClassLoader.

As my knowledge is very limited, can some one help me with how to resolve the problem, that is read local files via JSP? your help is really appreciated.
 
Dave Tolls
Ranch Hand
Posts: 2284
25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the user is entering a file path to a file on the server?

If not then can you define what a "local file" is in your view?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!