Hi Bret,

In all honesty I'm a bit lost with all your emails. They keep changing
subjects but the subject title of your emails stay the same. You don't
answer to my questions but instead report other problems...

You don't ask questions, so I don't know what works/don't work, whether
you have an issue or not, etc.

Yes, the realm name is currently hardcoded to be myrealm. That's not an
issue with the default configuration provided as it has credential
information for that realm. If may be an issue if you use a custom
configuration with a different realm name. If you want that to change
please file a bug report. 

Thanks
-Vincent

> -----Original Message-----
> From: Bret Kumler [mailto:[EMAIL PROTECTED]
> Sent: 04 September 2003 23:26
> To: Cactus Users List
> Subject: RE: Weblogic 8 problem
> 
> <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.TestBasicAuthentic
at
> io
> 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_doT
es
> t(
>
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:131)
> [cactus]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTes
t(
> De
> faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
> [cactus]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(Default
Ht
> tp
> Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(W
eb
> Cl
>
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:33
3)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTe
st
> (W
>
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k
]:
> 28
> 1)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebC
li
> en
>
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(
De
> fa
> ultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:251)
> [cactus]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doT
es
> t(
>
DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:126)
> [cactus]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTes
t(
> De
> faultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
> [cactus]     at
>
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(Default
Ht
> tp
> Client.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(W
eb
> Cl
>
ientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:33
3)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTe
st
> (W
>
ebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k
]:
> 28
> 1)
> [cactus]     at
>
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebC
li
> en
>
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:[EMAIL PROTECTED]
> Sent: Tuesday, September 02, 2003 9:52 PM
> To: 'Cactus Users List'; [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to