Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7807991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:01:22+00:00 2026-06-02T03:01:22+00:00

I have weblogic in localhost. My web application save some rdf: String name =

  • 0

I have weblogic in localhost. My web application save some rdf:

String name = UUID.randomUUID().toString();
FileOutputStream fop = null;
try {
    fop = new FileOutputStream(name);
} catch (FileNotFoundException e) {

}
model.write(fop);

When I go to the url where is this file saved I got this error:

XML Parsing Error: no element found
Location: http://url/0260fcff-b53d-4d18-8fb0-fb31f6a6ff1a.rdf
Line Number 1, Column 1:

Where I can find this file in my computer ?

PS I try to save this file with just java application and it works so rdf should be OK.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:01:24+00:00Added an answer on June 2, 2026 at 3:01 am
    1. When you save a file without specifying the path, the file is saved at a location from where your JVM is invoked. For web applications this is typically the bin folder. So please check that location (e.g. for tomcat it would be {TOMCAT_HOME}/bin)

    2. The way you are accessing the file (http://url/0260fcff-b53d-4d18-8fb0-fb31f6a6ff1a.rdf) you are expecting it in the root of your web application.
      For example, if you have a tomcat based application say myapp.war the root of your web app would be {TOMCAT_HOME}/webapp/myapp

    3. This is the reason the generated file is not found when accessed via a URL.

    4. To make it work, specify a path (absolute path) to the file input stream (create a File object with desired path location, in this case it would be {TOMCAT_HOME}/webapp/myapp)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web application (JQuery and Spring) running on weblogic app server. There
I have a web application that is secured totally by the Weblogic container. Now
I have a web application deployed in WebLogic. In one of my java file,
I have a web application deployed on a WebLogic server. The server comes down
I have weblogic where I can deploy this java application and database where I
We have a weblogic batch application which processes multiple requests from consumers at the
in eclipse, i have a weblogic server running, and a j2ee application deployed to
I have an application running under WebLogic that is using standard forms authentication. The
We have many Spring web applications to make on a WebLogic server and are
I have an enterprise application running on a WebLogic server. When I modify any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.