• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Read local files in JSP application hosted on WebLogic

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic