Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

log4j:ERROR Could not read configuration file from URL

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello Guys,
I have a J2ee application client that wants to connect over the internet to
my application server (jboss), now I have changed the protocol to http and on localhost it works, but my first test over the internet gives me the following error:
java -Djava.naming.provider.url=jnp://xx.xx.xxx.xxx:8080 -Djava.naming.factory.initial=org.jnp.int
erfaces.NamingContextFactory -Djava.security.policy=file:rmi.policy -jar MoehahaEXE.jar

('Het systeem kan het opgegeven bestand niet vinden' = 'the system can not find the specified file'.)

log4j:ERROR Could not read configuration file from URL [jar:file:/C:/myclient/MoehahaEXE.jar!/log4j.prop
erties].
java.util.zip.ZipException: Het systeem kan het opgegeven bestand niet vinden
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net. Source)
at sun.net. Source)
at sun.net. Source)
at sun.net. Source)
at sun.net. Source)
....


and log4j.properties is in my jar file.
I didn't ask for it, it is just put in there by JBuilderX.
I just want this to work with or without logging.
Just deleting the log4j.properties files only generates other errors...

any thoughts ?
thnx




Greetz,
img


NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

&quot;Those who say they understand chess, understand nothing&quot;

-- Robert HUBNER
 
Hello hologram,

Thanks for your answer!
Its not java version related,
just putting the log4j.jar in the same directory that
my jar stands solves it more or less.
The program still complains that log4j is not initialized
correctely but at least it goes over it now.


Greetz,
img


NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)

&quot;Those who say they understand chess, understand nothing&quot;

-- Robert HUBNER
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top