Pablo M�ller

Ranch Hand
+ Follow
since Dec 12, 2006
Merit badge: grant badges
For More
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 Pablo M�ller

Hi,
We need to remotely debug an application that is running on an iplanet 6.5 server, literally across the ocean. Is there any way to do this? We've been reading about iPlanet Application Server Administration Tool (iASAT) which seems to be what we want, but we can't find it anywhere. Is it available online? Is there any other tool we can use for this?
Thanks,
Pablo.
16 years ago
Hi,
I'm building a word processor that has a version control and saves each paragraph to the database. One version is composed by several paragraphs. A new version is created each time Users enters the editor, and each time they save the document it is saved to the same version, until they access the editor again.
The problem is that the paragraphs are only saved properly te first time. Any further save, will save the version and the paragraps but not the relation between them. So any paragraph created after the first save is persisted, but cannot be retrieved, since it's not associated to the version.

Here's the mapping:


Here's the code that saves:


And finally here's the dao code


If anyone knows what's the problem it would be great.
Thanks,
Pablo.
Hi,
I'm starting to use jasper and I need to pass some parameters to a query for the where clause, but if the parameters are null (or "", etc) I don't want the where to be there. Is there any way to do this without providing the whole query as a parameter?
Thanks,
Pablo
I found this link:
http://michaelstudman.com/fullfathomfive/articles/2004/06/07/mysql-dropping-connections-and-hibernate
He had the same problem, and fixed it using dbcp as the connection pool. So I downloaded it and configured the hibernate.cfg.xml as he did, but nothing happened. He says that hibernate will use dbcp simply adding a dbcp configuration property to the hibernate.cfg.xml. Well, I copied his config and this is what I get from hibernate:



As you can see it's still using hibernate's default connection pool. Am I missing something?
Thanks a lot.
We modified the hibernate.cfg.xml to use a datasource, instead of passing the connection parameters there, and it seems to be working that way.
Unfortunatelly this is only a workaround and we still need to fix it the other way because we can't add datasources to the production server without restarting it, so applications should be able to handle the connection pool properly on their own.
Thanks again
Hi,
I have this problem: Our application is running on a tomcat 5.5 and uses hibernate with a mysql 5 database. It works great during office hours, but when we arrive in the morning, the tomcat is still running, but the database connections had been closed by the database. Hibernate doesn't know about this and tries to use them. If we reload the page after the exception we get, it starts working, because it creates new connections.
I've been reading about this (http://www.mchange.com/projects/c3p0/index.html#configuring_recovery) and tried to configure c3p0 to handle this, but I get te same error. Also I don't know how to test this properly, so far I've been killing the connection thread with the mysql administrator.

This is the hibernate.cfg.xml



This is my c3p0.properties, which is located in the src folder of the project (the root of all packages).. does it go there?



Is my configuration ok? How can I prevent this error from happening? If it does happen, how can I prevent the application from failing?
Thanks a lot.
Pablo.
It's done..
It was because of this:

Calefon para 2 ba�eras a la vez

The problem was in the �. I guess Bill never expected some who speaks Spanish to parse an XML .
Hi,
I have an application with some ajax functions. In one of these the servers answer something like this:



So this is evaluated like this:



This works ok on firefox, but on IE it fails. I've been debugging it fails when this is present:



If you take a look, there is some javascrip in there which is evaluated later. Is there something wrong with the XML? Or is it a problem of the internet explorer?

Thanks for you time.
Pablo.
Hi!
Could you post the whole stack trace?
16 years ago
Thanks for your replies!!!
Merrill, I'll try the virtual host like that.
Kevin, could you give me some more detail? What should I look for?
Thanks again,
Pablo.
16 years ago
I'm sorry for insisting, but I still have this error and I don't know how to fix it...
If any further explanation of the problem is needed, please tell me.
16 years ago
Hi



j++ and ++j both increment j even if they are not assigned. That's why you get j incremented by 2.

Regarding the other error you have.. is that your actual code.. I mean, is your class B exactly what you posted?
Pablo.
16 years ago
Hi,
We're deploying our apps to a demo server (Tomcat5.5.23) to be shown to our customers.
In our LAN the address for the server is http://192.168.3.83:8080/ so the apps are at http://192.168.3.83:8080/app1/, http://192.168.3.83:8080/app2/... etc
So to show them outside, whe mapped http://www.oururl.com/test/
to http://192.168.3.83:8080/
This way if we go to
http://www.oururl.com/test/app1, http://www.oururl.com/test/app2, we can access our application though the Internet. This works great until I submit a struts form.
For example, this form, extracted from app1



Should go to
http://www.oururl.com/test/showDayTimeLines.do

But it removes the /test part of the url, it goes to
http://www.oururl.com/showDayTimeLines.do
So, every form fails.
This is the mapping for that particular form... the rest are done the same way.


Is there any way to keep the complete url when submiting a form?
Thanks
Pablo
16 years ago
I can tell you it comes with tomcat 5.5.
You can use it to start and stop tomcat. Also it allows you to configure the logs, startup and shutdown parameters.
Is this what you where looking for?
16 years ago
In a desperate action, one of those you do when you don't know what else to try, I moved the libraries that were under shared/lib to the war, and it started working... It seems it was a tomcat issue after all, but I don't know.
Thank you all.. I hope it keeps working this way.