Placement of Log4j.jar
We are planning to use Log4j, and finds it necessary to use logging both in web and ejb layer.
The 'obvious' solution is to put log4j.jar in j2ee/home/lib, whitch should make it available to all.
Unfortunately,
Oracle is using log4j in their Enterpise Manager web site, which we use for deployment to Oracle iAS 902.
EM is relying on an older version of Log4j, so the placement in j2ee/home/lib might make EM stop functioning, since EM includes this location (default OC4J home) in its classpath.
Supplied log4j in WEB-INF/lib of the web-application, and put an entry in orion-application like:
<library path="../../applications/dealerapp/dealerweb/WEB-INF/lib/log4j-1.2.6.jar" />
(log4j initialized by a servlet at startup)
This seems to work, but is there other solutions?
regards, Trond R.
Hi Curt - your point is a good one. The Servlet 2.3 spec has tightened up the classloading order a little (and 2.4 tightens it further), so at least we're on the path to a well defined model for class loading in Web applications.
Just for completeness, the <web-app-class-loader> tag is documented in the Servlet Developer's Guide.
http://download-west.oracle.com/docs/cd/A97688_08/generic.903/a97680/deploy.htm#1010258
<web-app-class-loader ... >
Use this element for class loading instructions.
Attributes:
search-local-classes-first: Set this to "true" to search and load WAR file classes before system classes. The default is "false".
include-war-manifest-class-path: Set this to "false" to not include the class path specified in the WAR file manifest Class-Path attribute when searching and loading classes from the WAR file (regardless of the search-local-classes-first setting). The default is "true".
-steve-
Similar Messages
-
Where to Place java library(.jar) in your application
Hi,
I am using ColdFusion - 9 in my application. Also, I am using some third party java library. I put my library in "\ColdFusion9\lib\" but now my library version is changed. So I need to update those files by replacing the old files.
My Question Is: Can we place the java .jar files in some location inside my application directory. So that I don't have to do any changes with the ColdFusion library directory for using those libraries.
ThanksCF10 brings in custom paths for this sort of thing:
http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804 331-7ffe.html
But this is no help to you. However there's a third-party solution which'll work on CF9:
http://javaloader.riaforge.org/
I've never used it, but I've heard good reports from people who have.
Adam -
Forms 10g and Java 6 - Howto place the oracle .jars?
Hi,
I would like to compile a sample Forms Java Bean with standalone Java ( not with the JDeveloper IDE )
and the source starts with a lot of import oracle classes in jars.
My java install is like this:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
Could you indicate where I should place the Oracle jar files in order to have javac to recognize them?
Many thanks in advanceHi again,
I'm not advanced enough on these topics to clarify.
Things have changed in the meantime here.
At the moment we are looking into using 'web_show_document' with an html page containing javascript.
There is a discussion on the 'talk2gerd.blogspot' that indicates what to set in formsweb.cfg and forms.conf in order to use javascript.
Still getting a browser written as a Javabean to consult entreprise documents from a Forms client would be a nice bonus.
Many thanks for your help. -
How to create outside Logging file in osb 11g using log4j.jar?
Hi all,
Currently, i am using osb 11g to develop a system. In the system we need to create a log file using log4j.jar library. This sub-program is working in the osb 10g base but fail to work in the osb 11g base. Can anyone give me some advice about this matter? Have anyone created one like this in 11g? Is it successful?Sorry path is missing for the above request.
path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
please help.
Saravanan.K -
How to let Weblogic to load log4j.jar from application?
Hi all,
Our company planed to move an application from WebSphere to WebLogic server (10.0.2). I am responsible for the technique aspect on this moving. But this is my first time to work on WebLogic, so it seems everything is new for me. Currently, I am encountering a very tough issue. In our project, it has an old log4j.jar (2001). I put the jar in APP-INF/lib. However, after I deployed the project to server, system always run the new log4.jar from server, and gave exception, as follows. The old log4j.jar has this method, but new log4j.jar doesn't.
Anybody can give me help? I really appreciate. Thanks.
####<Aug 5, 2009 10:28:06 AM CDT> <Error> <HTTP> <msn043074c> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1249486086015> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1988902 - appName: 'ampi', name: 'ampi', context-path: '/ampi'] Root cause of ServletException.
java.lang.NoSuchMethodError: org.apache.log4j.Category.getInstance(Ljava/lang/String;Lorg/apache/log4j/spi/CategoryFactory;)Lorg/apache/log4j/Category;
at com.lilly.atlas.frameworks.logging.AtlasServerCategory.getInstance(AtlasServerCategory.java:182)
at com.lilly.atlas.frameworks.logging.Log4JAdapter.<init>(Log4JAdapter.java:103)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.lilly.atlas.frameworks.logging.AtlasLogger.initialize(AtlasLogger.java:110)
at com.lilly.atlas.frameworks.logging.AtlasLogger.<init>(AtlasLogger.java:93)
at com.lilly.atlas.frameworks.logging.AtlasLogger.getInstance(AtlasLogger.java:129)
at com.lilly.atlas.frameworks.logging.AtlasLogger.info(AtlasLogger.java:329)
at com.lilly.tox.ampi.actions.LoginAction.perform(LoginAction.java:145)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)Hi David,
According to the link you posted, I put the following codes in the weblogic-application.xml, then my ear file can be successfully deployed on WebLogic. Thank you soooooo much, I sincerely appreciate it.
<wls:prefer-application-packages>
<wls:package-name>org.apache.log4j.*</wls:package-name>
</wls:prefer-application-packages>
Best regards,
Sheng
Edited by: gus888 on Aug 5, 2009 11:34 AM -
Problen when using log4j.jar in my web service application
Hi, i have a little problem. I have to migrate an existing java application to web services, and this application uses log4j.jar. So i put that jar file in the lib dir in WEB-INF. However, when i try to deploy the application, i get an error saying
org.apache.commons.LoggingException: No suitable Log constructor [LJava.lang.Class;c492c8 for org.apache.commons.logging.impl.Log4JLogger
And of course if i remove that jar from the lib dir, the app deploys ok, but it crashes because it can't find the class Logger (located in that jar)
Any ideas how to solve this?????
Thank youWhen is the log4j constructor invoked ?....you said you moved the java application to webservice....in the java application they might have initialized the log4j with the log4j properties file some where when they start the application..
Have a start up servlet which initializes the lof4j. -
Log4j.jar issue under Web Service Security Module
I am running into an issue with log4j.jar for WebLogic OES PDP. there is a custom appender class that extends org.apache.log4j.AppenderSkeleton, if we packed into one jar file under \bea\ales32-ssm\webservice-ssm\lib\log4j.jar everthing is fine. if we split this class with another jar file(sth like patch.jar) and add a entry in the config file WLESws.wrapper.conf under bea\ales32-ssm\webservice-ssm\instance\WSSM\config and it failed with this error,
but an error is
generated when starting the WSSM(Web Service Security Module):
log4j:ERROR A "com.foo.AuditJMSQueueAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [com.bea.security.providers.utils.InverseURLClassLoader@5f7d3f] whereas object of type
log4j:ERROR "com.foo.AuditJMSQueueAppender" was loaded by [sun.misc.Launcher$AppClassLoader@a18aa2].
log4j:ERROR Could not instantiate appender named "JMS_AUDIT".
130
ARME is started now
Rendering object type: AuditAtzEvent
I have tried add java option:log4j.ignoreTCL=true. in this WLESws.wrapper.conf file, but does not work.
How to resolve this issue, Thanks for your help!hi
Can anyone help with this... -
How/where to deploy log4j JAR?
I am unable to get log4j working with my enterprise application, and am
wondering if I have the log4j JAR file deployed properly. I am using
WebLogic 8.1 SP2 with log4j 1.2.8.
My application is an exploded enterprise application deployed in the
"applications" directory. The directory structure is as follows:
applications/
myEnterpriseApp/
META-INF/
myWebApp1/
myWebApp2/
I have made the following attempts at deploying log4j-1.2.8.jar and
log4j.properties:
Attempt 1:
- log4j-1.2.8.jar in .../myWebApp1/WEB-INF/lib and in
.../myWebApp2/WEB-INF/lib
- log4j.properties in .../myWebApp1/WEB-INF/classes and in
.../myWebApp2/WEB-INF/classes
Attempt 2:
- log4j-1.2.8.jar in .../myEnterpriseApp/APP-INF/lib
- log4j.properties in .../myEnterpriseApp/APP-INF/classes
Attempt 3:
removed all occurrences of log4j-1.2.8.jar and log4j.properties from the
.../myEnterpriseApp directory tree.
In all three cases, I see no logging output either to the WL Server console
or to my defined log file. Nor do I see any thrown ClassNotFoundException
(expected in attempt 3), so I suspect that log4j is being loaded elsewhere.
What do I have to do in order to have log4j recognize my log4j.properties
file?
Alternately, to what other file(s) can I add my logging preferences?
-- Craig"Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
I am unable to get log4j working with my enterprise application, and
am
wondering if I have the log4j JAR file deployed properly. I am using
WebLogic 8.1 SP2 with log4j 1.2.8.
My application is an exploded enterprise application deployed in the
"applications" directory. The directory structure is as follows:
applications/
myEnterpriseApp/
META-INF/
myWebApp1/
myWebApp2/
I have made the following attempts at deploying log4j-1.2.8.jar and
log4j.properties:
Attempt 1:
- log4j-1.2.8.jar in .../myWebApp1/WEB-INF/lib and in
.../myWebApp2/WEB-INF/lib
- log4j.properties in .../myWebApp1/WEB-INF/classes and in
.../myWebApp2/WEB-INF/classes
Attempt 2:
- log4j-1.2.8.jar in .../myEnterpriseApp/APP-INF/lib
- log4j.properties in .../myEnterpriseApp/APP-INF/classes
Attempt 3:
removed all occurrences of log4j-1.2.8.jar and log4j.properties from
the
.../myEnterpriseApp directory tree.
In all three cases, I see no logging output either to the WL Server console
or to my defined log file. Nor do I see any thrown ClassNotFoundException
(expected in attempt 3), so I suspect that log4j is being loaded elsewhere.
What do I have to do in order to have log4j recognize my log4j.properties
file?
Alternately, to what other file(s) can I add my logging preferences?
-- Craig
Try passing it the path to the properties file as part of the java options in
your startWeblogic script. eg.
-Dlog4j.configuration=file:/d:/bea/user_projects/mydomain/log4j.properties
BEA Users Group -- www.beausers.org -
Commons-logging.jar and log4j.jar
Folks:
First of all, what are those commons-xxx.jar, such as commons-beanutil.jar, commons-collections.jar, commons-digester.jar, etc?
What is the difference between commons-loggin.jar ann log4j.jar? I read a post somewhere saying that commons-loggin.jar points to log4j.jar, why?
Could somebody throw some thoughts to enlighten me, please?
Thanks a lot !http://jakarta.apache.org/commons/index.html
-
Multiple log4j jars of different versions in classpath
Hi,
Does having multiple log4j jars in the classpath of different versions cause problem. If I have both log4j-1.2.14.jar and log4j-1.2.15.jar in my classpath will that cause a problem.
I have a scenario where in the production env. servers hung and when I checked the classpath it had both the above log4j jars. Could it be an reason for server hanging?
Thanks
AAHi GP,
Thanks for all the help again.
2.How to ensure the existing user updates /new user creations that comes from OID 10g propagate to OID 11g as well? Please suggest the steps likely involved in OIM 11g configuration.
3.Also need to ensure the password changes propagates from OID 10g to OID 11g after the above configurations. Please suggest ways for this as well.
->>>PLease clear your requirement. Do you want to transfer data from OID 10g to OID 11g via OIM? If yes configure OID 11g as trusted source and trusted source reconciliation bring OID 10g data to OIM and OIM will propogate it to OID 11g.
I think you are looking for LDAPSync between two OIDs. You can refer its documentation to configure LDAP sync, so whatever changes are done in 10g will be propagated to OIM 11g.
->>>>>>>>>>Yes I want all the users that were once created in OID 10g should also be propagated on OID 11g under a similar context/orgs. Also if any change / modification in the existing user happens on OID 10g should propagate the changes for the same user on OID 11g. Please guide me how to configure trusted source in OIM 11g?
Also can you please point LDAPSync document (for propagate changes for user passwords from OID 10g to OID 11g user). I understand that you are suggesting for the same purpose? Please correct me if am wrong.
Thanks again. -
Log4j.jar loading error
We tried to use the log4j for our logging service through a war, the log4j.jar
is bundled with war file and is availbale under /web-inf/lib/log4j.jar. The delpoyment
of the war is good but when we access any resource, which refers the log4j class
(Logger), it throws exception Logger class not found exception. Interstngly, the
application loads other jars from the lib like commons.jar, which we wanted to
use later as a wrapper, I don't have any clue why this is happening. Your help
is highly appreciated. Thanks.
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101209> <testlog:testlog ready>
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101208> <testlog:testlog starting>
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101047> <[ServletContext(id=6370863
,name=testlog,context-path=/testlog)] WebServiceServlet: init>
<Jan 21, 2004 2:21:21 PM EST> <Info> <Deployer> <149033> <activated application
testlog on myserver>
<Jan 21, 2004 2:21:21 PM EST> <Info> <Deployer> <149039> <Completing a deploymen
t task with id 3 for application testlog with status Completed>
<Jan 21, 2004 2:21:35 PM EST> <Error> <HTTP> <101250> <[ServletContext(id=637086
3,name=testlog,context-path=/testlog)]: Servlet class com.wellsfargo.cts.cdo.esi.c
mpcdu.ControllerServlet for servlet CmpCduServlet could not be loaded because
a
class on which it depends was not found in the classpath C:\bea\user_projects\my
domain\applications\testlog.war;C:\bea\user_projects\mydomain\.\myserver\.wlnotde
lete\testlog_testlog_6370863\jarfiles\WEB-INF\lib\commons-logging22179.jar;C:\bea\
user_projects\mydomain\.\myserver\.wlnotdelete\testlog_testlog_6370863\jarfiles\cl
s22178.jar.
java.lang.NoClassDefFoundError: org/apache/log4j/Logger>
<Jan 21, 2004 2:21:35 PM EST> <Error> <HTTP> <101018> <[ServletContext(id=637086
3,name=testlog,context-path=/testlog)] Servlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=6370863,name=testlog,context-p
ath=/testlog)]: Servlet class com.wellsfargo.cts.cdo.esi.cmpcdu.ControllerServlet
for servlet CmpCduServlet could not be loaded because a class on which it depen
ds was not found in the classpath C:\bea\user_projects\mydomain\applications\log
4j2.war;C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\testlog_testlog_6370
863\jarfiles\WEB-INF\lib\commons-logging22179.jar;C:\bea\user_projects\mydomain\
.\myserver\.wlnotdelete\testlog_testlog_6370863\jarfiles\cls22178.jar.
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:701)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:447)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:287)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
>BTW, the environment info is: log4j: 1.2.8, WLS: 7.0 sp1
"Syed Arshad" <[email protected]> wrote:
>
We tried to use the log4j for our logging service through a war, the
log4j.jar
is bundled with war file and is availbale under /web-inf/lib/log4j.jar.
The delpoyment
of the war is good but when we access any resource, which refers the
log4j class
(Logger), it throws exception Logger class not found exception. Interstngly,
the
application loads other jars from the lib like commons.jar, which we
wanted to
use later as a wrapper, I don't have any clue why this is happening.
Your help
is highly appreciated. Thanks.
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101209> <testlog:testlog
ready>
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101208> <testlog:testlog
starting>
<Jan 21, 2004 2:21:21 PM EST> <Info> <HTTP> <101047> <[ServletContext(id=6370863
,name=testlog,context-path=/testlog)] WebServiceServlet: init>
<Jan 21, 2004 2:21:21 PM EST> <Info> <Deployer> <149033> <activated application
testlog on myserver>
<Jan 21, 2004 2:21:21 PM EST> <Info> <Deployer> <149039> <Completing
a deploymen
t task with id 3 for application testlog with status Completed>
<Jan 21, 2004 2:21:35 PM EST> <Error> <HTTP> <101250> <[ServletContext(id=637086
3,name=testlog,context-path=/testlog)]: Servlet class com.wellsfargo.cts.cdo.esi.c
mpcdu.ControllerServlet for servlet CmpCduServlet could not be loaded
because
a
class on which it depends was not found in the classpath C:\bea\user_projects\my
domain\applications\testlog.war;C:\bea\user_projects\mydomain\.\myserver\.wlnotde
lete\testlog_testlog_6370863\jarfiles\WEB-INF\lib\commons-logging22179.jar;C:\bea\
user_projects\mydomain\.\myserver\.wlnotdelete\testlog_testlog_6370863\jarfiles\cl
s22178.jar.
java.lang.NoClassDefFoundError: org/apache/log4j/Logger>
<Jan 21, 2004 2:21:35 PM EST> <Error> <HTTP> <101018> <[ServletContext(id=637086
3,name=testlog,context-path=/testlog)] Servlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=6370863,name=testlog,context-p
ath=/testlog)]: Servlet class com.wellsfargo.cts.cdo.esi.cmpcdu.ControllerServlet
for servlet CmpCduServlet could not be loaded because a class on which
it depen
ds was not found in the classpath C:\bea\user_projects\mydomain\applications\log
4j2.war;C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\testlog_testlog_6370
863\jarfiles\WEB-INF\lib\commons-logging22179.jar;C:\bea\user_projects\mydomain\
.\myserver\.wlnotdelete\testlog_testlog_6370863\jarfiles\cls22178.jar.
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:701)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:447)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:287)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
> -
How to fix the Log4j error due to old version of log4j jar bundled with jre
Hi,
We have a webstart application which budles the latest log4j.jar (ver 15), but for some users at startup after the app is downloaded the newer version of the log4j jar is not loaded - We get a NoSuchMethodError when we try to use the trace() method of log4j. Question is how do we ensure that our app always picks up the newer version of log4j jar bundled with the app and not the one in the lib/ext folder of the jre,
thanksI think we both have similar issue Thread
Do anyone knows why this is happening? -
Where to place 3rd party jars for use with SSPI
I have a question regarding the SSPI. Our custom sspi uses some third party jars
for things such as persistence and caching. Our problem is that the sspi jar
file that is placed in the mbeantypes directory relies on some of these jars,
therefore they must be available at startup. However since we will be installing
the sspi on several different Weblogic 8 servers I do not want to modify each
startup script to explicitly include each jar in the classpath.
Is there a place or a best practice that we can use to allow the sspi find these
libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which does not
seem to work.You will need to have them in the classpath
Tony
"tobin" <[email protected]> wrote in message
news:40882da6$[email protected]..
>
I have a question regarding the SSPI. Our custom sspi uses some thirdparty jars
for things such as persistence and caching. Our problem is that the sspijar
file that is placed in the mbeantypes directory relies on some of thesejars,
therefore they must be available at startup. However since we will beinstalling
the sspi on several different Weblogic 8 servers I do not want to modifyeach
startup script to explicitly include each jar in the classpath.
Is there a place or a best practice that we can use to allow the sspi findthese
libraries? Note: we tried the JAVA_HOME/jre/lib/ext directory which doesnot
seem to work. -
Place of driverAdapter.jar
hi,
am trying to remotly deploy an application using a solaris server (am using windows).
I use mysql database in my application so i need to configure the datasource on the remote server.
i placed DriverAdapter.jar and mySQL connector .jar under the /lib directory but things cant get to run as i get an sql error that the driverAdapter is not in the class path
Any idea where could the problem be ??
Thanks in advance.For AppServer to access the database drivers,
driver files need to be placed in domains/<domain-name>/lib/ext
restart the appserver, driver will get recognized.
Thanks,
-Jagadish -
Log4j - logging not working correctly in OC4J
I am using log4j to log all data from my system, ie. interface data, errors, info, performance data. Interface data going to one file, errors and info to another file, and performance data to another file. I am using the RollingFileAppender to log data into files. I have a wrapper class that is used to call the log4j methods. When this is tested in Jdev- everything works ok. When deployed to the server, my interface data does not get logged but everything else does. The only time that the interface data logs is when that data goes to the console as well as the file. Does anyone know what could be the problem?
Thanks.
ChrisCheck all the places where log4j.jar is available. If possible cross check against your earlier environment too. Remove in places where it is not necesary.
Check out this article also.
www.oracle.com/technology/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf
Maybe you are looking for
-
What is this? (From 4th Gen iPod Touch dock connector)
I recently bought a 5th Gen iPod Touch which is great. My 4th gen broke a year ago and wouldn't charge. This morning I decided I'd see what's wrong with it. I shone my flashlight in the dock connector and I realised this thing wasn't connected to any
-
TS1500 In the "Device" part, my iPhone is not listed there...
I really need to transfer my pictures to my computer but I can't and I dont know how to
-
Inconsistent code generation with wsdl2java tool
I am creating web service using axis2 , with top down approach. Initially thought of using the SOAP based webservices and created the wsdl like below. <wsdl:message name="CreateObjInput"> <wsdl:part name="CreateObjRequest" element="tns:CreateObj
-
Hi! I see that a PatchSet 2 was released few days ago. I have the following questions: 1. Is it possible to do the upgrade from exising installation of SOA Suite 11.1.1.2 to 11.1.1.3 or I have to install everything from scratch? 2. Is it possible to
-
Controlling the Mac with keyboard
Does anyone know of a tutorial or other instructions for how to use the hidden-to-me accessibility features of the Mac? "Full Keyboard Access" is turned on in the Keyboard and Mouse > Keyboard preference pane. Yet there doesn't seem to be a way to na