Help coderanch get a
new server
by contributing to the fundraiser

Karsten Brondum

Greenhorn
+ Follow
since Jan 04, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Karsten Brondum

I'm new to javax.mail. Trying to send mail via Exchange server



I can telnet the mail server on port 25 from the server where i'm running the code, however the output (removed hostname) is:



Any suggestions as to what i'm missing is greatly appreciated

Karsten.
11 years ago
D'oh!!

stupid, stupid me. Just posted this to prove that i cannot read my own code.

Changing line 31 to



really really helped.

Cannot find a blushing emoticon, otherwise i would have used it

Karsten.


12 years ago
I'm trying to get my RMI communication in an exiting app to work on one single port. As I understand it, i need to call unicastremoteobject with a port number in order to achieve this which i think that i am.

(GTIServer extends a generic server class that extends UnicastRemoteObject).

I'm getting a java.rmi.NotBoundException



and output:


seems to be ok, but



gives error



if i change the rebind in the first code sample to just



all is fine, (no change in the "client" code, still using lookup using port number). Can anyone please give me a hint on what i'm missing

Karsten.




12 years ago
I'm in the process of setting up logging using java.util.logging

when running java -Djava.util.logging.config.file=C:/Projekter/Sam02/Sam02/StulaLog.properties -cp .......

with StulaLog.properties like shown below the console logger formats the log as strings. The file formatter formats the log file as XML. If i change

java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

to java.util.logging.XMLFormatter, the console logger is changed to xml. No matter what i do in the filehandler formatter, the log file gets created in xml format.

please advise as to what i'm missing

Thanks in Advance
Karsten.



# Properties file which configures the operation of the JDK
# logging facility.

# The system will look for this config file, first using
# a System property specified at startup:
#
# >java -Djava.util.logging.config.file=myLoggingConfigFilePath
#
# If this property is not specified, then the config file is
# retrieved from its default location at:
#
# JDK_HOME/jre/lib/logging.properties

# Global logging properties.
# ------------------------------------------
# The set of handlers to be loaded upon startup.
# Comma-separated list of class names.
# (? LogManager docs say no comma here, but JDK example has comma.)
handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler

# Default global logging level.
# Loggers and Handlers may override this level
.level=FINEST

# Loggers
# ------------------------------------------
# Loggers are usually attached to packages.
# Here, the level for each package is specified.
# The global level is used by default, so levels
# specified here simply act as an override.
myapp.ui.level=ALL
myapp.business.level=CONFIG
myapp.data.level=SEVERE

# Handlers
# -----------------------------------------

# --- ConsoleHandler ---
# Override of global logging level
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

# --- FileHandler ---
# Override of global logging level
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.pattern=%h/javasnafu%u.log

# Naming style for the output file:
# (The output file is placed in the directory
# defined by the "user.home" System property.)

# Limiting size of output file in bytes:
java.util.logging.FileHandler.limit=50000

# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1

12 years ago
I need at hint as to what i'm missing, i'm totally and completely lost.

I've created and applet which runs fine when installed on tomcat. As i final thing i wanted to put the jar file in a war file for easy deployment. In order to test i wanted to start fro scratch and i therefore

- removed everything except the loading html file from my webapps\delta directory.
- stopped tomcat service
- removed everything from work\Catalina
- started tomcat service
- cleared my firefox cache

IMHO i've now removed everything, but when i load http://192.168.159.136:8080/delta/Timereg.html, the applet loads fine. Where is it cached ?

The code for the applet is stored in a jar

<PARAM NAME = CODE VALUE = "dk.deltat.timeregistrering.klient.TRApplet.class" >
<PARAM NAME = "ARCHIVE" value="klientJar.jar"

i've done a del /s klientJar.jar from c:\, i have no file called klientJar.jar anywhere on my system. When i stop the tomcat service http://192.168.159.136:8080 does not respond, so the server i'm reaching is in fact the server i think it is.

please give me a hint as to what i'm missing

br
Karsten.
12 years ago
I'm developing an applet and i'm testing it from an html file currently located in a directory on my local drive.
The applet is signed and uses log4j.

When testing using Firefox everything works ok, logging gets initialized and outputs logging to the file specified in the xml config file.

The log4j xml config file is located in the same directory as the jar file and the html file.

When testing using MSIE i get log4j:ERROR Could not open [RMDrawLogConfig.xml].

I need this as the applet has a slightly different odd behviour in MSIE, and i need to investigate why ?.

Any hints as how to fix this in MSIE is greatly appreciated.

Br,
Karsten.



14 years ago