Guy Roth

Ranch Hand
+ Follow
since Aug 09, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Guy Roth

The problem is that there is no such file in my logs folder. They all ends with .log even though I don't think I configured Tomcat differently than the original configuration.
13 years ago
I'd like that all the output that is shown in Tomcat's console will be saved into a file including the output on startup and shutdown of Tomcat.
How can I do this?
I looked at apache documentation about logging, but couldn't find out how.
13 years ago
I am runnig a web application on tomcat 5.5
How can I force dump of a session into disk on each interval of time (for example every 5 minutes)?
13 years ago
I works! Many thanks to you.


BTW, as far as I know the convention to use system param in web.xml using ${system:<param-name>} worked in JBoss 4.2.3.GA and stopped working only in JBoss 5.1, right?
13 years ago
Actually you are correct I did manage to perform System.getProperty("user.dir") and get the correct folder (bin)

however when I put in my web.xml the param:


and perform:


the returned value was user.dir/momo.ini
instead of bin/momo.ini

Why is that?
13 years ago
1. I opened the Mbean SystemProperties and couldn't find an operation to show all the properties such as suggested 'showAll'
I found only: addChild, getEventType, mejbStartRecursive, mejbStart, mejbStop, removeChild

2. even if I could view the list of existing properties my question is in addition how can I modify and add my own system parameters to JBoss (apart from adding them to the java execution command with -D)
13 years ago
I am trying to call the System property from my web application that is deploayed as a .war in <JBoss root>/server/default/deploy

by calling:
13 years ago
Yes. Let me try to provide an example:

let's say that the class Util that contain the metho foo() exist both in WEB-INF/lib and in server/default/lib (but in different versions)
I want to be able that if I perform from my web-application a call from package:
com.x.Aclass
Util.foo()
it will use the Util from WEB-INF/lib
and if I perform a call from
com.y.Bclass
Utill.foo() it will use the Util from server/default/lib

Is this possible in JBoss 4.3.2 or in JBoss 5.1?
13 years ago
In JBoss 4.2.3 the System property 'user.dir' is defined to be

<JBoss-root>/bin



When I ran the same application on JBoss 5.1 I noticed that it cannot find the System property user.dir

why there is no default definition for version 5.1?
and how can I define it manually?
I followed this suggestion and added my property into properties-service.xml but it had no affect and still JBoss couldn't find the system:user.dir value.
13 years ago
I am running my application on JBoss server 4.2.3.GA and use JBoss cache 3.1 as part of the application deployment.
It seems that the jar to support JBoss cahce that are part of my WEB-INF/lib are in conflict with the jar of JBoss AS

I looked at this article that discusses JBoss class-loading and my question is:

Is it possible to isolate only selected packages from my application so that the will load utility classes first from server/default/lib while the rest of the classes from my application will use same utility classes but look for them first from the application's archive?
So I could use different version of the same utility classes in the same application?
13 years ago
I discovered the source to my problem:
I am running my application on JBoss server 4.2.3.GA and use JBoss cache 3.1 as part of the application deployment.
It seems that the jar to support JBoss cahce that are part of my WEB-INF/lib are in conflict with the jar of JBoss AS

I looked at this article that discusses JBoss class-loading and my question is:

Is it possible to isolate only selected packages from my application so that the will load utility classes first from server/default/lib while the rest of the classes from my application will use same utility classes but look for them first from the application's archive?
So I could use different version of the same utility classes in the same application?
13 years ago
Hi,

I am trying to configure Oracle datasource in JBoess.
1. I created the file oracle-ds.xml with the content:
<?xml version="1.0" encoding="UTF-8"?>

2. updated in the lib the relevant jar with the jdbc driver.
3. define in my application a datasource by:

the result:
in case connection="bilby" I get:
javax.naming.NameNotFoundException: bilby not bound
and in case connection="java:bilby" I get: null object

even though JBoss print in its output the line:
18:37:56,560 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=bilby' to JNDI name 'java:bilby'

and I also can see this datasource defined in the JMX web-console (Started with state=3)

Why can't I get the datasource that I defined? perhaps there is a security issue that doesn't allow application recieve java resource automatically and I still need to cofigure something else to allow it?

See also (here)
13 years ago
How do I make the log server\<my server>\log\serve.log to be appended. i.e. whenver I restart JBoss it should not override the content of the log but continue from the end of it?
14 years ago
It worked.
So apperenly isolation won't work here due to a know bug of JBoss - Great...
14 years ago
My application worked fine on JBoss 4.2.3.
I am now trying to deploy it on Jboss 5.1 that also uses java 5.

during deployment I get the error:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration


I first try to isolate my application by adding the jboess-web.xml to my web-inf/lib that conain this:

It didn't help so I tried to add to jboss-5.1.0.GA\server\standard\lib the version of jars that are used by my applications:
xalan.jar, xerces.jar, xercesImpl.jar

those changes didn't change a bit. I still get the same error on server.log

What do I do wrong?
14 years ago