I believe the problem is with syntax of your SQL statement, not w/ log4j per se
try putting commas between your VALUES in your SQL statement.
-Don
On Thu, 13 Nov 2003 09:55:45 -0500 [EMAIL PROTECTED] wrote:
>
> Howdy,
> Can you rerun your system with -Dlog4j.debug=true as a java runtime
> o
I have done what you are attempting with no unexpected results... i.e.,
UserA maps to address 1 and UserB maps to address 2 just fine.
The ability for this to work correctly really lies more with the Thread
strategy employed by your servlet engine, and less on Struts in order
for this to wo
utils of course ;))
A downside to both the above and I assume Senior Larmee's approach is
that they only invoke public methods, so you don't get private state in
your logging output.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Donald Larmee | ALTERT
In the past I have used a generic bean-util style widget that uses
reflection to introspect any passed Object, and dumps its contents into a
formatted Stringwhich is then in turn logged.
The DumpUtil (as I have implemented anyway) works well for reasonably
simple/flat Objects, but does not
Re: Bug in jBoss
Alas. Actually/unfortunately the 2.3 (and 2.4 proposed final draft) Servlet
spec only 'suggests' that the Containers ClassLoader give preference to the
WebApp (http://www.jcp.org/aboutJava/communityprocess/final/jsr053/):
"SRV.9.7.2 Web Application Classloader
...It is
Not sure I have entirely understood your issue correctly. By 'application
scoped class' do you mean one that is created/loaded by the classloader
associated only with the webapp itself (i.e., the class resides in your
WEB-INF/classes or WEB-INF/lib, not in Tomcats CLASSPATH)? Is the class in
socket client, but it does
not
allow it to be a network server. Allowing the instance
to become a network server would conflict with
the basic function of the enterprise bean-- to serve
the EJB clients.
//Nicholas
--- donald larmee <[EMAIL PROTECTED]> wrote:
> Hi Michael,
>
> Ye
Hi Michael,
Yes! I use log4j inside EJB containers all the time. You are correct
about the EJB specs ... in fact you should not open a Socket directly
either.. if you wanted to go this route you would need to make the Sockets
obtainable from the container by implementing a construct in the
J
00, Corbin, James wrote:
Thanks Don. I think what you describe is happening. I will search the
forums further.
So, what was your solution? It sounds like the custom
ContextRepositorySelector did not work for you. I may have misinterpreted
your email.
Thanks,
J.D.
-Original Message-----
From: don
The problem w/ jBoss is that they 'get there first'.. in that they use
log4j for their own internal logging log4j.jar exists in the Containers
CLASSPATH and the first time an internal logging statement is hit log4j
initializes itself w/ the log4j.xml configuration file located (by default)
There are probably a dozen ways to do this, but here is a possible approach:
- Push the IP of the client into the NDC.
- Create a custom MultipleFileAppender that would examine the NDC
contents against a Map of open files. If it finds the NDC in the map, it
writes the message to the file ass
Well upon a bit of further investigation, it would appear to only be an
issue when using the non-standard 'contrib' version of the
JDBCAppender. The JDBCAppender that is part of the log4j distribution
proper works just fine
-d
At 09:52 AM 2/7/2003 -0500, donald larmee w
Hmm... perhapsI am attempting to use the MDC incorrectly. I have tried to
use this technique in the past (with Danko Mannhaupt's variant of Thomas
Fenner's JDBCAppender that is included as part of the 'contrib' code in
1.2.7... available here-->http://www.dankomannhaupt.de/projects/index.html)
Sorry for the delay in response.
If you plan to attach your JDBCAppdender to an AsynchronousAppender, be
warned that the MDC style approach will not work as the context of the
Thread that logs the message will be different from the Appender that
actually writes the data.
-D
At 07:54 PM 1/27/2
Also, if you don't mind having your application output munged in w/ the
WebLogic's stuff. it is fairly trivial to write a custom appender that
writes to the WebLogic proprietary logger facility.
IAt 05:43 PM 12/3/2002 +0100, Ferrari Alberto wrote:
Oks
I'm using log4j in weblogic (only EJB tier)
Can you pl let me know how to prevent strus classes from logging
messages
Thks
--Venkat
-Original Message-
From: donald larmee [mailto:[EMAIL PROTECTED]]
Sent: Wed 11/20/2002 12:54 PM
To: Log4J Users List
Cc:
Subject:Re: Getting junk messages in log file (Followup=null
I have not used the JDBC appender, so I am guessing here... but you need
to load your JDBC driver into the JVM, either thru a connection pool
mechanism, which should do it for you, or explicitly thru something like:
Class.forName("fully.qualified.class.name.for.your.driver");
// lo
Try putting the Logger(Category) in your pattern layout (via %c), so you
can see who is doing the logging. I am assuming that the message is coming
from struts (or another component/jar that it relies on), which uses the
jakarta logging/commons package(which in turn will use log4j if it
availa
Re: Initialization
Depending on your container, you can have startup class do your log4j
initialization.. e.g., in WebLogic you can specify a (proprietary) startup
class you want to have run via the console app.
It is also technically possible (although I have not done it personally) to
extend
Try compiling your code w/ the -g switch to include debugging
information. Many JustInTime compilers lose locality information during
runtime optimizations. However, if you are using a 3rd party jar, you may
be out of luck. The ''?' results because the StackTrace being parsed to
get the loca
Try setting -Dlog4j.debug=true on the java invocation command line to see
what is going on...
At 01:55 PM 10/21/2002 -0400, William R. Kreamer wrote:
oops, I actually get the following output:
[wkreamer@georgia wkreamer]
java -Dlog4j.configuration=/home/wkreamer/log4j.properties -classpath
log
Your situation might be a little different than mine (I am not using
CATALINA, but rather a custom mini-AppServer...),so YMMV a bit...
Well, you certainly could keep a handle to the original CRS object... but
there are some other options as well:
- I use a WeakHashMap to store the Hierarchies
Re: Multiple config files...
I have recently had to solve the same problem.. i.e., I have an AppServer
(of sorts) that needs its own log4j configuration, and then some number of
applications that will run 'inside' the AppServer, each of which is to have
its own configuration file.
The solution
23 matches
Mail list logo