jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bret Kumler" <bkum...@firstam.com>
Subject RE: Weblogic 8 problem
Date Thu, 04 Sep 2003 21:26:03 GMT
<servletredirector name="ServletRedirectorSecure"
          mapping="/ServletRedirectorSecure" roles="test"/>

Setting the roles="test" hard codes the following in the web.xml


<security-constraint>
        <web-resource-collection>
            <web-resource-name>Cactus Test Redirector</web-resource-name>
            <url-pattern>/ServletRedirectorSecure</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>test</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>myrealm</realm-name>      <------HARD CODED SOMEWHERE
    </login-config>
    <security-role>
        <role-name>test</role-name>
    </security-role>


Which causes the following error to occur.



[cactus] ------------- Standard Error -----------------
[cactus] Sep 4, 2003 1:09:02 PM org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
[cactus] WARNING: No credentials available for the basicauthentication realm
'myrealm'
[cactus] Sep 4, 2003 1:09:02 PM org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
[cactus] WARNING: No credentials available for the basicauthentication realm
'myrealm'
[cactus] ------------- ---------------- ---------------
[cactus] Testcase:
testBasicAuthentication(org.apache.cactus.sample.unit.TestBasicAuthenticatio
n):   Caused an ERROR
[cactus] Failed to get the test results at
[http://localhost:7001/test/ServletRedirectorSecure]
[cactus] org.apache.cactus.util.ChainedRuntimeException: Failed to get the
test results at [http://localhost:7001/test/ServletRedirectorSecure]
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:131)
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(De
faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:333)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:28
1)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:257)
[cactus]     at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:287)
[cactus]     at
org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)
[cactus] org.apache.cactus.client.ParsingException: Not a valid response
[401 Unauthorized xxx]
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.callGetResult(Defa
ultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:251)
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:126)
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(De
faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
[cactus]     at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:333)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:28
1)
[cactus]     at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:257)
[cactus]     at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:287)
[cactus]     at
org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:250)

-----Original Message-----
From: Vincent Massol [mailto:vmassol@pivolis.com]
Sent: Tuesday, September 02, 2003 9:52 PM
To: 'Cactus Users List'; bkumler@firstam.com
Subject: RE: Weblogic 8 problem


Hi Bret,

Are you using the <cactus> task and the <weblogic7x> container tag? Or
are you using the <generic> tag? The weblogic7x is for wl7 and has not
been tested with WL 8.x.

It seems it is indeed a classloader issue. In order to help you I would
need to know what you started the cactus test, whether you put any jar
in the system classpath or somewhere else, etc.

Thanks
-Vincent

> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: 03 September 2003 01:23
> To: 'Cactus Users List'
> Subject: Weblogic 8 problem
>
> I'm very new to cactus, I'm trying to get cactus running in Weblogic
8.
>
> I managed to get the samples working fine with Weblogic 8.
>
> When I try to add the cactus jars & web.xml entries to our existing
> application(ear) & start weblogic, I get the following error (see
below).
>
> Is this a classloading conflict?
> I remove all the cactus related stuff & the ear deploys fine.
>
> The WebLogic Server did not start up properly.
> java.lang.ExceptionInInitializerError
>         at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
cc
> es
> sorImpl.java:39)
>         at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tr
> uc
> torAccessorImpl.java:27)
>         at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>         at java.lang.Class.newInstance0(Class.java:306)
>         at java.lang.Class.newInstance(Class.java:259)
>         at
>
weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppServ
le
> tC
> ontext.java:2879)
>         at
>
weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServlet
Co
> nt
> ext.java:2855)
>         at
>
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rv
> le
> tContext.java:3157)
>         at
>
weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:65
4)
>         at
>
weblogic.servlet.internal.WebService.preloadResources(WebService.java:48
3)
>         at
>
weblogic.servlet.internal.ServletInitService.resume(ServletInitService.j
av
> a:
> 30)
>         at
> weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
>         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
>         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
>         at weblogic.Server.main(Server.java:32)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> com.bea.wlw.netui.util.logging.StrutsLogFactory
>         at
> org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
>         at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352)
>         at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
>         at
>
org.apache.cactus.server.FilterTestRedirector.<clinit>(FilterTestRedirec
to
> r.
> java;org/apache/cactus/util/log/LogAspect.aj[1k]:87)
>         ... 16 more
> Caused by: java.lang.ClassNotFoundException:
> com.bea.wlw.netui.util.logging.StrutsLogFactory
>         at
>
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
de
> r.
> java:198)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at
>
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
de
> r.
> java:223)
>         at
> org.apache.commons.logging.LogFactory$2.run(LogFactory.java:571)
>         ... 21 more
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org




Mime
View raw message