This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!

Vibhav Parghi

Greenhorn
+ Follow
since Sep 20, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vibhav Parghi

I solved the problem...I re cloned the repository from remote and It has fixed itself!!
Thanks!
1 week ago
I solved the previous error , access denied and path not found,
but now I am getting new error

Error: Could not find or load main class Advanced_Core_java.Advanced_core_java.log4j2Example
Caused by: java.lang.ClassNotFoundException: Advanced_Core_java.Advanced_core_java.log4j2Example

Advanced_Core_java is the name of my maven project. I think some path or classpath setting is missing?
thanks.
1 week ago
thanks for the input.
I have re installed the workspace and created a new project in E:\ drive, and given write permission.
but log4j2 code is still referring to the older path and saying access is denied...any idea why
the code is referring to the older path of the project? everything is newly installed.Thanks.

here is the stack trace :
ERROR StatusLogger Unable to access file:/C:/Users/HP/git/repository/Examples/first_project
java.io.FileNotFoundException: C:\Users\HP\git\repository\Examples\first_project (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
at java.base/java.net.URL.openStream(URL.java:1117)
at org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:248)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:405)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:347)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:261)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:616)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:637)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:243)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:648)
at Advanced_Core_java.Advanced_core_java.log4j2Example.<clinit>(log4j2Example.java:7)
ERROR StatusLogger Reconfiguration failed: No configuration found for '277050dc' at 'null' in 'null'
11:58:36.882 [main] ERROR Advanced_Core_java.Advanced_core_java.log4j2Example - Error Message Logged !!!
java.lang.NullPointerException: NullError
at Advanced_Core_java.Advanced_core_java.log4j2Example.main(log4j2Example.java:13) [classes/:?]
1 week ago
right...but I am only writing the logs to the console right now...attached is the config file...
Is log4j writing other stuff also? to the project directory? how can i solve that...thanks !
1 week ago
correct...that means is log4j trying to write to the project folder? i tried removing the read only check box for the entire directory tree...that gave me a different error..."class not found exception" for all the code in the maven project! any clues?
1 week ago
also here is the code...
1 week ago
Hi all,

This is my first attempt with log4j in eclipse-I am getting an error (attached) that access to the project folder is denied.
Any ideas on what I am doing wrong? I checked the access permissions up the directory tree for the project..in windows 10
they are all read only.

thanks..
1 week ago
Hi all,

I have installed tomcat v 7 and eclipse for Java EE and have started the server on eclipse. however,
when I create a simple html file and a .js file in a project, and try to "run as ->run on server",
I cant see apache tomcat there...

how to run web apps in this environment ?(ie using tomcat server)?

Thanks,
Nirav
4 years ago