Theo van Loon

Ranch Hand
+ Follow
since Feb 04, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Theo van Loon

Hello all,

i configured log4j in tomcat 5.0.28 for internal server logging, but however is receive the following error message in the console :

log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.

I have the properties file in the folder :
..\jakarta-tomcat-5.0.28\common\classes

i have the following jars in the ..\jakarta-tomcat-5.0.28\common\lib :
* commons-logging.jar
* log4j-1.2.9.jar

My configuration file looks like this :

log4j.rootCategory=WARN, R
log4j.appender.R.Threshold=WARN
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=D:/java/jakarta-tomcat-5.0.28/logs/catalina.log
log4j.appender.R.MaxFileSize=1MB
log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %p %t %c - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=ERRO R, R

What could be the problem?

Thanks a lot!!
Hello all,

we've build a java web app based on struts and started off hosting it with a hostingcompany. This company uses a cPanel environment which includes a tomcat server. They've installed all and it works, but it's very buggy. Sometimes it works great at other times it's a big mess.

Recently we've discovered that when starting the tomcat server at a certain point it starts looking for the META-INF/MANIFEST.MF file in the public_html/name_of_webapp folder. However this folder doesn't exist. So therefore load on the server get exceedingly high. So we don't know why it points to this folder for looking for the application files.

We worked around this by creating an exact copy of the tomcat/webapps/name_of_webapp folder and putting it in the public_html folder. This is a workaround and although it works for the moment it's not satisfactory.

Another thing is when i approach the application through http://www.aplliaction_name.nl it seems that there is some sort of time out within the session. I place an object in the session, once i reach the action i take the object from the session but it's not there -> nullpointerexception. BUT when i approach the application without www so like http://application_name.nl it works and there are no problems.

Does anyone know how to solve these issues or at least give me a hint where to look for the problem?

Many thanks!!
19 years ago
Hello all,

is there a way to send multiple parameters when using html:submit this tag only gives the option to given a single parameter using property and value. However what can i do when i want to give multiple parameters. For instance the method to be executed (LookupDispatchAction) and a product id?

Thanks!!
19 years ago
Ok situation now is as follows :

I have two action : one that initializes a shoppingcart and one dispatchaction that updates, deletes etc. In my form i have a map which contains key : product id and value is a String object containing the amount.

my form contains the following methods :




In my JSP i have the following code :


This works for displaying purposes. So it shows the correct amount. Question is though what can i do to update the amounts. When it reaches the action the map is null. Perhaps place the map in the request, but is it then possible to write to the given object using html:text tag.

Does anyone know how to deal with this issue???
[ February 28, 2005: Message edited by: Theo van Loon ]
19 years ago
Hello all, in my form i have a String[] which i fill using html:text tags. However when i reach the action in which i need the String[] it is null. What can i do to resolve this?
19 years ago
Hello all,

i am running a webapplication based on struts on a local tomcat server

The browser tries to open the following link in the browser :


This results in all strange characters in the browser window and not me downloading the file. is this because of the fact i run this on the server or another reason. Perhaps then this question has to be placed in a different forum.
Hello all,

i have a class that holds a description field which is a string. I would like to know if it's possible to give line brakes in this desciption.

in html it would look like this :

desciption first part
<br />
desciption second part

The String is just printed out to the screen like this

desciption first part <br /> desciption second part

So there is no linebrake and the user sees the <br/> element printed out to the screen.

I also tried the '/n' new line in the String field, this also doesn't work.

So the question is, how can i print out a string and give the String elements in order to know where to put linebrakes.
19 years ago
Hello all,

in one of my workspaces the keys that can be used in eclipse are not working. So for instance pressing F3 doesn't go into that class/method, double clicking doesn't set a breakpoint etc.

In the general preferences under keys all these are mentioned but they don't seem to work. In another workspace they do work. Is there some setting to turn on/off these keys?

Thanks for the help!!
Ok sorry guys,

what i meant was a display popup text like when you hover over an image when you hover over the artist text area.

Can i perhaps place an empty image and add the text there.
How can i add a popup text to an image?

I'll keep you posted.
[ February 12, 2005: Message edited by: Theo van Loon ]
19 years ago
hello all,

i am having some thoughts about using hint text in my webpage. When there multiple artists that composed an item. Let's say their name is displayed as V/A i want to display a hinttext with all artist named in their when you hover over the artist name (V/A).

I write out the name of the artist like this:


The hintext is also an attribute contained by product. But how can i display it on the screen?
19 years ago
Hello all,
i have a table in which i set cellspacing to 0. However the cells still have some space between them. This is the css style i use :



Could anyone help me out on this one?
Thanks
No that's not it, i changed the name from AntenneForm to CatalogForm so it would be more clear for you. I didn't change it everywhere. I set the collection in the form in my Action. But when it reaches the jsp it seems to be null...
19 years ago
Hello all,

i have a problem :

here are some snippets of the code to show you what;s going on :

struts-config.xml :


Form :


Action :


Jsp :


I keep getting the no collection found message when i had it working before.
I do exactly the same for another collection and it works just fine. Can't seem to find what's wrong. The collection returned by the TestClass is filled so that's not the issue.

Thanks for your help a lot!!
19 years ago
I guess you never heard this one before in the history of javaranch.
I uploaded the wrong file...
It was an old jar instead of the most recent one...

I sent an email to suncert@thompson.com and who2contact@central.sun.com

What should i do???!!!

And what do you think they will do?

Hello all, i have a simple GUI for my server which displays just a single line and a button which enables the user to close the server.

GUI looks fine but ones i have dragged the gui i can't seem to click the button and it is below my button, and text seems to be displayed below the original text, so i have to click below the original button and there seems to be the button.

It seems like once i've dragged the GUI it repaints below the original fields and all goes wrong.

Very strange in order for you to be able to help i'll show a couple of snippets of my code :


Code in the Controller :


So that's all the code, the problem occurs when dragging the window to another position, so focus is lost. Same thing is happening to my proerties gui.

Can anybody help me out please?