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 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.www.protocol.jar.URLJarFile.<init>(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour ce) ....
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 loggin. Can I just delete the log4j.properties file to get past this error ? thnx
Hello, just posting the answer in case its usefull to NE1. Just putting the log4j.jar file in the same directory as my jar was solved the problem in that way that the program now only complains on the fact that log4j is not initialized correctly, which is right because I did not put anything in my code about log4j. Anyway, at least my program doesn't crash on it anymore... grtz, themuppeteer