EJB Authorization
Hi all,
I have a customized LoginModule. This module put some principals into the subject,
you see. In session bean, sessionContext.getCallerPrincipal() returned a weblogic.security.SimplePrincipal
object, which has the different class with the principals which I put in the subject,
also the principal name, changed to "<anonymous>".
1, Who can tell me why does this happen?
2, How can I get the user principal or subject so that I can implement EJB authorization?
I changed the jre security.config file to specify a login.config file, which specifies
a my LoginModule. My LoginModule read user information from database.
My WebLogic version is 8.1
Thanks!
Have you written your own implementation of Authentication Provider.
This is how you can get your own principal out in a sessionContext.getCallerPrincipal call.
1. Write an Authentication Provider for WebLogic by following their SPI documentation.
2. Write a principal that extends weblogic.security.principal.WLSAbstractPrincipal
and implements weblogic.security.spi.WLSUser.
3. In the LoginModule that you write drop this principal in the subject.
4. Specify this LoginModule as the loginmodule in your Authentication Provider.
5. You can get back the principal and cast it to your own class and perform any special operations on it.
It is fairly straigtforward. The only place that is difficult is writing the Authentication Provider.
Vijay
Similar Messages
-
Using JAAS credentials in EJBs
Hi,
I'm trying to use JAAS credentials to do EJB authorization and I'm curious if this is even possible. Do I have to authorize the container I'm running in? Can I authorize it programmatically or do I need to use a different method?
I've heard that's possible to authorize the container in OC4J 11 but I have seen any documentation on how to do it.Mark,
if you are talking about a pure JAAS approach - one in which you perform JAAS authentication and authorization in your application code - then this of course is possible, but the container has nothing to do with it. Many users mix JAAS authentication and authorization with JAZN authentication and authorization, which is container managed authentication and authorization that is documented in the OracleAs documentation for OC4J (also for the use of EJB)
Frank -
IsUserinRole not working in web container
Hi,
I'm trying to get the authorization capability working in S1AS7 using the certificate realm, but am unable to successfully get a valid response from the request.isUserinRole() method.
I have the security role defined in web.xml; I also have a security-role-ref defined in the same file (although I've tested the method with and without using security-role-ref unsuccessfully).
I have a sun-web.xml file with the security-role-mapping where the role-name matches the role-name in web.xml and the principal-name is the subject DN in the certificate. Despite all this, the isUserinRole method never returns true.
I even retreived the certificate and its subject DN from the request - and I am able to do it successfully - but cannot get the role mapping to work fine. Can anyone suggest any pointers? I'm attaching parts of the web.xml and sun-web.xml files as datapoints.
Thanks.
<!-- The security configuration from web.xml-->
<login-config>
<auth-method>CLIENT-CERT</auth-method>
</login-config>
<security-role>
<description>Manager</description>
<role-name>MGR</role-name>
</security-role>
<!-- The role-mapping configuration from sun-web.xml-->
<sun-web-app>
<security-role-mapping>
<role-name>MGR</role-name> <principal-name>UID=100,CN=Manager,O=Company</principal-name>
</security-role-mapping>
</sun-web-app>
The same definitions of roles and mappings works fine in ejb.xml and sun-ejb.xml for the EJB authorizations.Hi Srini,
Here are the screenshots you requested. Do let me know if any more info is needed:
https://docs.google.com/file/d/0BzdimOKCEF76b2xGU0hZSndfVUU/edit?usp=sharing
https://docs.google.com/file/d/0BzdimOKCEF76WFFuTENvSExIMzg/edit?usp=sharing
Jimit -
I'm implementing a custom authorization provider for WebLogic 7.
In my Access Decision isAccessAllowed method I need to check values of
the parameters passed to an EJB method. Now, if an EJB method I have
two parameters of the same type, for example int, when I get
ContextElement array from ContextHandler and iterate through it to get
names and values of the parameters I get the same value (value of the
first int parameter) from both ContextElement's.
Here is the code:
String [] names = ch.getNames();
for (int i = 0; i < names.length; i++)
String name = names;
System.out.println("name = " + name);//here it gets array of
Strings, which contains two parameter names: "int","int",
which are the types of EJB method parameters
ContextElement[] ces= ch.getValues(names);
for (int j = 0; j < ces.length; j++)
ContextElement ce = ces[j];
System.out.println(ce.getName()+ " = " + ce.getValue());
//here if the value of the first int was 2 and the second 0,
it would get 2 from both ContextElements (each of ContextElements will
have name "int"
If I try this with method parameters of different types, for example
int with value 2 and long with value 0, then this code work fine -
first ContextEleement has name int and value 2 and the second has name
long and value 0.
Thanks,
-Oleg Kozlov.I'm implementing a custom authorization provider for WebLogic 7.
In my Access Decision isAccessAllowed method I need to check values of
the parameters passed to an EJB method. Now, if an EJB method I have
two parameters of the same type, for example int, when I get
ContextElement array from ContextHandler and iterate through it to get
names and values of the parameters I get the same value (value of the
first int parameter) from both ContextElement's.
Here is the code:
String [] names = ch.getNames();
for (int i = 0; i < names.length; i++)
String name = names;
System.out.println("name = " + name);//here it gets array of
Strings, which contains two parameter names: "int","int",
which are the types of EJB method parameters
ContextElement[] ces= ch.getValues(names);
for (int j = 0; j < ces.length; j++)
ContextElement ce = ces[j];
System.out.println(ce.getName()+ " = " + ce.getValue());
//here if the value of the first int was 2 and the second 0,
it would get 2 from both ContextElements (each of ContextElements will
have name "int"
If I try this with method parameters of different types, for example
int with value 2 and long with value 0, then this code work fine -
first ContextEleement has name int and value 2 and the second has name
long and value 0.
Thanks,
-Oleg Kozlov. -
Problems deploying a simple EJB
I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
Generating EJBHome and EJBObject on the server...
Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
^ Info: 3 errors
And if I use an int instead of the XMLDocument parameter, everithing's right.
Can anybody submit a no-paranormal solution ?
Thanks.
GHParameter passing in EJB must implement Serializable. One way to solve this is:
1. Define a new class which implements
Serializable.
2. Place whatever you want to pass inside
this class.
3. Now use the new class as your parameter.
eg.
public class Params implements java.io.Serializable {
String p1;
XmlDocmuent xdoc;,
etc, etc
Your program now have to use the class Params for parameter passing.
Hope this helps.
Tam
null -
Problem invoking EJB web service from Java
The project has a BPEL project calling embedded Java class and that Java class is invoking EJB WS(Java based).
The whole project has been developed in Jdeveloper. There is a dependency set between BPEL project and the EJB project.
The EJB WS has been deployed in the machine where BPEL server is running.
When I am running the java(embedded in BPEL project) manually in Jdeveloper then it is callig the EJB WS without any issue.
But when the BPEL is invoking the same Java and which in turn is invoking the EJB WS then it is giving this error in the BPEL Audit file :
<runtimeFault xmlns="http://schemas.oracle.com/bpel/extension">
- <part name="code">
<code>
java.lang.NoClassDefFoundError
</code>
</part>
- <part name="summary">
<summary>
com/formfactor/it/promis/PromisLinkWSSoapHttpPortClient
</summary>
</part>
- <part name="detail">
<detail>
[Ljava.lang.StackTraceElement;@1cde909
</detail>
</part>
</runtimeFault
Note: com/formfactor/it/promis/PromisLinkWSSoapHttpPortClient is the WS end-point.
To try out I have put EjbWebServices.jar , which has PromisLinkWSSoapHttpPortClient.class, in <SOA_HOME>/bpel/system/classes . But it did not help.
Can you please let me know what else has to be done?Hi,
Can anyone help me with this ??
I guess I am not able to send the authorization credentials via the request to the web service invocation.
Plz help ! This is a bit urgent..
Regards,
Shiva Kiran -
Hi All,
I am new to java web services.
I made web services from ejb with netbeans.
I like only some people to have access to this services with user and pass stored in database.
In other words I need authentication and authorization.
How can I do this?
RegardsWell it depends also on application server you are using.
It depends also on web service stack you are using.
For example here is the hint for glassfish (Metro):
http://java.sun.com/javaee/5/docs/tutorial/doc/bncbe.html#bncbn
Miro. -
Using EJB with Hibernate on Weblogic Server ADF platform
Hi all,
We use Jdeveloper 11.1.1.4 and WLS 10.3
I tried to use Hibernate on my project according to this link well, EJB with Hibernate On Weblogic
I wanto use Hibernate tool because toplink and eclipselink can not achieve the issue about generating update* ddl on schema, they can just only re-create the tables -not real update.
Firstly i got the related jars from internet: http://www.2hotfile.com/di-LSBU.png
cglib-2.2
antlr-2.7.6
commons-collections-3.1
dom4j-1.6.1
hibernate3
hibernate-validator-4.1.0.Final
javassist-3.9.0.GA
jta-1.1
slf4j-api-1.5.11
slf4j-nop-1.5.11
Then i added to model project as library dependencies: http://www.2hotfile.com/di-GMSZ.png
configured persistence.xml as below:
<?xml version="1.0" encoding="windows-1252" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="1.0">
<persistence-unit name="VakkoEJBModel" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/VakkoDS</jta-data-source>
<properties>
<property name="hibernate.jndi.url" value="t3://127.0.0.1:7001" />
<property name="hibernate.connection.datasource" value="jdbc/VakkoDS" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WeblogicTransactionManagerLookup" />
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.current_session_context_class" value="jta" />
</properties>
</persistence-unit>
</persistence>
weblogic-application.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<weblogic-application>
<prefer-application-packages>
<package-name>antlr.*</package-name>
<package-name>org.hibernate.*</package-name>
<!-- package-name>org.apache.commons.logging.*</package-name -->
<!-- package-name>org.w3c.dom.*</package-name -->
</prefer-application-packages>
</weblogic-application>
weblogic-ejb-jar.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
</weblogic-ejb-jar>
ejb-jar.xml
<?xml version="1.0" encoding="windows-1252" ?>
<ejb-jar/>
And i added to setDomainEnv.cmd that line:
set EXT_PRE_CLASSPATH=C:\jarlar\hibernate-3.3.2\antlr-2.7.6.jar;C:\jarlar\hibernate-3.3.2\commons-collections-3.1.jar;C:\jarlar\hibernate-3.3.2\dom4j-1.6.1.jar;C:\jarlar\hibernate-3.3.2\hibernate3.jar;C:\jarlar\hibernate-3.3.2\javassist-3.9.0.GA.jar;C:\jarlar\hibernate-3.3.2\jta-1.1.jar;C:\jarlar\hibernate-3.3.2\slf4j-api-1.5.11.jar;C:\jarlar\hibernate-3.3.2\slf4j-nop-1.5.11.jar;C:\jarlar\hibernate-3.3.2\bytecode\cglib\cglib-2.2.jar;C:\Oracle\Middleware_11.1.1.4\modules\ejb3-persistence-3.3.1.jar;hibernate-validator-4.1.0.Final.jar;
deployment profile could be seen by clicking those links:
http://www.2hotfile.com/di-XV68.png
http://www.2hotfile.com/di-8YC9.png
http://www.2hotfile.com/di-ADR4.png
And i tried to manipulate the ear file contents according to these informations: http://middlewaremagic.com/weblogic/wp-content/uploads/2010/06/EAR_Application_Diagram.jpg
under ear\META-INF\application.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5" xmlns="http://java.sun.com/xml/ns/javaee">
<display-name>ejb1</display-name>
<module>
<ejb>ejb1.jar</ejb>
</module>
</application>
under ear\META-INF\weblogic-application.xml
<?xml version = '1.0' encoding = 'windows-1254'?>
<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
<prefer-application-packages>
<package-name>org.hibernate.*</package-name>
<package-name>antlr.*</package-name>
<!-- package-name>org.apache.commons.logging.*</package-name -->
<!-- package-name>org.w3c.dom.*</package-name -->
</prefer-application-packages>
<listener>
<listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
</listener>
<listener>
<listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
</listener>
<library-ref>
<library-name>adf.oracle.domain</library-name>
</library-ref>
</weblogic-application>
The files which existed in ejb1.ear\ejb1.jar\META-INF\ directory same with source folder of model project (these were created by jdeveloper deployment process according to deployment profile which previously explaint)
ear contents shown that link : http://www.2hotfile.com/di-23X6.png
When i deploy the project to weblogic by using JDeveloper or http://127.0.0.1:7101/console/ method. But occured exception
<10-Dec-2012 16:31:54 o'clock EET> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=AppDeploymentsControlPage.>
<10-Dec-2012 16:32:45 o'clock EET> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1355149965087' for task '2'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb1.jar)
weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb1.jar)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
Truncated. see log file for complete stacktrace
Caused By: weblogic.deployment.EnvironmentException: Error processing persistence unit VakkoEJBModel of module ejb1.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit VakkoEJBModel: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
at weblogic.deployment.BasePersistenceUnitInfoImpl.getPersistenceProvider(BasePersistenceUnitInfoImpl.java:375)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:393)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:386)
at weblogic.deployment.BasePersistenceUnitInfoImpl.<init>(BasePersistenceUnitInfoImpl.java:158)
at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:39)
Truncated. see log file for complete stacktrace
>
<10-Dec-2012 16:32:45 o'clock EET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'ejb1'.>
<10-Dec-2012 16:32:45 o'clock EET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb1.jar)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
Truncated. see log file for complete stacktrace
Caused By: weblogic.deployment.EnvironmentException: Error processing persistence unit VakkoEJBModel of module ejb1.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit VakkoEJBModel: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
at weblogic.deployment.BasePersistenceUnitInfoImpl.getPersistenceProvider(BasePersistenceUnitInfoImpl.java:375)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:393)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:386)
at weblogic.deployment.BasePersistenceUnitInfoImpl.<init>(BasePersistenceUnitInfoImpl.java:158)
at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:39)
Truncated. see log file for complete stacktrace
>
<10-Dec-2012 16:32:45 o'clock EET> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb1.jar)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: weblogic.deployment.EnvironmentException: Error processing persistence unit VakkoEJBModel of module ejb1.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit VakkoEJBModel: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
at weblogic.deployment.BasePersistenceUnitInfoImpl.getPersistenceProvider(BasePersistenceUnitInfoImpl.java:375)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:393)
at weblogic.deployment.BasePersistenceUnitInfoImpl.initializeEntityManagerFactory(BasePersistenceUnitInfoImpl.java:386)
at weblogic.deployment.BasePersistenceUnitInfoImpl.<init>(BasePersistenceUnitInfoImpl.java:158)
at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:39)
at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:349)
at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:263)
at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:69)
at weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:223)
at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:324)
at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:393)
What are my mistake/s or incompletes?
Please help me and excuse my poor English. Thanks in advanceThanks again for your consideration.
I double checked CLASSPATH. And seen starting wls with classpath which i defined, but no change about ecxeption.
you can see wls starting classpath through the link: http://www.2hotfile.com/image.php?di=BQNE
setDomainEnv.cmd
@ECHO OFF
@REM WARNING: This file is created by the Configuration Wizard.
@REM Any changes to this script may be lost when adding extensions to this configuration.
@REM *************************************************************************
@REM This script is used to setup the needed environment to be able to start Weblogic Server in this domain.
@REM
@REM This script initializes the following variables before calling commEnv to set other variables:
@REM
@REM WL_HOME - The BEA home directory of your WebLogic installation.
@REM JAVA_VM - The desired Java VM to use. You can set this environment variable before calling
@REM this script to switch between Sun or BEA or just have the default be set.
@REM JAVA_HOME - Location of the version of Java used to start WebLogic
@REM Server. Depends directly on which JAVA_VM value is set by default or by the environment.
@REM USER_MEM_ARGS - The variable to override the standard memory arguments
@REM passed to java.
@REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
@REM DOMAIN_PRODUCTION_MODE
@REM - The variable that determines whether the workshop related settings like the debugger,
@REM testconsole or iterativedev should be enabled. ONLY settable using the
@REM command-line parameter named production
@REM NOTE: Specifying the production command-line param will force
@REM the server to start in production mode.
@REM
@REM Other variables used in this script include:
@REM SERVER_NAME - Name of the weblogic server.
@REM JAVA_OPTIONS - Java command-line options for running the server. (These
@REM will be tagged on to the end of the JAVA_VM and
@REM MEM_ARGS)
@REM
@REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
@REM (http://download.oracle.com/docs/cd/E17904_01/web.1111/e13708/overview.htm).
@REM *************************************************************************
set COMMON_COMPONENTS_HOME=C:\Oracle\Middleware_11.1.1.4\oracle_common
for %%i in ("%COMMON_COMPONENTS_HOME%") do set COMMON_COMPONENTS_HOME=%%~fsi
@REM C:\jarlar\hibernate-3.3.2\antlr-2.7.6.jar;C:\jarlar\hibernate-3.3.2\commons-collections-3.1.jar;C:\jarlar\hibernate-3.3.2\dom4j-1.6.1.jar;C:\jarlar\hibernate-3.3.2\hibernate3.jar;C:\jarlar\hibernate-3.3.2\javassist-3.9.0.GA.jar;C:\jarlar\hibernate-3.3.2\jta-1.1.jar;C:\jarlar\hibernate-3.3.2\slf4j-api-1.5.11.jar;C:\jarlar\hibernate-3.3.2\slf4j-nop-1.5.11.jar;C:\jarlar\hibernate-3.3.2\bytecode\cglib\cglib-2.2.jar;C:\Oracle\Middleware_11.1.1.4\modules\ejb3-persistence-3.3.1.jar;hibernate-validator-4.1.0.Final.jar;
set CLASSPATH=C:\jarlar\hibernate-3.3.2\antlr-2.7.6.jar;C:\jarlar\hibernate-3.3.2\commons-collections-3.1.jar;C:\jarlar\hibernate-3.3.2\dom4j-1.6.1.jar;C:\jarlar\hibernate-3.3.2\hibernate3.jar;C:\jarlar\hibernate-3.3.2\javassist-3.9.0.GA.jar;C:\jarlar\hibernate-3.3.2\jta-1.1.jar;C:\jarlar\hibernate-3.3.2\slf4j-api-1.5.11.jar;C:\jarlar\hibernate-3.3.2\slf4j-nop-1.5.11.jar;C:\jarlar\hibernate-3.3.2\bytecode\cglib\cglib-2.2.jar;C:\Oracle\Middleware_11.1.1.4\modules\ejb3-persistence-3.3.1.jar;hibernate-validator-4.1.0.Final.jar;%CLASSPATH%;
set WC_ORACLE_HOME=C:\Oracle\Middleware_11.1.1.4\jdeveloper
set PORTLET_ORACLE_HOME=C:\Oracle\Middleware_11.1.1.4\jdeveloper
set WC_ORACLE_HOME=C:\Oracle\Middleware_11.1.1.4\jdeveloper
set WL_HOME=C:\Oracle\Middleware_11.1.1.4\wlserver_10.3
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
set BEA_JAVA_HOME=
set SUN_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_30x64
if "%JAVA_VENDOR%"=="Oracle" (
set JAVA_HOME=%BEA_JAVA_HOME%
) else (
if "%JAVA_VENDOR%"=="Sun" (
set JAVA_HOME=%SUN_JAVA_HOME%
) else (
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_30x64
@REM set JAVA_HOME=C:\Oracle\Middleware_11.1.1.4\jdk160_21
@REM We need to reset the value of JAVA_HOME to get it shortened AND
@REM we can not shorten it above because immediate variable expansion will blank it
set JAVA_HOME=%JAVA_HOME%
for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi
set SAMPLES_HOME=%WL_HOME%\samples
set DOMAIN_HOME=C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain
for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
set LONG_DOMAIN_HOME=C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain
if "%DEBUG_PORT%"=="" (
set DEBUG_PORT=8453
if "%SERVER_NAME%"=="" (
set SERVER_NAME=DefaultServer
set DERBY_FLAG=false
set enableHotswapFlag=
set PRODUCTION_MODE=
set doExitFlag=false
set verboseLoggingFlag=false
for %%p in (%*) do call :SET_PARAM %%p
GOTO :CMD_LINE_DONE
:SET_PARAM
for %%q in (%1) do set noQuotesParam=%%~q
if /i "%noQuotesParam%" == "nodebug" (
set debugFlag=false
GOTO :EOF
if /i "%noQuotesParam%" == "production" (
set DOMAIN_PRODUCTION_MODE=true
GOTO :EOF
if /i "%noQuotesParam%" == "notestconsole" (
set testConsoleFlag=false
GOTO :EOF
if /i "%noQuotesParam%" == "noiterativedev" (
set iterativeDevFlag=false
GOTO :EOF
if /i "%noQuotesParam%" == "noLogErrorsToConsole" (
set logErrorsToConsoleFlag=false
GOTO :EOF
if /i "%noQuotesParam%" == "noderby" (
set DERBY_FLAG=false
GOTO :EOF
if /i "%noQuotesParam%" == "doExit" (
set doExitFlag=true
GOTO :EOF
if /i "%noQuotesParam%" == "noExit" (
set doExitFlag=false
GOTO :EOF
if /i "%noQuotesParam%" == "verbose" (
set verboseLoggingFlag=true
GOTO :EOF
if /i "%noQuotesParam%" == "enableHotswap" (
set enableHotswapFlag=-javaagent:%WL_HOME%\server\lib\diagnostics-agent.jar
GOTO :EOF
) else (
set PROXY_SETTINGS=%PROXY_SETTINGS% %1
GOTO :EOF
:CMD_LINE_DONE
set MEM_DEV_ARGS=
if "%DOMAIN_PRODUCTION_MODE%"=="true" (
set PRODUCTION_MODE=%DOMAIN_PRODUCTION_MODE%
if "%PRODUCTION_MODE%"=="true" (
set debugFlag=false
set testConsoleFlag=false
set iterativeDevFlag=false
set logErrorsToConsoleFlag=false
@REM If you want to override the default Patch Classpath, Library Path and Path for this domain,
@REM Please uncomment the following lines and add a valid value for the environment variables
@REM set PATCH_CLASSPATH=[myPatchClasspath] (windows)
@REM set PATCH_LIBPATH=[myPatchLibpath] (windows)
@REM set PATCH_PATH=[myPatchPath] (windows)
@REM PATCH_CLASSPATH=[myPatchClasspath] (unix)
@REM PATCH_LIBPATH=[myPatchLibpath] (unix)
@REM PATCH_PATH=[myPatchPath] (unix)
call "%WL_HOME%\common\bin\commEnv.cmd"
set WLS_HOME=%WL_HOME%\server
set XMS_SUN_64BIT=256
set XMS_SUN_32BIT=256
set XMX_SUN_64BIT=512
set XMX_SUN_32BIT=512
set XMS_JROCKIT_64BIT=256
set XMS_JROCKIT_32BIT=256
set XMX_JROCKIT_64BIT=512
set XMX_JROCKIT_32BIT=512
if "%JAVA_VENDOR%"=="Sun" (
set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx600m -XX:PermSize=128M -XX:MaxPermSize=256M
set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx600m -XX:PermSize=128M -XX:MaxPermSize=256M
echo this is suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuun
) else (
set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx600m -XX:PermSize=128M -XX:MaxPermSize=256M
set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx600m -XX:PermSize=128M -XX:MaxPermSize=256M
echo this is noooooooooooooooooooooooooooooooooooooooooooooooot sun
if "%JAVA_VENDOR%"=="Oracle" (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_JROCKIT_64BIT%m -Xmx%XMX_JROCKIT_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_JROCKIT_32BIT%m -Xmx%XMX_JROCKIT_32BIT%m
) else (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_SUN_64BIT%m -Xmx%XMX_SUN_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_SUN_32BIT%m -Xmx%XMX_SUN_32BIT%m
set MEM_ARGS_64BIT=%CUSTOM_MEM_ARGS_64BIT%
set MEM_ARGS_32BIT=%CUSTOM_MEM_ARGS_32BIT%
if "%JAVA_USE_64BIT%"=="true" (
set MEM_ARGS=%MEM_ARGS_64BIT%
) else (
set MEM_ARGS=%MEM_ARGS_32BIT%
set MEM_PERM_SIZE_64BIT=-XX:PermSize=128m
set MEM_PERM_SIZE_32BIT=-XX:PermSize=128m
if "%JAVA_USE_64BIT%"=="true" (
set MEM_PERM_SIZE=%MEM_PERM_SIZE_64BIT%
) else (
set MEM_PERM_SIZE=%MEM_PERM_SIZE_32BIT%
set MEM_MAX_PERM_SIZE_64BIT=-XX:MaxPermSize=512m
set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=512m
if "%JAVA_USE_64BIT%"=="true" (
set MEM_MAX_PERM_SIZE=%MEM_MAX_PERM_SIZE_64BIT%
) else (
set MEM_MAX_PERM_SIZE=%MEM_MAX_PERM_SIZE_32BIT%
if "%JAVA_VENDOR%"=="Sun" (
if "%PRODUCTION_MODE%"=="" (
set MEM_DEV_ARGS=-XX:CompileThreshold=8000 %MEM_PERM_SIZE%
@REM Had to have a separate test here BECAUSE of immediate variable expansion on windows
if "%JAVA_VENDOR%"=="Sun" (
set MEM_ARGS=%MEM_ARGS% %MEM_DEV_ARGS% %MEM_MAX_PERM_SIZE%
if "%JAVA_VENDOR%"=="HP" (
set MEM_ARGS=%MEM_ARGS% %MEM_MAX_PERM_SIZE%
if "%JAVA_VENDOR%"=="Apple" (
set MEM_ARGS=%MEM_ARGS% %MEM_MAX_PERM_SIZE%
@REM IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
set USER_MEM_ARGS=-Xms256m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
if NOT "%USER_MEM_ARGS%"=="" (
set MEM_ARGS=%USER_MEM_ARGS%
set ORACLE_DOMAIN_CONFIG_DIR=%DOMAIN_HOME%\config\fmwconfig
for %%i in ("%ORACLE_DOMAIN_CONFIG_DIR%") do set ORACLE_DOMAIN_CONFIG_DIR=%%~fsi
set WLS_JDBC_REMOTE_ENABLED=-Dweblogic.jdbc.remoteEnabled=false
if "%WC_OHOME_ARGUMENT%"=="" (
set WC_OHOME_ARGUMENT=-Dwc.oracle.home=%WC_ORACLE_HOME%
set EXTRA_JAVA_PROPERTIES=-Dwc.oracle.home=%WC_ORACLE_HOME% %EXTRA_JAVA_PROPERTIES%
if "%PORTLET_OHOME_ARGUMENT%"=="" (
set PORTLET_OHOME_ARGUMENT=-Dportlet.oracle.home=%PORTLET_ORACLE_HOME%
set EXTRA_JAVA_PROPERTIES=-Dportlet.oracle.home=%PORTLET_ORACLE_HOME% %EXTRA_JAVA_PROPERTIES%
if "%WC_OHOME_ARGUMENT%"=="" (
set WC_OHOME_ARGUMENT=-Dwc.oracle.home=%WC_ORACLE_HOME%
set EXTRA_JAVA_PROPERTIES=-Dwc.oracle.home=%WC_ORACLE_HOME% %EXTRA_JAVA_PROPERTIES%
set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME%
set ALT_TYPES_DIR=%COMMON_COMPONENTS_HOME%\modules\oracle.ossoiap_11.1.1,%COMMON_COMPONENTS_HOME%\modules\oracle.oamprovider_11.1.1
set PROTOCOL_HANDLERS=oracle.mds.net.protocol
if "%JAVA_VENDOR%"=="Sun" (
set EXTRA_JAVA_PROPERTIES=-XX:+UseParallelGC -XX:+DisableExplicitGC %EXTRA_JAVA_PROPERTIES%
) else (
if "%JAVA_VENDOR%"=="Oracle" (
set EXTRA_JAVA_PROPERTIES=-Djrockit.codegen.newlockmatching=true %EXTRA_JAVA_PROPERTIES%
) else (
set EXTRA_JAVA_PROPERTIES=-XX:+UseParallelGC -XX:+DisableExplicitGC %EXTRA_JAVA_PROPERTIES%
set PROTOCOL_HANDLERS=%PROTOCOL_HANDLERS:;="|"%
@REM To use Java Authorization Contract for Containers (JACC) in this domain,
@REM please uncomment the following section. If there are multiple machines in
@REM your domain, be sure to edit the setDomainEnv in the associated domain on
@REM each machine.
@REM
@REM -Djava.security.manager
@REM -Djava.security.policy=location of weblogic.policy
@REM -Djavax.security.jacc.policy.provider=weblogic.security.jacc.simpleprovider.SimpleJACCPolicy
@REM -Djavax.security.jacc.PolicyConfigurationFactory.provider=weblogic.security.jacc.simpleprovider.PolicyConfigurationFactoryImpl
@REM -Dweblogic.security.jacc.RoleMapperFactory.provider=weblogic.security.jacc.simpleprovider.RoleMapperFactoryImpl
set EXTRA_JAVA_PROPERTIES=-Doracle.webcenter.tagging.scopeTags=false %EXTRA_JAVA_PROPERTIES%
set EXTRA_JAVA_PROPERTIES=-Doracle.webcenter.analytics.disable-native-partitioning=false %EXTRA_JAVA_PROPERTIES%
set EXTRA_JAVA_PROPERTIES=-DUSE_JAAS=false -Djps.policystore.hybrid.mode=false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.logging.impl.UserContextImpl -noverify %EXTRA_JAVA_PROPERTIES%
set EXTRA_JAVA_PROPERTIES=-Dwsm.repository.path=%DOMAIN_HOME%\oracle\store\gmds %EXTRA_JAVA_PROPERTIES%
set EXTRA_JAVA_PROPERTIES=-Dcommon.components.home=%COMMON_COMPONENTS_HOME% -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=%DOMAIN_HOME% -Djrockit.optfile=%COMMON_COMPONENTS_HOME%\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=%ORACLE_DOMAIN_CONFIG_DIR%\servers\%SERVER_NAME% -Doracle.domain.config.dir=%ORACLE_DOMAIN_CONFIG_DIR% -Digf.arisidbeans.carmlloc=%ORACLE_DOMAIN_CONFIG_DIR%\carml -Digf.arisidstack.home=%ORACLE_DOMAIN_CONFIG_DIR%\arisidprovider -Doracle.security.jps.config=%DOMAIN_HOME%\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=%DOMAIN_HOME%\servers\%SERVER_NAME%\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=%ALT_TYPES_DIR% -Djava.protocol.handler.pkgs=%PROTOCOL_HANDLERS% %WLS_JDBC_REMOTE_ENABLED% %EXTRA_JAVA_PROPERTIES%
set EXTRA_JAVA_PROPERTIES=-Djps.app.credential.overwrite.allowed=true %EXTRA_JAVA_PROPERTIES%
set JAVA_PROPERTIES=%JAVA_PROPERTIES% %EXTRA_JAVA_PROPERTIES%
set ARDIR=%WL_HOME%\server\lib
pushd %LONG_DOMAIN_HOME%
@REM Clustering support (edit for your cluster!)
if "%ADMIN_URL%"=="" (
@REM The then part of this block is telling us we are either starting an admin server OR we are non-clustered
set CLUSTER_PROPERTIES=-Dweblogic.management.discover=true
) else (
set CLUSTER_PROPERTIES=-Dweblogic.management.discover=false -Dweblogic.management.server=%ADMIN_URL%
if NOT "%LOG4J_CONFIG_FILE%"=="" (
set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%
set JAVA_PROPERTIES=%JAVA_PROPERTIES% %CLUSTER_PROPERTIES%
set JAVA_DEBUG=
if "%debugFlag%"=="true" (
set JAVA_DEBUG=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n -Djava.compiler=NONE
set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole...
) else (
set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da
if NOT exist %JAVA_HOME%\lib (
echo The JRE was not found in directory %JAVA_HOME%. ^(JAVA_HOME^)
echo Please edit your environment and set the JAVA_HOME
echo variable to point to the root directory of your Java installation.
popd
pause
GOTO :EOF
if "%DERBY_FLAG%"=="true" (
set DATABASE_CLASSPATH=%DERBY_CLASSPATH%
) else (
set DATABASE_CLASSPATH=%DERBY_CLIENT_CLASSPATH%
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=%COMMON_COMPONENTS_HOME%\modules\oracle.jrf_11.1.1\jrf.jar;%POST_CLASSPATH%
) else (
set POST_CLASSPATH=%COMMON_COMPONENTS_HOME%\modules\oracle.jrf_11.1.1\jrf.jar
if NOT "%PRE_CLASSPATH%"=="" (
set PRE_CLASSPATH=%COMMON_COMPONENTS_HOME%\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;%PRE_CLASSPATH%
) else (
set PRE_CLASSPATH=%COMMON_COMPONENTS_HOME%\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar
if "%PORTLET_ORACLE_HOME%"=="" (
set POST_CLASSPATH=%WC_ORACLE_HOME%\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;%POST_CLASSPATH%
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=C:\Oracle\Middleware_11.1.1.4\jdeveloper\webcenter\modules\wcps_11.1.1.4.0\wcps-connection-mbeans.jar;%POST_CLASSPATH%
) else (
set POST_CLASSPATH=C:\Oracle\Middleware_11.1.1.4\jdeveloper\webcenter\modules\wcps_11.1.1.4.0\wcps-connection-mbeans.jar
set POST_CLASSPATH=%PORTLET_ORACLE_HOME%\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;%POST_CLASSPATH%
set POST_CLASSPATH=%DOMAIN_HOME%\wcps-lib\derby-10.6.1.0.jar;%DOMAIN_HOME%\wcps-lib\derbytools-10.6.1.0.jar;%POST_CLASSPATH%
if NOT "%DATABASE_CLASSPATH%"=="" (
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=%POST_CLASSPATH%;%DATABASE_CLASSPATH%
) else (
set POST_CLASSPATH=%DATABASE_CLASSPATH%
if NOT "%ARDIR%"=="" (
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=%POST_CLASSPATH%;%ARDIR%\xqrl.jar
) else (
set POST_CLASSPATH=%ARDIR%\xqrl.jar
@REM PROFILING SUPPORT
set JAVA_PROFILE=
set SERVER_CLASS=weblogic.Server
set JAVA_PROPERTIES=%JAVA_PROPERTIES% %WLP_JAVA_PROPERTIES%
set JAVA_OPTIONS=%JAVA_OPTIONS% %JAVA_PROPERTIES% -Dwlw.iterativeDev=%iterativeDevFlag% -Dwlw.testConsole=%testConsoleFlag% -Dwlw.logErrorsToConsole=%logErrorsToConsoleFlag%
if "%PRODUCTION_MODE%"=="true" (
set JAVA_OPTIONS= -Dweblogic.ProductionModeEnabled=true %JAVA_OPTIONS%
@REM -- Setup properties so that we can save stdout and stderr to files
if NOT "%WLS_STDOUT_LOG%"=="" (
echo Logging WLS stdout to %WLS_STDOUT_LOG%
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stdout=%WLS_STDOUT_LOG%
if NOT "%WLS_STDERR_LOG%"=="" (
echo Logging WLS stderr to %WLS_STDERR_LOG%
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stderr=%WLS_STDERR_LOG%
@REM ADD EXTENSIONS TO CLASSPATHS
@REM set EXT_PRE_CLASSPATH=C:\jarlar\hibernate-3.3.2\antlr-2.7.6.jar;C:\jarlar\hibernate-3.3.2\commons-collections-3.1.jar;C:\jarlar\hibernate-3.3.2\dom4j-1.6.1.jar;C:\jarlar\hibernate-3.3.2\hibernate3.jar;C:\jarlar\hibernate-3.3.2\javassist-3.9.0.GA.jar;C:\jarlar\hibernate-3.3.2\jta-1.1.jar;C:\jarlar\hibernate-3.3.2\slf4j-api-1.5.11.jar;C:\jarlar\hibernate-3.3.2\slf4j-nop-1.5.11.jar;C:\jarlar\hibernate-3.3.2\bytecode\cglib\cglib-2.2.jar;C:\Oracle\Middleware_11.1.1.4\modules\ejb3-persistence-3.3.1.jar;hibernate-validator-4.1.0.Final.jar;
if NOT "%EXT_PRE_CLASSPATH%"=="" (
if NOT "%PRE_CLASSPATH%"=="" (
set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%PRE_CLASSPATH%
) else (
set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%
if NOT "%EXT_POST_CLASSPATH%"=="" (
if NOT "%POST_CLASSPATH%"=="" (
set POST_CLASSPATH=%POST_CLASSPATH%;%EXT_POST_CLASSPATH%
) else (
set POST_CLASSPATH=%EXT_POST_CLASSPATH%
if NOT "%WEBLOGIC_EXTENSION_DIRS%"=="" (
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.ext.dirs=%WEBLOGIC_EXTENSION_DIRS%
set JAVA_OPTIONS=%JAVA_OPTIONS%
@REM SET THE CLASSPATH
if NOT "%WLP_POST_CLASSPATH%"=="" (
if NOT "%CLASSPATH%"=="" (
set CLASSPATH=%WLP_POST_CLASSPATH%;%CLASSPATH%
) else (
set CLASSPATH=%WLP_POST_CLASSPATH%
if NOT "%POST_CLASSPATH%"=="" (
if NOT "%CLASSPATH%"=="" (
set CLASSPATH=%POST_CLASSPATH%;%CLASSPATH%
) else (
set CLASSPATH=%POST_CLASSPATH%
if NOT "%WEBLOGIC_CLASSPATH%"=="" (
if NOT "%CLASSPATH%"=="" (
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%
) else (
set CLASSPATH=%WEBLOGIC_CLASSPATH%
if NOT "%PRE_CLASSPATH%"=="" (
set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%
if NOT "%JAVA_VENDOR%"=="BEA" (
set JAVA_VM=%JAVA_VM% %JAVA_DEBUG% %JAVA_PROFILE%
) else (
set JAVA_VM=%JAVA_VM% %JAVA_DEBUG% %JAVA_PROFILE%
startWebLogic.cmd
@ECHO OFF
@REM WARNING: This file is created by the Configuration Wizard.
@REM Any changes to this script may be lost when adding extensions to this configuration.
SETLOCAL
@REM --- Start Functions ---
@REM set JAVA_OPTIONS=-javaagent:C:\jarlar\jrebel\jrebel.jar %JAVA_OPTIONS%
@REM set CLASS_CACHE=false
GOTO :ENDFUNCTIONS
:stopAll
@REM We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
if NOT "X%ALREADY_STOPPED%"=="X" (
GOTO :EOF
@REM STOP DERBY (only if we started it)
if "%DERBY_FLAG%"=="true" (
echo Stopping Derby server...
call "%WL_HOME%\common\derby\bin\stopNetworkServer.cmd" >"%DOMAIN_HOME%\derbyShutdown.log" 2>&1
echo Derby server stopped.
set ALREADY_STOPPED=true
GOTO :EOF
:classCaching
echo Class caching enabled...
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlaunch.main.class=%SERVER_CLASS% -Dlaunch.class.path="%CLASSPATH%" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp %WL_HOME%\server\lib\pcl2.jar
set SERVER_CLASS=com.oracle.classloader.launch.Launcher
GOTO :EOF
:ENDFUNCTIONS
@REM --- End Functions ---
@REM *************************************************************************
@REM This script is used to start WebLogic Server for this domain.
@REM
@REM To create your own start script for your domain, you can initialize the
@REM environment by calling @USERDOMAINHOME\setDomainEnv.
@REM
@REM setDomainEnv initializes or calls commEnv to initialize the following variables:
@REM
@REM BEA_HOME - The BEA home directory of your WebLogic installation.
@REM JAVA_HOME - Location of the version of Java used to start WebLogic
@REM Server.
@REM JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
@REM PATH - JDK and WebLogic directories are added to system path.
@REM WEBLOGIC_CLASSPATH
@REM - Classpath needed to start WebLogic Server.
@REM PATCH_CLASSPATH - Classpath used for patches
@REM PATCH_LIBPATH - Library path used for patches
@REM PATCH_PATH - Path used for patches
@REM WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
@REM JAVA_VM - The java arg specifying the VM to run. (i.e.
@REM - server, -hotspot, etc.)
@REM USER_MEM_ARGS - The variable to override the standard memory arguments
@REM passed to java.
@REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
@REM DERBY_HOME - Derby home directory.
@REM DERBY_CLASSPATH
@REM - Classpath needed to start Derby.
@REM
@REM Other variables used in this script include:
@REM SERVER_NAME - Name of the weblogic server.
@REM JAVA_OPTIONS - Java command-line options for running the server. (These
@REM will be tagged on to the end of the JAVA_VM and
@REM MEM_ARGS)
@REM CLASS_CACHE - Enable class caching of system classpath.
@REM
@REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
@REM (http://download.oracle.com/docs/cd/E17904_01/web.1111/e13708/overview.htm).
@REM *************************************************************************
@REM Call setDomainEnv here.
set DOMAIN_HOME=C:\Users\Dijitaluser\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain
for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
set SAVE_CLASSPATH=%CLASSPATH%
@REM Start Derby
set DERBY_DEBUG_LEVEL=0
if "%DERBY_FLAG%"=="true" (
call "%WL_HOME%\common\derby\bin\startNetworkServer.cmd" >"%DOMAIN_HOME%\derby.log" 2>&1
set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS%
set SAVE_JAVA_OPTIONS=
set CLASSPATH=%SAVE_CLASSPATH%
set SAVE_CLASSPATH=
if "%PRODUCTION_MODE%"=="true" (
set WLS_DISPLAY_MODE=Production
) else (
set WLS_DISPLAY_MODE=Development
if NOT "%WLS_USER%"=="" (
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.username=%WLS_USER%
if NOT "%WLS_PW%"=="" (
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.password=%WLS_PW%
if NOT "%MEDREC_WEBLOGIC_CLASSPATH%"=="" (
if NOT "%CLASSPATH%"=="" (
set CLASSPATH=%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
) else (
set CLASSPATH=%MEDREC_WEBLOGIC_CLASSPATH%
echo .
echo .
echo JAVA Memory arguments: %MEM_ARGS%
echo .
echo WLS Start Mode=%WLS_DISPLAY_MODE%
echo .
echo CLASSPATH=%CLASSPATH%
echo .
echo PATH=%PATH%
echo .
echo ***************************************************
echo * To start WebLogic Server, use a username and *
echo * password assigned to an admin-level user. For *
echo * server administration, use the WebLogic Server *
echo * console at http:\\hostname:port\console *
echo ***************************************************
@REM CLASS CACHING
if "%CLASS_CACHE%"=="true" (
CALL :classCaching
@REM START WEBLOGIC
echo starting weblogic with Java version:
%JAVA_HOME%\bin\java %JAVA_VM% -version
if "%WLS_REDIRECT_LOG%"=="" (
echo Starting WLS with line:
echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
) else (
echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
CALL :stopAll
popd
@REM Exit this script only if we have been told to exit.
if "%doExitFlag%"=="true" (
exit
ENDLOCAL
Edited by: webyildirim on 11.Ara.2012 02:38 -
Error authorization worklist using java
Hello everyone.
I have been trying to authorization the worklist of jstein via java. I was reading another thread and I got this code: (I´m using SOA Suite 10.1.3.1.0)
try {
IWorkflowServiceClient wfSvcClient =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
IWorkflowContext ctx =
querySvc.authenticate("jstein", "welcome1", "jazn.com", null); //Error!
//querySvc.authenticate("jstein", "welcome1", null, null); //Error!
catch (WorkflowException e) {
System.out.println("Caught workflow exception: " + e.getMessage());
Libraries:
bpm-infra.jar
bpm-services.jar
jazncore.jar
oc4jclient.jar
orabpel-common.jar
orabpel-thirdparty.jar
orabpel.jar
orasaaj.jar
soap.jar
wsclient_extended.jar
xml.jar
xmlparserv2.jar
.../bpel/system/services/schema
.../bpel/system/services/config
I have received a following error:
29.11.2007 19:55:43 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
oracle.oc4j.rmi.OracleRemoteException: Unable to instantiate proxy object: javax/ejb/EJBException
at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:989)
at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly(RMIProtocol.java:402)
at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter(RMIProtocol.java:471)
at com.evermind.server.rmi.RMIProtocol.readObject(RMIProtocol.java:80)
at com.evermind.server.rmi.RMIProtocol.readValue(RMIProtocol.java:161)
at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:841)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Nested exception is:
java.lang.NoClassDefFoundError: javax/ejb/EJBException
at com.evermind.server.ejb.StatelessSessionObjectInfo.createRemoteInvocationHandler(StatelessSessionObjectInfo.java:26)
at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:984)
at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly(RMIProtocol.java:402)
at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter(RMIProtocol.java:471)
at com.evermind.server.rmi.RMIProtocol.readObject(RMIProtocol.java:80)
at com.evermind.server.rmi.RMIProtocol.readValue(RMIProtocol.java:161)
at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:841)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
log4j:WARN No appenders could be found for logger (collaxa.cube.services).
log4j:WARN Please initialize the log4j system properly.
<2007-11-29 19:55:44,169> <ERROR> <oracle.bpel.services.workflow> <::> Unable to instantiate proxy object: javax/ejb/EJBException; nested exception is:
java.lang.NoClassDefFoundError: javax/ejb/EJBException
oracle.oc4j.rmi.OracleRemoteException: Unable to instantiate proxy object: javax/ejb/EJBException
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at __Proxy0.create(Unknown Source)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
at ru.timacad.Class1.main(Class1.java:26)
Nested exception is:
java.lang.NoClassDefFoundError: javax/ejb/EJBException
at com.evermind.server.ejb.StatelessSessionObjectInfo.createRemoteInvocationHandler(StatelessSessionObjectInfo.java:26)
at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:984)
at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly(RMIProtocol.java:402)
at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter(RMIProtocol.java:471)
at com.evermind.server.rmi.RMIProtocol.readObject(RMIProtocol.java:80)
at com.evermind.server.rmi.RMIProtocol.readValue(RMIProtocol.java:161)
at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:841)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
<::> ORABPEL-30509
<::>
<::> Error in invoking task query service.
<::> A client side error occured in invoking the task query service.
<::> Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
<::>
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:118)
<::> at ru.timacad.Class1.main(Class1.java:26)
<::> Caused by: oracle.oc4j.rmi.OracleRemoteException: Unable to instantiate proxy object: javax/ejb/EJBException; nested exception is:
<::> java.lang.NoClassDefFoundError: javax/ejb/EJBException
<::> at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
<::> at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
<::> at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
<::> at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
<::> at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
<::> at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
<::> at __Proxy0.create(Unknown Source)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
<::> ... 1 more
<::> Caused by: java.lang.NoClassDefFoundError: javax/ejb/EJBException
<::> at com.evermind.server.ejb.StatelessSessionObjectInfo.createRemoteInvocationHandler(StatelessSessionObjectInfo.java:26)
<::> at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:984)
<::> at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
<::> at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
<::> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
<::> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
<::> at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly(RMIProtocol.java:402)
<::> at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter(RMIProtocol.java:471)
<::> at com.evermind.server.rmi.RMIProtocol.readObject(RMIProtocol.java:80)
<::> at com.evermind.server.rmi.RMIProtocol.readValue(RMIProtocol.java:161)
<::> at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:841)
<::> at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
<::> at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
<::> at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
<::> at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
<::> at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
<::> at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
<::> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
<::> at java.lang.Thread.run(Thread.java:595)
<2007-11-29 19:55:44,169> <ERROR> <oracle.bpel.services.workflow> <::> Unable to instantiate proxy object: javax/ejb/EJBException; nested exception is:
java.lang.NoClassDefFoundError: javax/ejb/EJBException
oracle.oc4j.rmi.OracleRemoteException: Unable to instantiate proxy object: javax/ejb/EJBException
at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
at __Proxy0.create(Unknown Source)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
at ru.timacad.Class1.main(Class1.java:26)
Nested exception is:
java.lang.NoClassDefFoundError: javax/ejb/EJBException
at com.evermind.server.ejb.StatelessSessionObjectInfo.createRemoteInvocationHandler(StatelessSessionObjectInfo.java:26)
at com.evermind.server.rmi.RMIClientConnection.getBoundObject(RMIClientConnection.java:984)
at com.evermind.server.rmi.RMIClientInputStream.resolveObject(RMIClientInputStream.java:26)
at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly(RMIProtocol.java:402)
at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter(RMIProtocol.java:471)
at com.evermind.server.rmi.RMIProtocol.readObject(RMIProtocol.java:80)
at com.evermind.server.rmi.RMIProtocol.readValue(RMIProtocol.java:161)
at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:841)
at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Caught workflow exception: Error in invoking task query service.
A client side error occured in invoking the task query service.
Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
Thanks
stan1slavHi,
I just encountered error like this(RMI related error).
I'm using client API in a stand alone application to connect to BPEL server,using Jdev as IDE,and Oracle BPEL Process manager 10.1.3.1,and connect as REMOTE_CLIENT.
But I'm not sure if my wf_client_config.xml file is located in correct place or not,
May I ask you where I should put this file in my project file structure in JDeveloper to be in classpath?
In fact,I'm not sure about the folder or directory the file should be sit in JDeveloper,I put the j2ee_1.3.01.jar in classpath using add library and the class is compiled correctly,but when I run the program I get this error:
E:\Tools\JDeveloper10132\jdk\bin\javaw.exe -client -classpath E:\oracle\product\10.1.3.1\OraBPEL_ProcessManager\bpel\samples\demos\VacationRequest\OriginalVacationDemo\Test\output;E:\Tools\JDeveloper10132\j2ee\home\lib\ojsp.jar;E:\Tools\JDeveloper10132\j2ee\home\jsp\lib\taglib\ojsputil.jar;E:\Tools\JDeveloper10132\j2ee\home\oc4j.jar;E:\Tools\JDeveloper10132\j2ee\home\lib\oc4j-internal.jar;E:\Tools\JDeveloper10132\j2ee\home\lib\servlet.jar;E:\Tools\JDeveloper10132\jdev\lib\ojc.jar;E:\Lib\Jdev-lib\admin_client.jar;E:\Lib\Jdev-lib\bpm-infra.jar;E:\Lib\Jdev-lib\bpm-services.jar;E:\Lib\Jdev-lib\dms.jar;E:\Lib\Jdev-lib\j2ee_1.3.01.jar;E:\Lib\Jdev-lib\javax77.jar;E:\Lib\Jdev-lib\jazncore.jar;E:\Lib\Jdev-lib\jmxri.jar;E:\Lib\Jdev-lib\oc4j.jar;E:\Lib\Jdev-lib\oc4jclient.jar;E:\Lib\Jdev-lib\orabpel-ant.jar;E:\Lib\Jdev-lib\orabpel-boot.jar;E:\Lib\Jdev-lib\orabpel-common.jar;E:\Lib\Jdev-lib\orabpel-exts.jar;E:\Lib\Jdev-lib\orabpel-thirdparty.jar;E:\Lib\Jdev-lib\orabpel.jar;E:\Lib\Jdev-lib\oracle_http_client.jar;E:\Lib\Jdev-lib\orasaaj.jar;E:\Lib\Jdev-lib\rmic.jar;E:\Lib\Jdev-lib\soap.jar;E:\Lib\Jdev-lib\wsclient_extended.jar;E:\Lib\Jdev-lib\xml.jar;E:\Lib\Jdev-lib\xmlparserv2.jar -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|127.0.0.1|salehi-nas -Dhttps.proxyHost=proxy -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=localhost|127.0.0.1|salehi-nas com.irisaco.exir.bp.updateProcessVariable
log4j:WARN No appenders could be found for logger (collaxa.cube.services).
log4j:WARN Please initialize the log4j system properly.
<2008-03-01 15:13:50,004> <ERROR> <oracle.bpel.services.workflow> <::>
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.common.util.AbstractJaxbUtil.unmarshal(AbstractJaxbUtil.java:125)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:60)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getBooleanProperty(ConfigurationManager.java:170)
at oracle.bpel.services.common.exception.ServicesException.<clinit>(ServicesException.java:61)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:71)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> ORABPEL-30028
<::>
<::> Invalid configuration file wf_config.xml
<::> The configuration file wf_config.xml not be read.
<::> Make sure that the configuration file wf_config.xml is available and is a valid XML document. Contact oracle support if error is not fixable.
<::>
<::> at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:79)
<::> at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
<::> at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
<::> at oracle.bpel.services.config.ConfigurationManager.getBooleanProperty(ConfigurationManager.java:170)
<::> at oracle.bpel.services.common.exception.ServicesException.<clinit>(ServicesException.java:61)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:71)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
<::> at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
<::> at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
<::> at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> Caused by: java.lang.NullPointerException
<::> at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
<::> at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
<::> at oracle.bpel.services.common.util.AbstractJaxbUtil.unmarshal(AbstractJaxbUtil.java:125)
<::> at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:60)
<::> ... 9 more
<2008-03-01 15:13:50,020> <ERROR> <oracle.bpel.services.workflow> <::>
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.common.util.AbstractJaxbUtil.unmarshal(AbstractJaxbUtil.java:125)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:60)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getBooleanProperty(ConfigurationManager.java:170)
at oracle.bpel.services.common.exception.ServicesException.<clinit>(ServicesException.java:61)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:71)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> ORABPEL-30509
<::>
<::> Error in invoking task query service.
<::> A client side error occured in invoking the task query service.
<::> Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
<::>
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:71)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
<::> at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
<::> at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
<::> at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> Caused by: java.lang.NullPointerException
<::> at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
<::> at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:34)
<::> ... 4 more
<2008-03-01 15:13:50,020> <ERROR> <oracle.bpel.services.workflow> <::>
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:34)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> ORABPEL-30509
<::>
<::> Error in invoking task query service.
<::> A client side error occured in invoking the task query service.
<::> Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
<::>
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:71)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
<::> at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
<::> at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
<::> at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
<::> Caused by: java.lang.NullPointerException
<::> at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
<::> at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:34)
<::> ... 4 more
<2008-03-01 15:13:50,439> <ERROR> <oracle.bpel.services.workflow> <::>
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.populateInitialContext(TaskQueryServiceRemoteClient.java:34)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.<clinit>(TaskQueryServiceRemoteClient.java:23)
at oracle.bpel.services.workflow.client.RemoteWorkflowServiceClient.getTaskQueryService(RemoteWorkflowServiceClient.java:75)
at com.irisaco.exir.bp.updateProcessVariable.getWFMClient(updateProcessVariable.java:109)
at com.irisaco.exir.bp.updateProcessVariable.main(updateProcessVariable.java:202)
Caught workflow exception: null
Process exited with exit code 0.
Please help;
Any help would be appreciated! -
RWB error: javax.ejb.CreateException XIRWBUSER cannot log
Hi,
When I try to monitor the messages processed by my integration server (RWB interface->Message Monitor->is.[instance].[server]), an authorization error occured:
"Unknown error: javax.ejb.CreateException: You cannot log on to system [SID] with user XIRWBUSER"
I ve read the following post but I didn't find any answer:
Demo application: "You cannot log on to system .... with user XIRWBUSER
My XIRWBUSER has several roles:
SAP_SLD_CONFIGURATOR
SAP_XI_RWB_SERV_USER
SAP_XI_RWB_SERV_USER_MAIN
Even if I give him the sap_all and sap_new profiles, I still have the same error.
Regards,
Yann2 Remarks:
I can monitor messages on the af.[SID].[serveur] (adapter framework?)
If I try to self test the runtime workbench component (component), all lights are green! Moreover, "aii properties" seem to be fine.
Plz help me...
Regards,
Yann -
JAAS: How can I access the JAAS subject in an EJB?
Hello,
I try to understand the JAAS integration in J2EE 1.3.
I know:
J2EE defines a role-based container managed authorization for the web and ejb container. Roles, users and their relationship are defined in the realm.
JAAS has a more sophisticated policy-based authorisation model. Since J2EE1.3 I can define a realm using JAAS having the role-based authorization of the container managed security.
My question:
How can I access the JAAS subject object in an EJB or servlet to use the policy-based authorization?
Thank you for your answers
PeterMay be I should redefine my question:
If I use JAAS as J2EE-Realm, how can I receive the subject?
All JAAS-Tutorials contains code fragments like
LoginContext lc = new LoginContext("entryFoo");
try {
// authenticate the Subject
lc.login();
System.out.println("authentication successful");
// get the authenticated Subject
Subject subject = lc.getSubject();But if I use JAAS as J2EE-Realm the container creates the LoginContext.
Whom can I ask for the subject now?
There is no such method implemented in the EJBContext, the HttpServlet or HttpServletRequest!
Peter -
Authorization control in Web Dynpro
Dear experts,
I have a question about setting authorization in Web Dynpro. For example, how can I control if a button can be pressed or what kinds of data should be displayed based on user role in UME.
Moreover, if I have security settings declared in EJB (ejb-jar.xml). Then I use this EJB in Web Dynpro. Can the UME role be passed to the EJB, i.e. the security setting in EJB still valid? Thanks.
Best regards,
KenHi
I have created a webdynpro component that interacts with SAP. I have done the authorization control through SLD. Well for individual elements of a webdynpro application i dont know if it is possible to restrict through authorization control.Maybe its something that needs to be worked upon.
thanks
ravi -
Hi everyone,
I have 400 organization and 400 admins of these organizations.
I want to create authorization policy about 400 organizations and 400 admin (create user, search user etc.)
How can I create quickly these 400 authorization policy ?
Do I have to create manually these 400 authorization policy ?
or
Can I create automatically create by using XML or API ?
thanks.
Regards.Looks like Oracle did put a Service for it, but did not mention it in the docs.
<bean id="oracle.iam.authzpolicydefn.api.PolicyDefinitionServiceDelegate" class="oracle.iam.authzpolicydefn.api.PolicyDefinitionServiceDelegate" scope="singleton">
<property name="policyDefinitionService" ref="PolicyDefinitionServiceEJB"/>
</bean>
<jee:jndi-lookup id="PolicyDefinitionServiceEJB" jndi-name="ejb.stateless.PolicyDefinitionService#oracle.iam.authzpolicydefn.api.PolicyDefinitionServiceRemote" proxy-interface="oracle.iam.authzpolicydefn.api.PolicyDefinitionServiceExtended" lookup-on-startup="false" cache="false"/>
<bean id="oracle.iam.authzpolicydefn.api.PolicyDefinitionService" class="oracle.iam.authzpolicydefn.impl.PolicyDefinitionServiceImpl" scope="singleton"/>So I will suggest use the PolicyDefinitionService.
-Bikash -
Authorization check when creating shipment document
Dear Experts,
I have a shipment document type that is shared for all shipping point. I found that there are no shipping point checking when we select outbound deliveries. Can we add shipping point authorization check when we select delivery document?
Please advice.
Thanks.If you want to use frameworks, I think the right model would be to place the methods in EJBs and then use security constraints and user roles and the like.
OTOH, Spring probably has something very similar without requiring EJBs. It will require the beans come from the Spring container however and not the JSF managed bean container. -
Hi,
I try to deploy an ejb in oracle 8.1.7.
All the steps of the deployment work fine until the step :
"Generating EJBHome and EJBObject on the server..."
At this step, it returns the following error messages :
Compilation errors in oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:ORA-29535: source requires recompila
tion
javax/ejb/EJBObjectOperations: Authorization error for referenced class org/xml/sax/XMLReader.
javax/ejb/EJBObjectOperations: Authorization error for referenced class org/xml/sax/XMLReader.
javax/ejb/EJBObjectOperations: Authorization error for referenced class org/apache/xalan/xslt/XSLTInputSource.
javax/ejb/EJBObjectOperations: Authorization error for referenced class org/apache/xalan/xslt/XSLTInputSource.
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:112: Class org.xml.sax.XMLReader not found.
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:122: Class org.xml.sax.XMLReader not found.
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:161: Variable __returnValue may not have been initialized.
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:218: Class org.apache.xalan.xslt.XSLTInputSource not found
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:226: Class org.apache.xalan.xslt.XSLTInputSource not found
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:265: Variable __returnValue may not have been initialized.
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:270: Class org.apache.xalan.xslt.XSLTInputSource not found
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:278: Class org.apache.xalan.xslt.XSLTInputSource not found
oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:317: Variable __returnValue may not have been initialized.
Info: 13 errors
Even if the concerned java classes 'org/xml/sax/XMLReader' and 'org/apache/xalan/xslt/XSLTInputSource' are stored in the database and have the 'valid' status.
Do I need to specify some security rules with the dbms_java package ?
Where could this problem come from ?
Thanks in advance
Bye
[email protected]Hi,
Y have the same problem with Jdeveloper.
May be it`s will help You
1. IDE compilation process can`t check some problem whith EJB, but this errrors checking on deployment process. Check Your remote interface independently.
2. If you use Oracle8i - connect to the server with admin options(login and password) or give for you user this privilege. Try make connect with name: SYS and password: change_on_install.
Sorry for bad English
null
Maybe you are looking for
-
I'm getting error code A12E1 when trying to install the Creative Cloud app for photographers. Can anyone help me get installed?
-
HTML DB Installation on HP-UX 11.11
Hi, I'm receiving attemp to obfuscate sys password when installing HTMLDB on HP-UX 11.11.
-
Saving Song Data in iTunes - .XML
Hey guys, before I reinstalled, I backed up my iTunes Library to an XML file. And, on the reinstall, I made my media hard drive m:/ instead of d:/ like it was previously. So, in the XML file all the references are to where the songs were stored on th
-
Bbm group alert icon not working
Hi everybody Since couple days I don't receive any BBM group message alert icon on homepage of my blackberry Pearl. As I am new on blackberry I don't know how to solve it. I've searched the options but couldn't solve it, what elSe can I do? Thanks ev
-
Adding to JAX-WS 2.1 response object's header
Hello We are using JAX-WS 2.1. We have a requirement to have few fields such as userId to be part of SOAP response's header. How to have these added in the header. Using @WebResult(header=true) gets the whole result object into the header which I don