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

  • Home
  • SEARCH
  • 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 8248041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:03:45+00:00 2026-06-07T23:03:45+00:00

Scenario is the following: Developing a jsp application with jdeveloper Deploying to Oracle Weblogic

  • 0

Scenario is the following:

  • Developing a jsp application with jdeveloper
  • Deploying to Oracle Weblogic
  • All files are in the same project
  • Source files are inside packages that are inside the src folder
  • Inside the Resources folder are two files: menu.json and TestWS.properties

So, I made a java class that should read menu.json and return a menu (in html) based on its structure.

When, inside the class, I do this

InputStream i =
    Thread.currentThread().getContextClassLoader().
        getResourceAsStream("Resources/menu.json");
BufferedReader r = new BufferedReader(new InputStreamReader(i));

The InputStreamReader constructor throws a NullPointerException, I suppose because it can’t find the file.

Funny thing is, if I try to load TestWS.properties instead, it loads it just well.

I tried checking the project’s properties, manually added both files under Project Source Path -> Resources, adding the .json extension to Compiler -> Copy file types to output directory, renamed, deleted, recreated, changed extension to the json file, deployed to WAR and loaded the project on another machine running weblogic, but to no avail.

Is there anything else I’m missing?

  • 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-07T23:03:48+00:00Added an answer on June 7, 2026 at 11:03 pm

    This is explained in this article.

    In short, you have to change the compiler setting “Copy File Types to Output Directory” to include the extension of the resources you want to have available at runtime.

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

Sidebar

Related Questions

I'm developing an application with Google App Engine and stumbled across the following scenario,
Assume the following scenario: All data are in Sql Server tables. 1) An Execute
Hey, can anybody confirm the following scenario will work: I am developing a 3-tier
I am new to developing on for Mac. I have the following scenario: A
We are developing an Client-Server-Scenario where the client application will be installed on hundred
Following scenario: In an WPF application the program calls Log.Write to enqueue messages which
I have the following table in an application I am developing using ruby on
I am developing an application using Hibernate and am trying to model the following
Here's the situation: I'm developing a simple application with the following structure: FormMain (startup
Consider the following scenario: Tables: Employee (EmpId(PK), Name) TeamMembers(TeamId(PK), EmpId(PK)) Project(ProjId(PK), TeamId) I really

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.