Weblogic XMLOutoutStream to java InputStream

I am using Weblogic XMLOutoutStream to create a XML file on the fly. But instead of using flush() method and writing a physical file onto the disk I want to convert this outputstream to a java InputStream which can then be passed to the FOP XSLT transformer. any ideas?
Or if this is not the way how should i go about feeding the XSLTTransform( xml,xsd). Note the XML file is to be created dynamically.
The problem I have is when the entire application is WARred up the system is not able to locate the XML created on the UNIX server disc.

Thanks guys for the tip..
The outputstream contains the XML data stream ( entire file stream ).
The XSL stream is lXSLStream .
These are passed to XSLTInputHandler as follows in the code. Would this work? My PC is conked off so I wont be able to test till tomorrow..
Thanks again ..
File f2 = new File("C:\\tmp\\invoice.xsl");
FileInputStream lXSLStream = new FileInputStream(f2);
int bytesRead;
byte[] buffer = outputstream.toByteArray();
ByteArrayInputStream in = new ByteArrayInputStream(buffer);
XSLTInputHandler input =
new XSLTInputHandler(new InputSource( in),
new InputSource(lXSLStream));
renderXML(input, response);

Similar Messages

  • Weblogic.security.KeyManagementException: java.io.EOFException

    I am getting the following error when I am use the certificate
    obtained from baltimore instead of the default provided by weblogic. I
    used der2pem also to convert ".der" key file to ".pem" format - it
    didn't work
    I am running one-way SSL.
    the configuration I have specified is:
    Server Key File Name:                config/mydomain/privatekey.pem
    Server Certificate File Name:          config/mydomain/DownloadCert.pem
    Server Certificate Chain File
    Name:     config/mydomain/DownloadCert_root.pem
    <05-Mar-02 17:22:01 GMT> <Info> <Logging> <Only log messages of
    severity "Error"
    or worse will be displayed in this window. This can be changed at
    Admin Console
    mydomain> Servers> myserver> Logging> General> Stdout severity threshold>java.io.EOFException
    at weblogic.security.Utils.inputByteArray(Utils.java:143)
    at weblogic.security.ASN1.ASN1Utils.inputASN1Integer(ASN1Utils.java:120)
    at weblogic.security.X509.input(X509.java:120)
    at weblogic.security.X509.initialize(X509.java:81)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:09 GMT> <Alert> <WebLogicServer> <Inconsistent
    security configu
    ration, weblogic.security.KeyManagementException:
    java.io.EOFException>
    weblogic.security.KeyManagementException: java.io.EOFException
    at weblogic.security.X509.initialize(X509.java:86)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <WebLogic Server
    started>
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <ListenThread
    listening on po
    rt 7001>
    Any help will be appriciated.
    regards
    sachin

    I am getting the following error when I am use the certificate
    obtained from baltimore instead of the default provided by weblogic. I
    used der2pem also to convert ".der" key file to ".pem" format - it
    didn't work
    I am running one-way SSL.
    the configuration I have specified is:
    Server Key File Name:                config/mydomain/privatekey.pem
    Server Certificate File Name:          config/mydomain/DownloadCert.pem
    Server Certificate Chain File
    Name:     config/mydomain/DownloadCert_root.pem
    <05-Mar-02 17:22:01 GMT> <Info> <Logging> <Only log messages of
    severity "Error"
    or worse will be displayed in this window. This can be changed at
    Admin Console
    mydomain> Servers> myserver> Logging> General> Stdout severity threshold>java.io.EOFException
    at weblogic.security.Utils.inputByteArray(Utils.java:143)
    at weblogic.security.ASN1.ASN1Utils.inputASN1Integer(ASN1Utils.java:120)
    at weblogic.security.X509.input(X509.java:120)
    at weblogic.security.X509.initialize(X509.java:81)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:09 GMT> <Alert> <WebLogicServer> <Inconsistent
    security configu
    ration, weblogic.security.KeyManagementException:
    java.io.EOFException>
    weblogic.security.KeyManagementException: java.io.EOFException
    at weblogic.security.X509.initialize(X509.java:86)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <WebLogic Server
    started>
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <ListenThread
    listening on po
    rt 7001>
    Any help will be appriciated.
    regards
    sachin

  • Weblogic.security.KeyManagementException: java.io.EOFExceptio

    I am getting the following error when I am use the certificate obtained from baltimore
    instead of the default provided by weblogic.
    private key that was generated by the Certificate Servlet.
    <05-Mar-02 17:22:01 GMT> <Info> <Logging> <Only log messages of severity "Error"
    or worse will be displayed in this window. This can be changed at Admin Console
    mydomain> Servers> myserver> Logging> General> Stdout severity threshold>java.io.EOFException
    at weblogic.security.Utils.inputByteArray(Utils.java:143)
    at weblogic.security.ASN1.ASN1Utils.inputASN1Integer(ASN1Utils.java:120)
    at weblogic.security.X509.input(X509.java:120)
    at weblogic.security.X509.initialize(X509.java:81)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:09 GMT> <Alert> <WebLogicServer> <Inconsistent security configu
    ration, weblogic.security.KeyManagementException: java.io.EOFException>
    weblogic.security.KeyManagementException: java.io.EOFException
    at weblogic.security.X509.initialize(X509.java:86)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <WebLogic Server started>
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <ListenThread listening on
    po
    rt 7001>

    I am getting the following error when I am use the certificate obtained from baltimore
    instead of the default provided by weblogic.
    private key that was generated by the Certificate Servlet.
    <05-Mar-02 17:22:01 GMT> <Info> <Logging> <Only log messages of severity "Error"
    or worse will be displayed in this window. This can be changed at Admin Console
    mydomain> Servers> myserver> Logging> General> Stdout severity threshold>java.io.EOFException
    at weblogic.security.Utils.inputByteArray(Utils.java:143)
    at weblogic.security.ASN1.ASN1Utils.inputASN1Integer(ASN1Utils.java:120)
    at weblogic.security.X509.input(X509.java:120)
    at weblogic.security.X509.initialize(X509.java:81)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:09 GMT> <Alert> <WebLogicServer> <Inconsistent security configu
    ration, weblogic.security.KeyManagementException: java.io.EOFException>
    weblogic.security.KeyManagementException: java.io.EOFException
    at weblogic.security.X509.initialize(X509.java:86)
    at weblogic.security.Certificate.<init>(Certificate.java:59)
    at weblogic.security.X509.<init>(X509.java:56)
    at weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
    va:232)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:411)
    at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <WebLogic Server started>
    <05-Mar-02 17:22:31 GMT> <Notice> <WebLogicServer> <ListenThread listening on
    po
    rt 7001>

  • Start weblogic server within java code

    From edoc.bea.com, I got:
    ====
    The following sections describe alternate ways to start an Administration Server:
    Starting an Administration Server from the Windows Start Menu
    Starting an Administration Server When the Host Computer Boots
    Starting an Administration Server With the java weblogic.Server Command
    ====
    Could we start weblogic server within java code?
    (like ServerLoader provided by JBoss?)
    Thanks in advance.
    -Kevin

    The follwoing code:
    //====
    import weblogic.*;
    public class MyTest
    public static void main(String[] args)
              String[] myArgs = new String[6];
              myArgs[0] = "-Dweblogic.home=C:\\bea";
              myArgs[1] = "-Dweblogic.RootDirectory=C:\\bea\\weblogic81\\samples\\domains\\examples";
              myArgs[2] = "-Dweblogic.ConfigFile=C:\\bea\\weblogic81\\samples\\domains\\examples\\config.xml";
              myArgs[3] = "-Dweblogic.Name=examplesServer";
              myArgs[4] = "-Dweblogic.management.username=weblogic";
              myArgs[5] = "-Dweblogic.management.password=weblogic";
              Server.main( myArgs );
    //====
    Seems that did not feed the arguments in:
    C:\myTest>java -cp .;%CLASSPATH% MyTest
    <Sep 22, 2005 6:08:40 PM EDT> <Info> <Security> <BEA-090065> <Getting boot ident
    ity from user.>
    Enter username to boot WebLogic server:

  • Weblogic.application.ModuleException: java.lang.NoClassDefFoundError -

    Hi
    I receive a problem when deploying a resource adapter - but it is not very informative on where to look for the problem
    weblogic.application.ModuleException: java.lang.NoClassDefFoundError
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:217)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at weblogic.connector.outbound.RAOutboundManager.initializeMCF(RAOutboundManager.java:485)
    at weblogic.connector.outbound.RAOutboundManager.createConnectionFactory(RAOutboundManager.java:440)
    at weblogic.connector.outbound.RAOutboundManager.initialize(RAOutboundManager.java:385)
    at weblogic.connector.outbound.RAOutboundManager.<init>(RAOutboundManager.java:116)
    at weblogic.connector.common.RAInstanceManager.initialize(RAInstanceManager.java:1181)
    at weblogic.connector.common.RAInstanceManager.<init>(RAInstanceManager.java:343)
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:178)
    usually ClassDefNotFoundError would mention which class it has a problem with - but in this case nothing .

    when problem is
    [12:21:26 PM] Weblogic Server Exception: weblogic.application.ModuleException:
    [12:21:26 PM] Caused by: java.lang.NullPointerException:
    [12:21:26 PM] See server logs or server console for more details.
    For deploy Fussion Web aplication
    The problem is weblogic 10.3.5.0 you need install Realtime Software the package name is ofm_appdev_generic_11.1.1.5.0_disk1_1of1.zip and install jdeveloper the package name is jdevstudio11121install.bin when installation is finished, you need extend domain to Oracle JRF 11.1.10 is redy only you need restart weblogic server. The problen to deploy Fussion Web Aplication is resolved

  • Is there any way to start weblogic server with java 7?

    Hi. Is there any way to start weblogic server with jdk 1.7?

    Hi,
    You can start your Weblogic Server with java 7(JDK 1.7) 
    Go to Domain_home/bin and click on StartWeblogic.cmd it will start your Admin Server
    It depends on which JDK you have used while creating domain if you have selected Jdk 1.7 it will use the same to start the server
    See the Ex:
    ================
    starting weblogic with Java version:
    java version "1.7.0_51"
    Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK17~1.0_5\bin\java -client   -Xms256m -Xmx512m -XX:CompileThr
    eshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -
    Djava.security.policy=H:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy
    -Xverify:none -Xverify:none  -da -Dplatform.home=H:\Oracle\MIDDLE~1\WLSERV~1.3 -
    Dwls.home=H:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=H:\Oracle\MIDDLE~
    1\WLSERV~1.3\server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -
    Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=H:\Oracle\MIDDLE
    ~1\patch_wls1036\profiles\default\sysext_manifest_classpath  weblogic.Server
    <Mar 3, 2015 1:08:32 PM PST> <Info> <Security> <BEA-090905> <Disabling CryptoJ J
    CE Provider self-integrity check for better startup performance. To enable this
    check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Mar 3, 2015 1:08:33 PM PST> <Info> <Security> <BEA-090906> <Changing the defaul
    t Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable
    this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Mar 3, 2015 1:08:33 PM PST> <Info> <WebLogicServer> <BEA-000377> <Starting WebL
    ogic Server with Java HotSpot(TM) 64-Bit Server VM Version 24.51-b03 from Oracle
    Corporation>
    =======================================
    If you are using a Lower version of JDK and want to upgrade to JKD 1.7 you can do so by changing setDomainEnv.sh in Weblogic
    Have a look at the below link to do so
    The Weblogic Wasp: change java version / JDK of a weblogic domain
    http://www.baigzeeshan.com/2012/05/how-to-change-jdk-used-by-weblogic.html
    Hope it helps

  • Axis and WebLogic 8.1 - java.lang.InternalError: erroneous handlers

    I am using Axis2 on WebLogic 8.1. When I access my webservice via a RPC client, it works fine. But when I access it by embedding that RPC code into an an EJB (deployed on the same server as the webservice), I get java.lang.InternalError: erroneous handlers:
    <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'>
    <BEA1-00B09EB5658F51185459> <BEA-010051>
    <EJB Exception occurred during invocation from home:
    mypackage....._HomeImpl@257af52 threw exception: java.lang.InternalError: erroneous handlers
    java.lang.InternalError: erroneous handlers
         at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig()V(AxisConfigBuilder.java:???)
         at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(Ljava.io.InputStream;)Lorg.apache.axis2.engine.AxisConfiguration;(DeploymentEngine.java:690)
         at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration()Lorg.apache.axis2.engine.AxisConfiguration;(FileSystemConfigurator.java:109)
         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(Lorg.apache.axis2.engine.AxisConfigurator;)Lorg.apache.axis2.context.ConfigurationContext;(ConfigurationContextFactory.java:61)
         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(Ljava.lang.String;Ljava.lang.String;)Lorg.apache.axis2.context.ConfigurationContext;(ConfigurationContextFactory.java:180)
         at org.apache.axis2.client.ServiceClient.initializeTransports(Lorg.apache.axis2.context.ConfigurationContext;)V(ServiceClient.java:189)
         at org.apache.axis2.client.ServiceClient.configureServiceClient(Lorg.apache.axis2.context.ConfigurationContext;Lorg.apache.axis2.description.AxisService;)V(ServiceClient.java:118)
         at org.apache.axis2.client.ServiceClient.<init>(Lorg.apache.axis2.context.ConfigurationContext;Lorg.apache.axis2.description.AxisService;)V(ServiceClient.java:114)
         at org.apache.axis2.client.ServiceClient.<init>()V(ServiceClient.java:207)
         at org.apache.axis2.rpc.client.RPCServiceClient.<init>()V(RPCServiceClient.java:44)
         at my bean here...Parts of my code that I use to access the webservice from a stateless session bean:
    serviceClient = new RPCServiceClient();
                   Options options = serviceClient.getOptions();
                   EndpointReference targetEPR = new EndpointReference(
                             "http://localhost/axis2/services/MyService");
                   options.setTo(targetEPR);
                   QName qname = new QName("http://my.s/xsd", "getScore");
                   Object[] args = new Object[] { new String("hello-world"),
                             new Integer(786) };
                   Class[] returnTypes = new Class[] { String.class };
                   Object[] response = serviceClient.invokeBlocking(qname, args,
                             returnTypes);Any help is appreciated...

    This Exception occurs due to classpath setting in weblogic.cmd.
    Please make sure that axis path has been set in this file.
    Sometimes Weblogic gives this exception when "NoClassDefinitionException" occurs.
    On the Other hand we can say that "NoClassDefinitionException" mesassage in weblogic is being displayed by "java.lang.InternalError errorneous handler".
    Edit the weblogic.cmd or weblogic.sh to include axis.jar to remove this problem
    Ajay Tiwari

  • Weblogic.rmi and java.rmi

    Hi,
    I would like to use weblogic to access a java object on another machine that
    is using java.rmi. I am using the java "rmiregistry" on the non weblogic box.>
    How can I write a java program that maintains state to that object at weblogic
    startup and call it with a weblogic client?
    Thanks
    Desmond Anderson

    "Pyung Yoon" <[email protected]> writes:
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);This implies JRMP which the server does not support. You need to use t3 or iiop.
    andy

  • Starting weblogic server from java program

    Runtime r=Runtime.getRuntime();
    Process p=r.exec("cmd /c d:/bea/weblogic700/server/bin/setWLSEnv.cmd");
    when ihave given like this it is working.
    now i want to start weblogicserver from jav program
    String s="-Dweblogic.Domain=mydomain weblogic.Server"
    Process p=r.exec("cmd /c d:/bea/weblogic700/server/bin/setWLSEnv.cmd java "+s);
    when i gave like this weblogicserver should start with specified domain
    but no output is comming.please tellme where the problem is

    no - nothing happened. it perform the next java code - and there is nothing else happen on the windows.
    maybe i don't check in the right place for the error you are talking about?
    i also tried i simple cmd file that does nothing - but still nothing...
    for any other file types it works properly.

  • Start weblogic server with java argument

    Hello,
    I am using weblogic server version 10.2. And the environment have one Admin server and two machines.
    In admin console, one managed sever is configured with Java argument in "Server Start". The java option can be passed to JVM when i start the managed server in admin console. i confirmed that by execute ps the java process from the linux server. However, the java argument cannot pass to the JVM when i start from command line as below. is there any specific configuration required?
    /weblogic/bea102/wlserver_10.0/common/bin/wlscontrol.sh -d premium_102_internet_qa -n /weblogic/ndmgr -c -f startManagedWebLogic.sh -s server_qa_svra START
    PLease help!
    Thanks,
    Angus

    You have to use the nodemanager. The parameters are added to a file startup.properties, located in the
    directory: <middleware-home>/user_projects/domains/<domain-name>/servers/<server-name>/data/nodemanager
    The file startup.properties is used by the nodemanager to start your managed server.
    You can start your environment by using a start script (written using WLST), for example,
    beahome = '<middleware-hoem>';
    adminusername = 'username';
    adminpassword = 'password';
    domainname = 'domain-name';
    linux = true;
    pathseparator = '/';
    if not linux:
         pathseparator = '\\';
    domainlocation = beahome + pathseparator + 'user_projects' + pathseparator + 'domains' + pathseparator + domainname;
    nodemanagerhomelocation = beahome + pathseparator + 'wlserver_10.3' + pathseparator + 'common' + pathseparator + 'nodemanager';
    print 'START NODE MANAGER';
    startNodeManager(verbose='true', NodeManagerHome=nodemanagerhomelocation, ListenPort='5556', ListenAddress='localhost');
    print 'CONNECT TO NODE MANAGER';
    nmConnect(adminusername, adminpassword, 'localhost', '5556', domainname, domainlocation, 'ssl');
    print 'START ADMIN SERVER';
    nmStart('AdminServer');
    nmServerStatus('AdminServer');
    print 'CONNECT TO ADMIN SERVER';
    connect(adminusername, adminpassword);
    print 'START MANAGED SERVER';
    start('ServerName','Server');
    nmServerStatus('ServerName');

  • Weblogic.Admin gives java.lang.SecurityException

    I am running weblogic.Admin and getting the following exception:
    Exception in thread "main" java.lang.SecurityException: Prohibited package name:
    java.lang.reflect
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.<init>(Throwable.java:94)
    at java.lang.Exception.<init>(Exception.java:42)
    at java.lang.RuntimeException.<init>(RuntimeException.java:47)
    at java.lang.SecurityException.<init>(SecurityException.java:39)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:485)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
    0)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$1(URLClassLoader.java:217)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:192)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:290)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:256)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    This is the command i run:
    java - weblogic.Admin -url t3://localhost:7001 -username system -password weblogic
    RESET_POOL cp_mcsdb
    CLASSPATH=/usr/local/bea/jdk131_03/lib/tools.jar:/usr/local/bea/weblogic700/server:/usr/local/bea/weblogic700/server/lib/weblogic_sp.jar:/usr/local/bea/weblogic700/server/lib/weblogic.jar:/usr/local/bea/jdk131_03/jre/lib/rt.jar

    If you use WLI testconsole this may be the cause. Use the following flags in
    your setDomainEnv script:
    set debugFlag=false
    set testConsoleFlag=false
    set iterativeDevFlag=false
    Denis.
    <Kumbeswaran Balasubramainian> wrote in message
    news:[email protected]..
    Hi,
    We are also getting the same error, but more frequntly. If anyone has a
    solution for the same, kindly do reply.
    Regards,
    Kumbesh

  • Weblogic.version gives java error after install of D33T

    Hi,
    I just installed patch D33T (Oracle WebLogic Server Patch Set Update 10.3.6.0.4) - released April 2013. Before installing the patch, I checked my weblogic version (running setWLSEnv and java weblogic.version) following the instructions in the readme and the command worked.
    The patch installed fine, I then checked the version again (first doing setWLSEnv and then running java weblogic.version) - however this produced the java error 'NoClassDefFoundError' - could not find the main class: weblogic.version.
    I found a blog entry that suggested adding the weblogic.jar to the classpath, so I did that, then exported the classpatch, ran the setWLSEnv.sh again and tried the java weblogic.version command again - but still received the java error. I then tried running the command from the folder containg the weblogic.jar and still no luck.
    Anyone have any ideas why this may be producing errors?
    Thanks,
    Connie
    Environment info: RHEL 64 - Weblogic SErver 11gR1 (10.3.6.0) - The servers start and seem to be running fine after the patch install.

    I was trying a few more things after I sent my last reply and wondered if my classpath and path values might have not had correct values after running setWLSENV.sh
    When I echo'ed their values, they came back without any of the values being set by setWLSEnv.sh
    I then set them by copying and pasting the values echo'ed back from the setWLSEnv.sh file - by using export CLASSPATH=$CLASSPATH:<<paste of echo'ed classpath from setWLSEnv.sh>> and then the same for the path. After this, I tried the java weblogic.version and that worked - so now, I guess I am left to deal with issue of my setWLSEnv.sh not setting the CLASSPATH and PATH variables.
    Thanks,
    Connie

  • Weblogic crashes with  java.lang.OutOfMemoryError: getNewTla.

    Hi,
    We have a clustered Weblogic environment and a custom WebCenter portal application is deployed on it.
    We are using JDev 11.1.1.5.0 and the Weblogic version we are using is 10.3.5.0
    We are frequently getting below error on either cluster. Can anyone help please?
    ExecuteRequest failed
    java.lang.OutOfMemoryError: getNewTla.
    java.lang.OutOfMemoryError: getNewTla
    at java.util.HashMap.newKeyIterator(HashMap.java:1024)
    at java.util.HashMap$KeySet.iterator(HashMap.java:1062)
    at java.util.HashSet.iterator(HashSet.java:153)
    at weblogic.cluster.messaging.internal.GroupImpl.getConfigInformation(GroupImpl.java:271)
    at weblogic.cluster.messaging.internal.GroupManagerImpl.findOrCreateGroupMember(GroupManagerImpl.java:198)
    at weblogic.cluster.messaging.internal.GroupManagerImpl.handleMessage(GroupManagerImpl.java:173)
    at weblogic.cluster.messaging.internal.ConnectionImpl$1.run(ConnectionImpl.java:139)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Regards,
    Kanchan

    Hi Kanchan,
    Few things you could do here is,
    1. Check GC logs to check if Garbage collector selected is able to release un-referenced objects. Logs will give you hint about possible memory leak.
    If you have not set debug GC logs then set it using -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGC -Xloggc:/logs/server1_gclogs.txt
    2. Would prefer to take heap dump on OOM and use any tool like jhat or MAT to analyse. It will help in deciding if you require any performance tuning at JVM level. sometime it happens that heap space allocated is tool low causing OOM.
    For taking heap dump either set it as JAVA option - "*-XX:+HeapDumpOnOutOfMemoryError*"
    or
    using Sun tool "jmap"
    $ jmap –heap:format=b <pid>
    Thanks,
    Ranjan

  • Weblogic implementation of java.security.acl.Group

    hi guys
    Do you know of any specific reason why there isnt a implementation of the
    java.security.acl.Group interface in the weblogic jar.
    I am trying to create a simple user manager service which uses the mbeans
    exposed by weblogic. However the interface I am coding to expects me to return
    java.security.acl.Group when I create a Group. This has resulted in a deadlock
    as I havent been able to locate a non deprecated implementation.
    Thanks
    anand

    Yes, you can do this.
    Alexandre Vauthey wrote:
    Hi,
    If I write my own securrity realm, am I able to use my own implementaion of
    'java.security.acl.Acl' and 'java.security.acl.AclEntry' or do I have to use
    the implementation provided by weblogic ? When Security.checkPermission() is
    called, does it solely rely on APIs defined in 'java.security.acl' or does
    it really expect to talk to an instance of weblogic 'AclImpl' ?
    Thanks, Alexandre.
    Alexandre Vauthey
    Software Engineer
    Application Networks
    444 Ramona street
    Palo Alto, CA 94301

  • Problem in clustering in Weblogic 5.1 (java.util.zip.ZipException)

    Hi All,
    We are using WLS 5.1 clustering. 2 WLS are running in 2 different unix box in same subnet. But we are getting the following exception ( Though all the Beans have been deployed successfully).
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.open(Compiled Code)
    at java.util.zip.ZipFile.<init>(Compiled Code)
    at java.util.zip.ZipFile.<init>(Compiled Code)
    at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:132)
    at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(Compiled Code)
    at weblogic.cluster.AnnotatedServiceOffer.readObject(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(Compiled Code)
    Fri Jan 25 16:57:22 MST 2002:<E> <MulticastSocket> Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/opt/wlogic/weblogic/obscluster/server113/tmp_deployments/ejbjar-4247.jar
    (cluster name we have changed to obscluster )
    This Exception is coming in both the servers The difference is that the server whose ip ends with 112 is trying to open the file from server113 dir and the server whose ip ends with 113 is trying to open the file from server112 dir.
    In web I have found that if the directory structure of 2 servers doesn't match then this porblem can arise. But for both of my servers the directory structure is same , at least until /opt/wlogic/weblogic/obscluster/ and then the directory server113 or server112 is created by Weblogic automatically when I have started the Server.
    Any help regarding this will be very helpful.
    Thanks & Regards
    Srijeeb.

    Hi everyone,
    I think I have got the solution. Using sp11. added sp11 related jar in PRE_CLASSPATH . Problem Solved....
    Thanks
    Srijeeb

Maybe you are looking for

  • Pages documents in iCloud can't be opened

    I stored some Pages documents in iCloud last fall, and now-even though they are visible in the Pages "open" window in Mountain Lion-I can't open them on either my Mac or iOS devices. When I click or tap on these documents, they appear to "zoom open"

  • Pre-Populating the header data in the survey attached to an activity in CRM

    Hello Gurus, I have a question regarding Pre-Populating the header data in the survey attached to an activity in CRM Mobile 4.0. That in can we define a Functional module for a PBO (Process Before Output) for a survey u201CZ_SVY_Templateu201D in CRM

  • How do I add Skype names to iChat?

    I thought I read on the Apple site that with Lion, that iChat would find all the names in my Skype list and allow me to use iChat for contacting people who use Skype.  Am I mistaken, or is there a way to do that.  It did not happen automatically, so

  • Packaging with Air 2.6 is so gloomy

    At first using the PFI was simple, now air sdk 2.6 come with new possibility but now you have to use terminal and going into the xml descrriptor file to create an .ipa. It is a pain in the **** we need  good tutorial or a good user guide. if someone

  • Compatibility Mac's and Blackberry's - Issues?

    I am not sure if this should be posted in the iSync or Mac OS X v10.5 section. So forgiven me if I have posted it in the wrong spot. I am thinking of getting a Blackberry Phone (Because a lot of my business customers use them and would like faster re