Custom SSLServerSockets in WLS 7.0

Hi,
I'm currently trying to figure out if it is possible to open custom
SSLServerSockets (via JSSE) in WLS 7.0 and dispatch the incoming
requests to the proper HttpServlet, based on the request. Customized
SSL connections are required to allow us to plug in an own
X509KeyManager to load certificates and keys from a database instead
of the disk, to open multiple, differently configured ports out of the
same WLS instance and to enable/disable certain ciphersuites. The
code (JSSE compliant) is already available, I just don't know how to
call the servlet in transparent way.
Is there any known way to do that? Any helping ideas would be appreciated.
Thanks & Best regards,
Ronny

The answer was simple. I did not include lib\mbeantypes jars to the classpath.

Similar Messages

  • Custom Realm with WLS 6.1

    We are attempting to write a custom security realm for an application we will be deploying on WLS 6.1 so that we can integrate security data scattered across LDAP and database servers.
    The documentation describing obtaining configuration for the security store (http://e-docs.bea.com/wls/docs61/security/prog.html#1041025) has the following snippet of code:
    BasicRealmMBean basicRealmMBean =
    Server.getSecurityConfig(). getRealm().getCachingRealm.
    getBasicRealm();
    However, I can not find the Server class they reference. I tried searching in the javadocs for the WLS 6.1 classes, and can't find a class named Server. Perhaps it's an interface, but I can't find the package it belongs to, if that's the case.
    Can somebody please point me in the right direction?
    Thank you.
    -chris

    Thanks very much, Utpal.
    I still can't find the class (or even the package for that matter) at
    http://e-docs.beasys.com/wls/docs61/javadocs/index.html
    And that sort of mystifies me. Still, your answer solves my current problem.
    I still don't fully understand the ConfigurationMBean
    stuff as a whole, and how they get bound to a particular realm; i.e. Do I need
    to write a MyRealmConfigurationMBean, and if so, how do
    I bind it to MyRealm?
    Note that the code I originally cited casted a BasicRealm return type to a BasicRealmMBean;
    It's not immediately apparent why one is
    even castable to the other, since they are two interfaces that
    are not on the same inheritance line (I don't think).
    Thanks for your time. I appreciate your help.
    -chris
    Finally,
    "Utpal" <[email protected]> wrote:
    Check this out
    C:\opt\bea\wls61sp2\config\mydomain>javap weblogic.server.Server
    Compiled from Server.java
    public final class weblogic.server.Server extends java.lang.Object {
    public static final java.lang.String DEFAULT_PROTOCOL;
    public static final int DEFAULT_PORT;
    public static weblogic.management.configuration.ServerMBean getConfig();
    public static weblogic.management.configuration.ServerDebugMBean
    getDebug();
    public static weblogic.management.configuration.SecurityMBean
    getSecurityCon
    fig();
    public static void initialize();
    It's weblogic.server.Server class.
    -utpal

  • Trouble Registering Custom MBean in WLS 6.1 (Example from JMX Guide)

    Hi there,
    I have trouble getting an example to work provided in the BEA Manual
    "Programming WebLogic JMX Services". The example of registering a
    custom MBeans produces in my case:
    java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
    Getting BEA MBean Server
    Using domain: weblogic
    Create object name
    Create MBean Dummy within MBean Server
    Could not create MBean Dummy
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    <<no stack trace available>>
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
            java.lang.ClassNotFoundException: jmx.dummy.MyClient]
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
    at $Proxy2.registerMBean(Unknown Source)
    at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
    at jmx.dummy.MyClient.main(MyClient.java:19)
    I have a custom MBean: MyCustomMBean:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getAttribute();
    and it's implementation class MyClient listed below. Does anybody know
    what I'm doing wrong ?
    Greetings,
    Alex
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient implements MyCustomMBean, java.io.Serializable
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("Dummy");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyClient(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state = (String)
    server.getAttribute(mbo,"MyAttribute");
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;

    Hi, i'm using wl 6.0 on HPunix.
    And.. we don't have any serverclasses folder. :(
    Audun
    [email protected] (Alex) wrote:
    OK, I got it working. Will answer it here in case somebody else has a
    problem. Editing the CLASSPATH of WLS did not work for me but putting
    my classes in ./config/serverclasses/ did the trick. But then I
    encountered another problem, new exception that my code was not JMX
    compliant. Seperating the MBean implementation for the MyClient class
    to a new class worked:
    new class MyCustom:
    package jmx.dummy;
    public class MyCustom implements
    jmx.dummy.MyCustomMBean,java.io.Serializable
    public int getMyAttribute()
    return 3434;
    untouched MyCustomMBean class:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getMyAttribute();
    edited MyClient class:
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
         client.unregister();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","examplesServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("MyCustomMBean");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyCustom(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state =
    (server.getAttribute(mbo,"MyAttribute")).toString();
    System.out.println("state is "+state);
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;
    private void unregister()
    try
    server.unregisterMBean(mbo);
    catch (Exception e)
    echo("could not unregister mbean");
    [email protected] (Alex) wrote in message news:<[email protected]>...
    Hi there,
    I have trouble getting an example to work provided in the BEA Manual
    "Programming WebLogic JMX Services". The example of registering a
    custom MBeans produces in my case:
    java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
    Getting BEA MBean Server
    Using domain: weblogic
    Create object name
    Create MBean Dummy within MBean Server
    Could not create MBean Dummy
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    <<no stack trace available>>
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient]
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
    at $Proxy2.registerMBean(Unknown Source)
    at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
    at jmx.dummy.MyClient.main(MyClient.java:19)
    I have a custom MBean: MyCustomMBean:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getAttribute();
    and it's implementation class MyClient listed below. Does anybody know
    what I'm doing wrong ?
    Greetings,
    Alex
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient implements MyCustomMBean, java.io.Serializable
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("Dummy");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyClient(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state = (String)
    server.getAttribute(mbo,"MyAttribute");
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;

  • Servlets implementing custom protocol in WLS 6.1

              Hi.
              Does WLS 6.1 support other than HTTP/S protocols with servlets? If it does, how
              requests are dispatched to a servlet implementing a custom procotol.
              b r
              juha
              

    No, I don't think it does. You'll have to implement it yourself.
              "Juha Räsänen" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Hi.
              > Does WLS 6.1 support other than HTTP/S protocols with servlets? If it
              does, how
              > requests are dispatched to a servlet implementing a custom procotol.
              >
              > b r
              > juha
              Dimitri
              

  • Debugging a custom realm in WLS 6.1

    Hi all. I'm trying to find out how to debug my custom realm. I first implemented
    the DebuggableRealm and put log.debug calls in my realm. I then set the realm.debug
    property to "true" when I start the server. Is that it? The javadocs on debugging
    are very sparse. I wasn't able to find a javadoc for weblogic.logging.LogOutputStream.
    I also found a DebugSecurityRealm attribute in the ServerDebug element in config.xml
    but am thinking this is old (from 5.X?).
    Are there any other documents I should be looking at? Thanks!
    jeff

    Thanks very much, Utpal.
    I still can't find the class (or even the package for that matter) at
    http://e-docs.beasys.com/wls/docs61/javadocs/index.html
    And that sort of mystifies me. Still, your answer solves my current problem.
    I still don't fully understand the ConfigurationMBean
    stuff as a whole, and how they get bound to a particular realm; i.e. Do I need
    to write a MyRealmConfigurationMBean, and if so, how do
    I bind it to MyRealm?
    Note that the code I originally cited casted a BasicRealm return type to a BasicRealmMBean;
    It's not immediately apparent why one is
    even castable to the other, since they are two interfaces that
    are not on the same inheritance line (I don't think).
    Thanks for your time. I appreciate your help.
    -chris
    Finally,
    "Utpal" <[email protected]> wrote:
    Check this out
    C:\opt\bea\wls61sp2\config\mydomain>javap weblogic.server.Server
    Compiled from Server.java
    public final class weblogic.server.Server extends java.lang.Object {
    public static final java.lang.String DEFAULT_PROTOCOL;
    public static final int DEFAULT_PORT;
    public static weblogic.management.configuration.ServerMBean getConfig();
    public static weblogic.management.configuration.ServerDebugMBean
    getDebug();
    public static weblogic.management.configuration.SecurityMBean
    getSecurityCon
    fig();
    public static void initialize();
    It's weblogic.server.Server class.
    -utpal

  • Configuring WLS to invoke a web service on SSL

    Hi,
    It will be really helpful if I get some pointers on this. Stuck with this without any progress. I havent experimented too much working with Certificates and so on...
    I have a web service on my WLS...This has to invoke an external web service (provided by a third party).
    They have given me a url for WSDL.
    .p12 certificate - privateKeyEntry
    .cer certificate - trustCertEntry
    In my browser(IE), to display the WSDL page, I had to import this .p12 certificate in the "Personal" tab and .cer certificate in the "Trusted Root Certification Authorities" tab. It works !! I can see the WSDL.
    Now I have to do a equivalent setting in WLS so that my WS invokes the external WS. I can test this with the Weblogic Test Client for my WS.
    This is what I thought I had to do.
    Configure Custom Identity and Custom Trust in WLS.
    Custom Identity - directly used the .p12 file and specified type as PCKS12 with a password. That seems OK.
    Custom Trust - Since I didnt think I could use .cer file, I imported this certificate into .jks file using the below command
    keytool -import -trustcacerts -alias mykey -keystore mytrust.jks -file TestRootCert.cer -keyalg RSA
    configured this .jks file as a custom truststore.
    In the SSL tab, specified the alias name that existed in the PrivateKeyEntry(.p12 file) assuming this is used to identify myself to the external WS.
    Set -Dssl.debug=true -Dweblogic.StdoutDebugEnabled=true in the WLS startup file just to see some more additional info.
    When I invoke the external WS using the WLS test client, this is how the output on console looks..(sorry, had to edit some stuff related to company names etc.)
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLSetup: loading trusted CA certificates>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSL enableUnencryptedNullCipher= false>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLContextManager: loading server SSL identity>
    <Sep 16, 2010 5:35:02 PM CEST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias e74476a0b5a8cfce6e426c266aee9bbc_2d3fa38c-4f19-4115-b030-11acb1de5cd5 from the PKCS12 keystore file C:\PROGRA~2\Java\JDK16~1.0_2\jre\lib\security\TestPoints.p12.>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Loaded public identity certificate chain:>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Subject: [email protected], CN=Test , OU=Digital ID Class 1 - Microsoft Full Service, OU=Persona Not Validated, OU="www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)98", OU=VeriSign Trust Network, O="VeriSign, Inc."; Issuer: CN=VeriSign Class 1 Individual Subscriber CA - G2, OU=Persona Not Validated, OU=Terms of use at https://www.verisign.com/rpa (c)05, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Using JCE Cipher: SunJCE version 1.6 for algorithm RSA/ECB/NoPadding>
    <Sep 16, 2010 5:35:02 PM CEST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the JKS keystore file C:\PROGRA~2\Java\JDK16~1.0_2\jre\lib\security\ebmscert.jks.>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLContextManager: loaded 1 trusted CAs from C:\PROGRA~2\Java\JDK16~1.0_2\jre\lib\security\ebmscert.jks>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Subject: CN=VeriSign Class 1 Individual Subscriber CA - G2, OU=Persona Not Validated, OU=Terms of use at https://www.verisign.com/rpa (c)05, OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US; Issuer: OU=Class 1 Public Primary Certification Authority, O="VeriSign, Inc.", C=US>
    <Sep 16, 2010 5:35:02 PM CEST> <Info> <WebLogicServer> <BEA-000307> <Exportable key maximum lifespan set to 500 uses.>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Filtering JSSE SSLSocket>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLIOContextTable.addContext(ctx): 28972139>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLSocket will be Muxing>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <write SSL_20_RECORD>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <isMuxerActivated: false>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <8413295 SSL3/TLS MAC>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <8413295 received HANDSHAKE>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <HANDSHAKEMESSAGE: ServerHello>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <HANDSHAKEMESSAGE: Certificate>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Cannot complete the certificate chain: No trusted cert found>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Validating certificate 0 in the chain: Serial number: 320858270326811821565694692014706744673
    Issuer:C=US, ST=UT, L=Salt Lake City, O=The USERTRUST Network, OU=http://www.usertrust.com, CN=UTN-USERFirst-Hardware
    Subject:C=SE, ?=19587, ST=None, L=country, ?=Test Address, O=CompanyName Denmark-Norway-Sweden, OU=DK Wintel AS, OU=Hosted by Melbourne IT Corporate Brand Services, OU=Comodo PremiumSSL, CN=a.b.com
    Not Valid Before:Thu Mar 19 01:00:00 CET 2009
    Not Valid After:Sun Mar 20 00:59:59 CET 2011
    Signature Algorithm:SHA1withRSA
    >
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Validating certificate 1 in the chain: Serial number: 109339514828885055587748732527481675047
    Issuer:C=SE, O=AddTrust AB, OU=AddTrust External TTP Network, CN=AddTrust External CA Root
    Subject:C=US, ST=UT, L=Salt Lake City, O=The USERTRUST Network, OU=http://www.usertrust.com, CN=UTN-USERFirst-Hardware
    Not Valid Before:Tue Jun 07 10:09:10 CEST 2005
    Not Valid After:Sat May 30 12:48:38 CEST 2020
    Signature Algorithm:SHA1withRSA
    >
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <validationCallback: validateErr = 16>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> < cert[0] = Serial number: 320858270326811821565694692014706744673
    Issuer:C=US, ST=UT, L=Salt Lake City, O=The USERTRUST Network, OU=http://www.usertrust.com, CN=UTN-USERFirst-Hardware
    Subject:C=SE, ?=19587, ST=None, L=country, ?=Test Address, O=CompanyName Denmark-Norway-Sweden, OU=DK Wintel AS, OU=Hosted by Melbourne IT Corporate Brand Services, OU=Comodo PremiumSSL, CN=a.b.com
    Not Valid Before:Thu Mar 19 01:00:00 CET 2009
    Not Valid After:Sun Mar 20 00:59:59 CET 2011
    Signature Algorithm:SHA1withRSA
    >
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> < cert[1] = Serial number: 109339514828885055587748732527481675047
    Issuer:C=SE, O=AddTrust AB, OU=AddTrust External TTP Network, CN=AddTrust External CA Root
    Subject:C=US, ST=UT, L=Salt Lake City, O=The USERTRUST Network, OU=http://www.usertrust.com, CN=UTN-USERFirst-Hardware
    Not Valid Before:Tue Jun 07 10:09:10 CEST 2005
    Not Valid After:Sat May 30 12:48:38 CEST 2020
    Signature Algorithm:SHA1withRSA
    >
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <weblogic user specified trustmanager validation status 16>
    <Sep 16, 2010 5:35:02 PM CEST> <Warning> <Security> <BEA-090477> <Certificate chain received from a.b.com - 194.182.249.133 was not trusted causing SSL handshake failure.>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Validation error = 16>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Certificate chain is untrusted>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <SSLTrustValidator returns: 16>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <Trust status (16): CERT_CHAIN_UNTRUSTED>
    <Sep 16, 2010 5:35:02 PM CEST> <Debug> <SecuritySSL> <BEA-000000> <NEW ALERT with Severity: FATAL, Type: 42
    If I understood rite, the external server is sending some certificates which is not there in the WLS trust store. Is this correct?
    Also tried to get these certificates into the truststore using the InstallCert.java utility class, but then I get a 403:Forbidden.
    So I have no clue at the moment. Basically, my WLS acts as a client to the external WS rite? so this is a one-way SSL. IS that correct?
    Can you help with some pointers please?
    best regards,
    Murali

    Hi,
    I just noticed this post and it seems that I had the same problem ( [see the relevant topic|http://forums.sun.com/thread.jspa?threadID=5378686] ) -- it is now answered.
    Simply follow the instructions on [this page|http://java.sun.com/developer/EJTechTips/2006/tt0527.html#1] - note that the answer was provided by Miroslav777.
    Bye
    Urbas

  • WLCS 2.0 Customer creation

    Hi,
    Does anybody know something about customer creation (using WLS 5.1, WLCS
    2.0 and NT4 sp6)?
    I have a NullPointerException in the findByPrimaryKey()
    method when doing : Customer myCustomer =
    myCustomerManager.createCustomer(userInformation.userName);
    Is there anything that need to be done before creating a new customer ?
    Do it need a profile or something ?
    Thanks in advance.
    Laurent Laudinet
    Somepost
    [email protected]

    I have a NullPointerException in the findByPrimaryKey()
    method when doing : Customer myCustomer =
    myCustomerManager.createCustomer(userInformation.userName);I worked with Laurent on this problem and here is how we solved it:
    I created a test client class that created a Customer and then did a
    findByPrimaryKey() on the Customer to retrieve them. It worked on my system
    (WLCS 2.0.1 sp1), but gave Laurent a NullPointerException when he ran it.
    He was using CMP with the Oracle oci driver. He tried it with BMP and the
    Cloudscape database and it worked. He switched to CMP with the Oracle thin
    driver and it worked. He probably had a configuration problem with the oci
    driver.
    Ture Hoefner
    BEA Systems, Inc.
    1655 Walnut Street; suite 200
    Boulder, CO 80302
    www.beasys.com

  • Custom Realm in WLS6.1

    Hello,
    Has anyone implemented authentication & authorization with a Custome realm
    in WLS 6.1.I need to implement a custom realm which accesses a policy director
    to grant access to resources.Can anyone please help with some ideas?
    btw,i went through the documentation of how to write a custom realm.i have a
    question on the following code snippet
    String userInfoFileName =
         configData.getProperty("UserInfoFileName");
    String groupInfoFileName =
         configData.getProperty("GroupInfoFileName");
    Where in the config do u need to specify values for the above mentioned properties.If
    anyone has implemented Authentication and Authorization with a custom realm,can
    u please help me with more explanation and a code snippet?
    Thanks,
    Kalyan

    nope..
    "Viswadas Leher" <[email protected]> wrote in message
    news:3cebb4e1$[email protected]..
    >
    >
    I have two web applications running in the same weblogic domain. Can Ispecify two
    different custom realms to the web apps. If yes how?.
    The only way i could get the custom realm class called by the server if ispecify
    it as
    <Realm CachingRealm="LeherCacheRealm"
    FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    in the config.xml. This causes the weblogic users, such as "system" etc toget invalidated.
    >
    >
    I tried using the following tags to specify it on a per application basis,which
    doesnot seem to work . Am i missing something?
    <CustomRealm Name="LeherRealm"RealmClassName="com.leher.security.weblogic.KinectaRealm"/>
    <CachingRealm BasicRealm="LeherRealm" CacheCaseSensitive="true"Name="LeherCacheRealm"/>
    <Application Deployed="true" Name="DummyApp" Path="F:\leher">
    <WebAppComponent AuthRealmName="LeherCacheRealm"
    Name="DummyApp" Targets="myserver" URI="dummyapp"/>
    </Application>
    Is it not possible to define different realms to different webapplications in the
    same domain.?

  • Is it possible to install ODSI 10.3g as a web application via a WAR or EAR?

    I only know how to install it from the single .exe that installs WebLogic and ODSI in one shot. My customer has an automated process for rolling out WebLogic servers and would like to know if ODSI can be installed from an EAR or WAR. Does anyone here know if that's possible? Have any hints on where to start looking for something like this?
    Thanks.
    Edited by: user10592709 on Oct 6, 2009 12:28 PM

    It is difficult to respond to questions that ask how to implement a specific (impossible) solution, rather than ask how to fulfill a particular requirement (scripted install). Please visit the "How to Ask a Question" announcement in this forum if you want more on that.
    ODSI does not specify how it is implemented (war, ear, extension to WLS), and therefore there is no documentation on the subject.
    For installation options, please refer to the installer documentation. I suspect there is no documentation describing how to install ODSI without using the installer.
    Is there some reason they are not using the silent installer and then a template? ( "Because they have built their own Opsware installer" is not an acceptable answer)
    How does the Opsware installer work? If it leverages the WLS silent installer, then it seems obvious that changing it to leverage the WLS+ODSI silent installer would work. If it uses a zipped-up WLS installation (or template), then it seems obvious that changing it to leverage a zipped-up WLS+ODSI installation would work. There really aren't any other possibilities, are there?
    It seems unlikely that Opsware scripts that install WLS would somehow start installing WLS+ODSI without being modified. I don't know why there is any expectation that they would. I don't know why there is resistance to modifying the scripts. These are really customer questions - not ODSI questions.
    There is nothing stopping you or your customer from installing WLS, then installing WLS+ODSI beside it, then doing a 'diff', and then scripting the changes. Except maybe that the WLS+ODSI installer already does this, and then you wasted your time building something that already exists.

  • Issue with java_g and -debug

    Is there an issue with the -debug option when running Weblogic 4.51 with
    the java_g command.
    Each time we include the -debug option we experience
    weblogic.common.LicenseCorruptException (s)
    The same error is experienced using java 1.1.7 on NT, Solaris(x86)2.7
    and Solaris (Sparc)2.7
    We are very keen to find out if there is a way of resolving this to
    allow us to do remote debugging.
    regards
    Duncan Alexander

    For some reason, using the custom classloaders in WLS causes unpredictable VM
    behavior in those VMs. For instance, you point out the LicenseCorruptError which
    occurs due to a io read error which doesn't occur when the same environment is
    run in non remote mode.
    There are some things you can do.
    First of all, use 1.2.2 instead of 1.1.7. That VM appears more stable.
    If you have to use 1.1.7 then:
    On NT, make sure you've updated to the 1.1.7_005.
    On Solaris 2.7, run the server in static mode. (You may also try 1.1.7_008, I
    haven't had a chance to check that version yet.)
    I don't know about Solaris x86.
    The VM problem occurs when using custom classloaders so run the server in static
    mode. You won't be able to hot deploy ejbs, but you will be able to remotely
    debug.
    Debuggers don't work well with custom classloaders anyway, especially on 1.1.7.
    Gets a little better on 1.2.2 but there's still holes in the JDI in this area.
    To run in static mode don't use weblogic.class.path, everything goes on the
    classpath. Make sure that /weblogic/classes/boot appears before
    /weblogic/classes.
    Also add -Dweblogic.system.disableWeblogicClassPath=true=true if you're using
    5.1.0.
    Dana Jeffries
    BEA Systems
    Duncan Alexander wrote:
    >
    Is there an issue with the -debug option when running Weblogic 4.51 with
    the java_g command.
    Each time we include the -debug option we experience
    weblogic.common.LicenseCorruptException (s)
    The same error is experienced using java 1.1.7 on NT, Solaris(x86)2.7
    and Solaris (Sparc)2.7
    We are very keen to find out if there is a way of resolving this to
    allow us to do remote debugging.
    regards
    Duncan Alexander

  • Issue with java_g and -debug (Response would be appreciated this time).

    Is there an issue with the -debug option when running Weblogic 4.51 with
    the java_g command.
    Each time we include the -debug option we experience
    weblogic.common.LicenseCorruptException (s)
    The same error is experienced using java 1.1.7 on NT, Solaris(x86)2.7
    and Solaris (Sparc)2.7
    We are very keen to find out if there is a way of resolving this to
    allow us to do remote debugging.
    regards
    Duncan Alexander

    For some reason, using the custom classloaders in WLS causes unpredictable VM
    behavior in those VMs. For instance, you point out the LicenseCorruptError which
    occurs due to a io read error which doesn't occur when the same environment is
    run in non remote mode.
    There are some things you can do.
    First of all, use 1.2.2 instead of 1.1.7. That VM appears more stable.
    If you have to use 1.1.7 then:
    On NT, make sure you've updated to the 1.1.7_005.
    On Solaris 2.7, run the server in static mode. (You may also try 1.1.7_008, I
    haven't had a chance to check that version yet.)
    I don't know about Solaris x86.
    The VM problem occurs when using custom classloaders so run the server in static
    mode. You won't be able to hot deploy ejbs, but you will be able to remotely
    debug.
    Debuggers don't work well with custom classloaders anyway, especially on 1.1.7.
    Gets a little better on 1.2.2 but there's still holes in the JDI in this area.
    To run in static mode don't use weblogic.class.path, everything goes on the
    classpath. Make sure that /weblogic/classes/boot appears before
    /weblogic/classes.
    Also add -Dweblogic.system.disableWeblogicClassPath=true=true if you're using
    5.1.0.
    Dana Jeffries
    BEA Systems
    Duncan Alexander wrote:
    >
    Is there an issue with the -debug option when running Weblogic 4.51 with
    the java_g command.
    Each time we include the -debug option we experience
    weblogic.common.LicenseCorruptException (s)
    The same error is experienced using java 1.1.7 on NT, Solaris(x86)2.7
    and Solaris (Sparc)2.7
    We are very keen to find out if there is a way of resolving this to
    allow us to do remote debugging.
    regards
    Duncan Alexander

  • What is the best way to deploy/update custom security realm classes to WLS 6.0?

    From the WLS 6.0 console, I see that I can specify the Java class that
    implements my custom security realm but I am wondering what is the best way
    to deploy/update this code. I don't see a way to do this from the console.
    Does this mean that I have to manually copy the class files over that
    implement my custom security realm?

    Thanks Danut,
    A jar file seems to be a good way to package it up but it sounds like it
    still needs to be manually copied to each Weblogic server install directory
    post-installation and whenever it is updated. I thought it would be nice to
    be able to deploy/update the custom security realm by uploading it through
    the Console just as you can with web applications and EJBs.
    Brian
    "Danut Prisacaru" <[email protected]> wrote in message
    news:3aba2db0$[email protected]..
    You have to have your Custom Realm class in the class path. I usually havea
    jar file with all the Custom Realm classes and that jar I copy it in thelib
    folder. Then I modify "startWebLogic.cmd" and I add to the classpath
    ".\lib\CustomRealm.jar"
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
    >
    Be aware that in order to have you custom realm besides creating thecustom
    realm using the console you also have to create a custom caching andchoose
    that one as your default caching realm.
    Here is how the security settings are looking in my "config.xml"
    <CustomRealm Name="CustomRealm"
    RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
    <CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
    Name="CustomCachingRealm"/>
    <Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
    Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <Security GuestDisabled="false"
    Name="mydomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm"/>
    Danut

  • SSL between NSAPI and WLS with custom certificate and RequireSSLHostMatch=true fails

    I am trying to use SSL for communication between NSAPI and WebLogic
    server (server authentication at the NSAPI).
    Therefore, a custom server certificate is installed on WLS, containing this
    server's hostname. The NSAPI is configured (RequireSSLHostMatch=true) to
    check the hostname contained in the certificate against the WebLogicHost
    parameter in the "obj.conf" file. The corresponding TrustedCAFile is installed
    for NSAPI.
    The SSL setup seems to work ok, but when matching the hostname, it seems like
    NSAPI is trying to do a string-match against the numeric IP of the WebLogicHost,
    not on the hostname as configured in the WebLogicHost parameter.
    The relevant entry in the "obj.conf" file:
    <Object name="weblogic" ppath="*">
    Service fn=wl-proxy WebLogicHost=btsun2a.muc \
    WebLogicPort=7162 \
    Debug=ALL \
    SecureProxy=ON \
    TrustedCAFile=/home/qx13604/wls61/config/testdomain/TC_RootServer_PEM_Class0.pem
    RequireSSLHostMatch=true
    </Object>
    I am using WLS6.1 with NSAPI (both Solaris). The content of "wlproxy.log" is as
    follows.
    Any ideas?
    Content of "wlproxy.log":
    Thu Oct 11 12:30:22 2001 INFO: SSL is configured
    Thu Oct 11 12:30:22 2001 INFO: Initializing SSL library
    Thu Oct 11 12:30:22 2001 Loaded 1 trusted CA's
    Thu Oct 11 12:30:22 2001 INFO: Successfully initialized SSL
    Thu Oct 11 12:30:22 2001 INFO: SSL configured successfully
    Thu Oct 11 12:30:22 2001 ....relFile.../index.jsp...
    Thu Oct 11 12:30:22 2001 URI=[index.jsp]
    Thu Oct 11 12:30:22 2001 Initializing lastIndex=0 for a list of length=1
    Thu Oct 11 12:30:22 2001 attempt #0 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 attempt #1 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 attempt #2 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 attempt #3 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 attempt #4 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 attempt #5 out of a max of 5
    Thu Oct 11 12:30:22 2001 general list: trying connect to '160.50.106.101'/7162/7162
    at line 1156 for '/index.jsp'
    Thu Oct 11 12:30:22 2001 New SSL URL: match = 1 oid = 22
    Thu Oct 11 12:30:22 2001 Going to check the general server list
    Thu Oct 11 12:30:22 2001 WLS info : 160.50.106.101:7162 recycled? 0
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept]=[image/gif, image/x-xbitmap,
    image/jpeg, image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs from Client:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[connection]=[Keep-Alive]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[user-agent]=[Mozilla/4.72 [de]C-CCK-MCD
    (WinNT; U)]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[host]=[btsun1a.muc:99]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept]=[image/gif, image/x-xbitmap, image/jpeg,
    image/pjpeg, image/png, */*]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-encoding]=[gzip]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-language]=[de,en]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[accept-charset]=[iso-8859-1,*,utf-8]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[WL-Proxy-SSL]=[false]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-WebLogic-Force-Cookie]=[true]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Client-IP]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[X-Forwarded-For]=[160.50.136.171]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated]=[wwws/ns-homeV417/docs/index.jsp]
    Thu Oct 11 12:30:22 2001 Hdrs to WLS:[Proxy-Path-Translated-Base]=[wwws/ns-homeV417/docs]
    Thu Oct 11 12:30:22 2001 INFO: sysSend 52
    Thu Oct 11 12:30:22 2001 Partial read socket
    Thu Oct 11 12:30:22 2001 INFO: SSLWrite sent 0
    Thu Oct 11 12:30:22 2001 INFO: Host (btsun2a.muc) doesn't match (160.50.106.101),
    validation failed
    Thu Oct 11 12:30:22 2001 ERROR: SSLWrite failed
    Thu Oct 11 12:30:22 2001 SEND failed (ret=-1) at 549 of file URL.cpp
    Thu Oct 11 12:30:22 2001 *******Exception type [WRITE_ERROR] raised at line 550
    of URL.cpp
    Thu Oct 11 12:30:22 2001 got exception in sendRequest phase: WRITE_ERROR [os error=0,
    line 550 of URL.cpp]: at line 944
    Thu Oct 11 12:30:22 2001 INFO: Closing SSL context
    Thu Oct 11 12:30:22 2001 INFO: sysSend 14
    Thu Oct 11 12:30:22 2001 Failing over after sendRequest exception
    Thu Oct 11 12:30:22 2001 request [index.jsp] processed ..................

    I tried some other case and configured a certificate containing
    the numeric IP as hostname. The authentication works fine then,
    but it wouldn't be nice to hard-code the IP in the certificate
    (btw. the WebLogicHost parameter is still given as DNS name, not
    as IP address).
    Has anyone got a solution for this?
    "Wolfgang Jodl" <[email protected]> wrote:
    >
    I am trying to use SSL for communication between NSAPI and WebLogic
    server (server authentication at the NSAPI).
    Therefore, a custom server certificate is installed on WLS, containing
    this
    server's hostname. The NSAPI is configured (RequireSSLHostMatch=true)
    to
    check the hostname contained in the certificate against the WebLogicHost
    parameter in the "obj.conf" file. The corresponding TrustedCAFile is
    installed
    for NSAPI.
    The SSL setup seems to work ok, but when matching the hostname, it seems
    like
    NSAPI is trying to do a string-match against the numeric IP of the WebLogicHost,
    not on the hostname as configured in the WebLogicHost parameter.
    The relevant entry in the "obj.conf" file:
    <Object name="weblogic" ppath="*">
    Service fn=wl-proxy WebLogicHost=btsun2a.muc \
    WebLogicPort=7162 \
    Debug=ALL \
    SecureProxy=ON \
    TrustedCAFile=/home/qx13604/wls61/config/testdomain/TC_RootServer_PEM_Class0.pem
    RequireSSLHostMatch=true
    </Object>
    I am using WLS6.1 with NSAPI (both Solaris). The content of "wlproxy.log"
    is as
    follows.
    Any ideas?

  • SecurityException (Invalid Subject) with custom database authentication provider WLS 7.0

    Hello
    I have implemented a custom authentication provider using a
    database. The login module works fine. It check the username and
    password, add the user as a WLSUser-principal and add the groups
    relatated to the user as WLSGroup-principals to the subject. I
    am able to start the WLS only using my authentication provider,
    but if i want to login into the console i get following
    SecurityException:
    java.lang.SecurityException: Invalid Subject: principals=
    [system, Administrators]
    at weblogic.security.service.SecurityServiceManager.seal
    (SecurityServiceManager.java:893)
    at weblogic.security.service.RoleManager.getRoles
    (RoleManager.java:269)
    at
    weblogic.security.service.AuthorizationManager.isAccessAllowed
    (AuthorizationManager.java:608)
    at
    weblogic.servlet.security.internal.WebAppSecurity.hasPermission
    (WebAppSecurity.java:370)
    at
    weblogic.servlet.security.internal.SecurityModule.checkPerm
    (SecurityModule.java:125)
    at
    weblogic.servlet.security.internal.FormSecurityModule.checkUserPe
    rm(FormSecurityModule.java:328)
    at
    weblogic.servlet.security.internal.SecurityModule.beginCheck
    (SecurityModule.java:179)
    at
    weblogic.servlet.security.internal.FormSecurityModule.checkA
    (FormSecurityModule.java:167)
    at
    weblogic.servlet.security.internal.ServletSecurityManager.checkAc
    cess(ServletSecurityManager.java:185)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:2960)
    at weblogic.servlet.internal.ServletRequestImpl.execute
    (ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute
    (ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run
    (ExecuteThread.java:133)
    Seems to me, that the default role manager does not map the
    group Administrators to the role Admin, which is allowed to
    access the resource console. So, what i do wrong? Must i set
    additional credentials to the subject? Or must i use a special
    Principal class? Who can help me?
    Thanks in advance & greetings
    Dirk Fellenstein

    I have solved it. The Problem was that the two Principal implementations, one that
    implements WLSGroup and one that implements WLSUser, need a common principal base
    class. The principal validator class, method getPrincipalBaseClass() must then return
    the common principal base class.
    "Dirk Fellenstein" <[email protected]> wrote:
    >
    Hello
    I have implemented a custom authentication provider using a
    database. The login module works fine. It check the username and
    password, add the user as a WLSUser-principal and add the groups
    relatated to the user as WLSGroup-principals to the subject. I
    am able to start the WLS only using my authentication provider,
    but if i want to login into the console i get following
    SecurityException:
    java.lang.SecurityException: Invalid Subject: principals=
    [system, Administrators]
    at weblogic.security.service.SecurityServiceManager.seal
    (SecurityServiceManager.java:893)
    at weblogic.security.service.RoleManager.getRoles
    (RoleManager.java:269)
    at
    weblogic.security.service.AuthorizationManager.isAccessAllowed
    (AuthorizationManager.java:608)
    at
    weblogic.servlet.security.internal.WebAppSecurity.hasPermission
    (WebAppSecurity.java:370)
    at
    weblogic.servlet.security.internal.SecurityModule.checkPerm
    (SecurityModule.java:125)
    at
    weblogic.servlet.security.internal.FormSecurityModule.checkUserPe
    rm(FormSecurityModule.java:328)
    at
    weblogic.servlet.security.internal.SecurityModule.beginCheck
    (SecurityModule.java:179)
    at
    weblogic.servlet.security.internal.FormSecurityModule.checkA
    (FormSecurityModule.java:167)
    at
    weblogic.servlet.security.internal.ServletSecurityManager.checkAc
    cess(ServletSecurityManager.java:185)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:2960)
    at weblogic.servlet.internal.ServletRequestImpl.execute
    (ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute
    (ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run
    (ExecuteThread.java:133)
    Seems to me, that the default role manager does not map the
    group Administrators to the role Admin, which is allowed to
    access the resource console. So, what i do wrong? Must i set
    additional credentials to the subject? Or must i use a special
    Principal class? Who can help me?
    Thanks in advance & greetings
    Dirk Fellenstein

  • Custom tag in included JSP page cause exception (WLS 5.1 SP 9)

              An application use custom tags (JSP Tag extensions) in JSP page
              included into another JSP page by means <jsp:include> instruction.
              After we had installed Service Pack 9 for Weblogic 5.1
              browser's call of including JSP began show an error.
              When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
              references from startWebLogic.cmd, the error diagnostic disappear.
              Is Service Pack Number 9 wrong?
              ==========================
              Web browser diagnostic:
              Error 500--Internal Server Error
              From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              10.5.1 500 Internal Server Error
              The server encountered an unexpected condition which prevented it from fulfilling
              the request.
              ==========================
              Console diagnostic:
              Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking for taglib
              uri /exttags.tld as resource /WEB-INF/e
              xttags.tld in Web Application root:
              Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated java file:
              C:\weblogic\dscat\WEB-INF\_tmp_war_ds
              cat\jsp_servlet\_jsp\_opos\_catalog.java
              Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet failed with
              Exception
              java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method: _jspService
              signature: (Ljavax/servlet/http/Http
              ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12 contains
              wrong type
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(Unknown Source)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
              Compiled Code)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              ==========================
              Including JSP file:
              <%@ include file="catalog_real.jsp" %>
              ==========================
              Included JSP file:
              <%@ taglib uri="/exttags.tld" prefix="dscat" %>
              <dscat:pageheader>Catalog header</dscat:pageheader>
              ==========================
              Tag extansions library (WEB-INF/exttags.tld file):
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib
              PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
                   "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              <taglib>
              <tlibversion>1.0</tlibversion>
              <jspversion>1.1</jspversion>
              <shortname>dscat</shortname>
              <tag>
              <name>pageheader</name>
              <tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
              </tag>
              </taglib>
              ==========================
              Class PageHeader:
              package ru.ibs.xbcat.view.tag;
              import java.io.*;
              import javax.servlet.jsp.*;
              import javax.servlet.jsp.tagext.*;
              public class PageHeader extends BodyTagSupport {
              public int doStartTag() throws javax.servlet.jsp.JspException {
              return BodyTag.EVAL_BODY_TAG;
              public int doAfterBody() throws javax.servlet.jsp.JspException {
              return(SKIP_BODY);
              

              Are you using Jikes? See if this helps ...
              http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6287&utag=
              Mike
              "Radik Usmanov" <[email protected]> wrote:
              >
              >An application use custom tags (JSP Tag extensions) in JSP page
              >included into another JSP page by means <jsp:include> instruction.
              >
              >After we had installed Service Pack 9 for Weblogic 5.1
              >browser's call of including JSP began show an error.
              >When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
              >references from startWebLogic.cmd, the error diagnostic disappear.
              >
              >Is Service Pack Number 9 wrong?
              >==========================
              >Web browser diagnostic:
              >
              >Error 500--Internal Server Error
              >From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              >10.5.1 500 Internal Server Error
              >The server encountered an unexpected condition which prevented it from
              >fulfilling
              >the request.
              >
              >==========================
              >Console diagnostic:
              >
              >Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking
              >for taglib
              >uri /exttags.tld as resource /WEB-INF/e
              >xttags.tld in Web Application root:
              >Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated
              >java file:
              >C:\weblogic\dscat\WEB-INF\_tmp_war_ds
              >cat\jsp_servlet\_jsp\_opos\_catalog.java
              >Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet
              >failed with
              >Exception
              >java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method:
              >_jspService
              >signature: (Ljavax/servlet/http/Http
              >ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12
              >contains
              >wrong type
              > at java.lang.Class.newInstance0(Native Method)
              > at java.lang.Class.newInstance(Unknown Source)
              > at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
              > at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
              >Compiled Code)
              > at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
              > at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
              > at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              >Code)
              >
              >==========================
              >Including JSP file:
              >...
              > <%@ include file="catalog_real.jsp" %>
              >...
              >
              >==========================
              >Included JSP file:
              >...
              > <%@ taglib uri="/exttags.tld" prefix="dscat" %>
              >...
              ><dscat:pageheader>Catalog header</dscat:pageheader>
              >...
              >==========================
              >Tag extansions library (WEB-INF/exttags.tld file):
              >
              ><?xml version="1.0" encoding="ISO-8859-1" ?>
              ><!DOCTYPE taglib
              > PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
              >     "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              >
              ><taglib>
              > <tlibversion>1.0</tlibversion>
              > <jspversion>1.1</jspversion>
              > <shortname>dscat</shortname>
              >
              > <tag>
              > <name>pageheader</name>
              > <tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
              > </tag>
              >
              ></taglib>
              >==========================
              >Class PageHeader:
              >
              >package ru.ibs.xbcat.view.tag;
              >
              >import java.io.*;
              >import javax.servlet.jsp.*;
              >import javax.servlet.jsp.tagext.*;
              >
              >public class PageHeader extends BodyTagSupport {
              >
              > public int doStartTag() throws javax.servlet.jsp.JspException {
              > return BodyTag.EVAL_BODY_TAG;
              > }
              >
              > public int doAfterBody() throws javax.servlet.jsp.JspException {
              > ...
              > return(SKIP_BODY);
              > }
              >}
              >
              

Maybe you are looking for

  • Can't connect to wireless network in Poland

    So I just recently moved to Poland for school. I have never had any problems connecting to the internet with my MacBook. At home, in the States, I have a wirless network and access it perfectly fine. On my flight to Poland, I was able to access the i

  • Can't delete in iTunes Match

    I know the way how to delete but it didn't work. When I delete a song with setting the "delete this song from iCloud" option, it seems to be deleted but after syncing it still exist! For example: Before deleting I've got 761 songs in Match I delete 1

  • IPod Battery Problems.. Send in for a replacement?

    My iPod is just over a month and a half old. I use it very often. The battery lately takes about 12 to 14 hours to fully charge. Once I get a full charge into the battery, the battery lasts about 10mins, even though I don't play games or scroll alot.

  • IPad Photo Album interface

    Did the iPad Photo Album interface (where there is a black background and you can pinch to expand albums) come from the Mac OS? I think I've been seeing that interface before the iPad came out but I cannot do it on my MacBook Pro. Can you help me cle

  • Strange pb with image

    With this code : boardImage = createImage(view.width, view.height); try { BufferedImage bi = ImageIO.read(new File(boardImg)); boardGraph = boardImage.getGraphics(); boardGraph.drawImage(bi, 0, 0, null); I've got sometimes a blank image, I stop my pr