CDI not working in Weblogic 12c Embedded EJB Container?
Hi,
we are trying to use embedded ejb container from weblogic 12c (12.1.2.0) for our junit tests.
As our application is running in weblogic 12c, we would like to run our tests in same environment.
But we encountered two problems, which brings me to the conclusion that CDI is not working correctly in embedded ejb container.
1. CDI Interceptor are not working
2. CDI Objects (@Inject) are null
I can provide an error message, which I think is thrown, when container tries to access the interceptor, because if I delete the interceptors the error message gets no longer thrown:
Caused by: java.lang.UnsupportedOperationException: authenticatedLookup is unavailable for BasicNamingNode types
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:463)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:274)
at weblogic.jndi.internal.ServerNamingNode_12120_WLStub.authenticatedLookup(UnknownSource)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:483)
We just want to know, if CDI is not working in embedded ejb container, so we can go ahead and look for another solution for our junit tests.
Stefan
Hi There,
If you have access to Oracle Support Portal, please go through below Knowledge Articles which can provide more information on your requirement:
Sample Application Using Timer API (CommonJ) to configure Timer Based tasks in Oracle WebLogic Cluster 10.3.X Cluster (Doc ID 1614886.1)
Clustered EJB Timer - The minimum time for recurring execution of a timer (Doc ID 1931091.1)
Let us know if it helps.
Cheers,
Naveen
Similar Messages
-
Why is scrolling not working with multiple youtube embeds layed out in a stack on one page?
Hi ,
This is a sort of performance issue , because your program takes more than the max time set for the program to execute in foreground.
There are many stuff in program which will hamper your performance.
I will list down a few
1. SELECT *
FROM konp
INTO CORRESPONDING FIELDS OF TABLE konp_itab
FOR ALL ENTRIES IN a363_itab
WHERE knumh EQ a363_itab-knumh
in this statement you are using for all entries a363_itab , but before this statement you are not checking if the table has any entry or not , please do remember that for all entries has this characterstic , that if you internal table does not contain any record , then all the records are selected from the database table. So in this case if you table a363_itab is empty , so what you want is no data must be seelcted from table konp , but what will happen is all the records in KONP will be seelcted.
2. While retreiving data you are using seelct * even though you do not require all the fields , an example is
<b>SELECT *
FROM mkpf
INTO CORRESPONDING FIELDS OF TABLE mkpf_itab
FOR ALL ENTRIES IN mseg_itab
WHERE mblnr EQ mseg_itab-mblnr.</b>
in this your internal table contains only 2 fields
<b>mblnr LIKE mkpf-mblnr, "Number of Material Document
bldat LIKE mkpf-bldat, "Document Date in Document</b> , but to get these 2 fields you are selecting all the fields of the table.
3. In select you are using into corresponding fields of table , it is not a good practice., so please avoidd it.
Please understand that you must try to reduce the access to your database tables and try to keep it minimal , because this same thing may happen becasue data in DEV is very less compared to the volume of data in production , so a program working in DEV will take much more time in PRD if not written properly and may result in timeouts , as in your case.
Please try to make chanegs to the prorgam and see if it works.
In case you have more queries , please do revert back.
Regards
Arun
*Reward points if replay is helpful -
InvokeODI webservice is not working from Weblogic Server 11gR1
Hi,
We have deployed axis2 (1.2) with invokeodi service to weblogic server 10.3.1.
We have a BPEL process (using Jdeveloper/SOA 11gR1) which is invoking the invokeOdi webservice to
invoke a scenario. The invoke is failed with the following fault.
"Unable to access the following endpoint(s): http://www.oracle.com/"
Complete Stack Trace:
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} parts: {{ summary=oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): http://www.oracle.com/ ,detail=Unable to access the following endpoint(s): http://www.oracle.com/ ,code=200 } at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:301) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:935) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.handleNormalInvoke(BPELInvokeWMP.java:440) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:182) at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:140) at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2675) at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2558) at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1256) at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:188) at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:285) at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4607) at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:828) at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:610) at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:354) at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37) at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54) at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy181.handleInvoke(Unknown Source) at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.java:73) at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:34) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:139) at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
FYI, this is working fine with OC4J 10.1.3.4.
Any help is greatly appreciated.
Thanks in advance.
Thanks & Regards,
Rama Krishna. P
Edited by: user4477725 on Aug 19, 2009 12:17 PM
Edited by: user4477725 on Aug 19, 2009 12:39 PMI have developed one web application using Autocompleteextender ajax control and used webservice to get the values.
It is working in local system where i can enter some text in textbox and it will show related word sear list in dropdown.
But after hosting in production server, some time like 1 hr or 2 hr it will work. Then it will stop working means if i type test in text box i will not get the list related to entered text.
Where exactly the problem. Even i have added webreference of that service. Then also sometime it will work and after some time it will not work
How to fix this issue. Please suggest me.
Thanks in advance. -
Navigation not working in Weblogic Server but working from JDeveloper.
Hi
I created a simple application with some page navigations (some declarative and some dynamic using Managed Bean).
The navigation works fine when I run from JDeveloper. (Local System)
So I deployed the application to the WebLogic server (Local system with a domain configured with ADF.)
The pages are getting rendered correctly, bu on button clicks, the navigation is not happening from any of the pages.
Could I have missed something or is there a way to track what the problem might be?
JDev : 11.1.1.3
Web Logic Server : 11gR1 (1.3) which comes with JDeveloper
Thanks for any help.
SameerHi John
I am not using task flows. I just have some jspx pages defined in the unbounded task flow adfc-config.xml connected with navigation.
I run from JDEveloper by right clicking on the jspx files.
The URL when run from jdeveloper is as follows.
http://127.0.0.1:7101/SessionsPOC-ViewController-context-root/faces/MainPage
From Weblogic server I am using the link given in the Testing tab of the weblogic administration console.
The URL is as follows.
http://10.9.73.103:7001/SessionsPOC-ViewController-context-root (default)
http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/MainPage.jspx
Actually, the URL given in the weblogic testing tab is not runnable. I am changing the link as follows to be able to run it.
http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/MainPage.jspx
I have defined the MainPage.jspx in the web.xml 's Welcome page. But it is not taking it I guess.
Also, I am able to run the other page by giving the following url. But the navigation buttons are not working in that page also.
http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/SecondPage.jspx
Thanks
Sameer -
Debugging not working in weblogic portal
When I am running my portal app built on weblogic portal 8.1, its throwing an error cannot start debugger. App might not be deployed properly.
I have redeployed 2-3 times, and its running also fine, but debugger is not working.
when the app domain starts few exceptions are thrown like,
primary key voilated,
jms connection pool could not connect
Can this be the reason?well, from a debugging perspective, the application errors should not prevent a debugger from attaching to the VM. Can you be more specific about when you say the debugger is not starting?
Thanks
Mike -
ListenerAdmin not working in WebLogic
I seem to be having the same issue that folks are having within the Glassfish server. I've configured the APEX listener on WebLogic 11g (10.3.5). Followed the instructions to create the adminlistener and managerlistener and their respective groups: Admin and Manager and assigned the users apppropriately (followed the installation instructions). I've used listenerConfig to configure the listener but when trying to access listenerAdmin URL I get the dreaded 403 error. Any help would be appreciated.
Thanks,
JackHi Jack,
could you post some additional information of what exactly you did and which version of APEX Listener you use?
And did you try to reset your browsers authentication cache? As I've learned when investigating similar problems (also discussed here) both listenerStatus and listenerAdmin use the same realm for basic authentication ("APEX"). If your browser stores your authentication information for one of these realms (which it usually does) and you try to enter the other part, it resends these information, which can lead to a 403 (as discussed in Link http://localhost:8080/apex/listenerConfigure not working).
Possibly this caching is even instance-independent (as the realm doesn't include any host/instance/... information), so if you've entered different credentials for another instance, this could be an explanation as well. Could you try to erase any entry concerning APEX Listener from your browser cache? Or try a different browser you ususally don't use, perhaps even a portable version of Firefox or something like that, where you can be sure you have a fresh start and can safely abandon everything once you've done?
The latter case would only be relevant if you aren't even asked before you get the 403. So the question is: Can you enter the credentials at all, or do you get the 403 right away?
Another possibility: Did you try with a simple password (without any special character)? And did you restart your WLS after adding those users? Possibly these changes aren't effective immediately.
-Udo -
Sound not working on Youtube video embedded in webpage used in web clip.
I created a web clip and installed it using ipcu. On the web page I've created that I'm using for the web clip, there is an embedded Youtube video. The sound for the video is not working. Why is the sound not working? It works in safari if go to Youtube.
IOS version 6.1
Model: MD511LL/AMy computer also recently downloaded soundflower? I didn't approve of this change
I'm not sure what that means, but if Soundflower really is installed, uninstall it according to the developer's instructions. Back up all data before making any changes. Reboot and test. -
jsp:include is not working on weblogic
I have a problem I write the following code
html>
<head>
<script LANGUAGE="javascript" SRC="js/tab.js"></script>
<LINK href="stylesheets/global.css" type=text/css rel=stylesheet>
<title>JobSpinner Status</title>
</head>
<body class="bodymargin" onload="setpage(1)">
<jsp:include flush="true" page="JobSpinnerTab.jsp"></jsp:include>
<form id="loginForm" action="/jobspinner/JobStatus.faces" method="post">
<input type="hidden" name="loginForm" value="loginForm" />
<nobr>
It is working fine on four to five PC we have checked .
But the problem is that it is not working on a particular weblogic Server 8.1 SP2 .
Can someone help me .
Regs
Amit VermaAre other JSP tags working on the page?
eg
Server info = <%= application.getServerInfo() %> <br>
Servlet engine version = <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
Java version = <%= System.getProperty("java.vm.version") %><br>
Java home = <%= System.getProperty("java.home") %><br>Your page might be being interpreted as HTML rather than passed through the JSP engine. -
JDBC stored procedure not working in Weblogic 12.1.3
Hi,
We are migrating from WLS 12.1.2 to 12.1.3.
We have a JDBC stored procedure which used to work correctly under 12.1.2. I understand that 12.1.2 uses ojdbc5/ojdbc6 jars (11.2.0.x). After migrating to 12.1.3, the stored procedure is not working.
We have narrowed it down to the different between 12.1.2 using ojdbc5/6 and 12.1.3 using ojdbc7 jars, though we do not understand what the difference here is.
Connection connection = getConnection();
CallableStatement callableStatement = connection.prepareCall("{call RECEIPT_LOG (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
callableStatement.registerOutParameter("PIO_RECEIPT_LOG_ID", java.sql.Types.INTEGER);
callableStatement.setLong("PIO_RECEIPT_LOG_ID", 0);
callableStatement.setString("PIO_DRAWER_NAME", request.getDrawerName());
callableStatement.setString("PIO_DRAWER_FIRST_NAME", request.getDrawerFirstName());
callableStatement.setString("PIO_DRAWER_OTHER_NAMES", "");
callableStatement.setString("PIO_DRAWER_STREET_NO", "");
callableStatement.setString("PIO_DRAWER_STREET", "");
callableStatement.setString("PIO_DRAWER_LOCALITY", "");
callableStatement.setLong("PIO_DRAWER_POSTCODE", 0);
callableStatement.setString("PI_PAYMENT_TYPE", request.getPiPaymentType());
callableStatement.setLong("PI_APPLICATION_ID", request.getApplicationId());
callableStatement.setString("PI_PRIMARY_ID", request.getPiPrimaryId());
callableStatement.setString("PI_SECONDARY_ID", request.getPiSecondaryId());
callableStatement.setDouble("PI_AMOUNT", request.getPiAmount());
callableStatement.setInt("PI_TAX_AMOUNT", 0);
callableStatement.setNull("PI_VPC_TXNRESPONSECODE", java.sql.Types.VARCHAR);
callableStatement.setInt("PI_VPC_TRANSACTIONNO", 0);
callableStatement.setString("PI_VPC_MESSAGE", "");
callableStatement.setString("PI_VPC_ACQRESPONSECODE", "");
callableStatement.setString("PI_VPC_RECEIPTNO", "");
callableStatement.setString("PI_VPC_BATCHNO", "");
callableStatement.setString("PI_VPC_CARD", "");
callableStatement.setString("PI_VPC_MERCHTXNREF", "");
callableStatement.setString("PI_VPC_MERCHANT", "");
callableStatement.setString("PI_VPC_ORDERINFO", "");
callableStatement.setInt("PI_VPC_AMOUNT", 0);
callableStatement.setString("PI_VPC_AUTHORIZEID", "");
callableStatement.registerOutParameter("PO_RECEIPT_NO", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_SOURCE_ID", java.sql.Types.INTEGER);
callableStatement.registerOutParameter("PO_PAYMENT_METHOD_TEXT", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_CREATE_COMMENT", java.sql.Types.VARCHAR);
callableStatement.registerOutParameter("PO_ERROR_MESSAGE", java.sql.Types.VARCHAR);
boolean isSuccessful = callableStatement.execute();
Long receiptLogId = callableStatement.getLong("PIO_RECEIPT_LOG_ID");
Here, when the callableStatement.execute() is fired, the isSuccessful is false and the output parameter receiptLogId is 0
Any help appreciated.
Regards,
RahulHi All,
We still haven't figured out what the problem is with JDBC when using ojdbc7.jar but, as an alternate solution we ported the code to Spring JDBC and got it working.
Regards,
Rahul -
Error when @Singleton in Glassfish v3 and weld. CDI not working for EJBs.
Hello,
I am getting the following error when deploying a web app with a SSB with the @Singleton annotation. If I use javax.ejb.Singleton I get the error. If I use @Stateless and @Singleton with javax.inject.Singleton, I don't.
I use Glassfish v3 with weld.
[#|2009-12-19T01:29:19.423+0100|SEVERE|glassfish|global|_ThreadID=16;_ThreadName=Thread-1;|The annotation symbol defined in super-class is not compatible with Session ejb ElaphusManager.
symbol: TYPE location: class com.cervatoh2.elaphus.ejb.ElaphusManagerBean
By the way,
what is the right way to install weld into glassfish? To make @Named work I had to treat Glassfish v3 as if it was Tomat:
<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
<resource-env-ref>
<description>Object factory for the CDI Bean Manager</description>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
</resource-env-ref>
And also add weld-servle.jar to /WEB-INF/lib
isn't Glassfish v3 supposed to have builtin weld support?
thanks for any directions,
IgnacioWell,
I think I have understood what the problem is, and maybe also a patch for it.
I have observed the exact same scenario as you guys.
I think the problem is exposed by the statement in the status.conf file:
rwConnStart message=All 1 wget requests did not return a valid vpnserver.conf
The contents of the vpnserver.conf file in your case is:
Which I also have observed. Now, I have just had a session, where one of my colleagues have a succesfull connection and I have a failed one. Now, his vpnserver.conf was:
version=1
msgtype=configuration
conn xxxxx_rw
presharedkey=xxxxxxxxxxxxxxxxxxx
rightsubnet=xxx.xxx.xxx.xxx/xx
remotelanip=xxx.xxx.xxx.xxx
dnsserver=xxx.xxx.xxx.xxx
domain=
which is somewhat different. Mine was like the failing one you had. This made me think. The client is supposed to download vpnserver.conf via HTTPS and save it. Sometimes this goes wrong, and I think it is the router software that gets confused.
It simply thinks you are trying to remote mgmt it and sends you the html to go to the welcome.html page. In my setup I have enabled HTTPS and disbaled Remote MGMT. So it should never ever think it is being remotely managed, but somehow it does that - doh!
Thus, either the SW on the router is confused/buggy and this causes it to give you a HTML respond instead of the contents of the vpnserver.conf file. Another explanation could be that the wget tool has a problem, when a vpnserver.conf file already exists and then it doesn ensure to force download the file correctly or something.
Nevertheless, I have two ways to solve this problem:
1. Rebooting the router has worked for me, but is of course not nice
2. Delete the local version of vpnserver.conf BEFORE you try to connect.
The 2nd solution has not yet been verified to work in a broader scale, but we are trying to verify it.
Please report if this helps you guys.
Thanks, Jacob -
Built-in wlst ant task does not work in weblogic 10.3.1
Hi,
We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
[echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
tmp/wlstTemp/packages'
[echo] [wlst] java.io.IOException: No such file or directory
[echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
[echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
[echo] [wlst] at java.io.File.createTempFile(File.java:1792)
[echo] [wlst] at java.io.File.createTempFile(File.java:1828)
[echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
[echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
[echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
<target name="init-taskdefs">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="ant-ext/ant-contrib.jar" />
</classpath>
</taskdef>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
<taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
</target>
<macrodef name="wlShutdownServer">
<attribute name="adminUser" default="${deploy.admin.username}" />
<attribute name="adminPassword" default="${deploy.admin.password}" />
<attribute name="adminUrl" default="${deploy.admin.url}" />
<attribute name="serverTarget" />
<sequential>
<trycatch property="server.error">
<try>
<wlst failonerror="true"
arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
<script>
adminUser=sys.argv[0]
adminPassword=sys.argv[1]
adminUrl=sys.argv[2]
serverTarget=sys.argv[3]
connect(adminUser,adminPassword,adminUrl)
target=getMBean("/Servers/"+serverTarget)
if target == None:
target=getMBean("/Clusters/"+serverTarget)
type="Cluster"
else:
type="Server"
print 'Shutting down '+serverTarget+'...'
shutdown(serverTarget,type,'true',15,force='true')
print serverTarget+' was shut down successfully.'
</script>
</wlst>
<!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
to start back up again. -->
<echo message="Deleting any lok files that have not been removed..." />
<delete failonerror="false">
<fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
</delete>
</try>
<catch>
<fail message="@{serverTarget} shutdown failed. ${server.error}" />
</catch>
<finally/>
</trycatch>
</sequential>
</macrodef>
Any help would be appreciated. Thanks!Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change. -
Dynamic Role -- Group Mapping not working in WebLogic 10
I have an installation I am migrating from 9.2 to 10. It uses Dynamic Role Mapping:
From my Weblogic.xml within the deployment:
<security-role-assignment>
<role-name>EELSSystemAdministrator</role-name>
<externally-defined/>
</security-role-assignment>I am using SPNEGO SSO, and it is working fine, it retrieves the principles from LDAP and adds them to the subject, so everything is fine there. I have defined the deployment constraint "EELSSystemAdministrator" as a Global Role, and then Added a condition "group" and set it to the LDAP Group (SMS EELSSystemAdministrator) which is one of the three principles being returned from LDAP.
When the Role mapper runs, it returns the following in the logs:
<SecurityRoleMap> <Accessed Subject: Id=urn:oasis:names:tc:xacml:2.0:subject:group, Value=[everyone,users, SMS EELSSystemAdministrator,SMS EELSReportAnalyst]>
<SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:string-is-in(SMS EELSSystemAdministrator ,[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]) -> false>
<SecurityRoleMap> <primary-rule evaluates to NotApplicable because of Condition>
<SecurityRoleMap> <urn:bea:xacml:2.0:entitlement:role:EELSSystemAdministrator:top, 1.0 evaluates to Deny>
<SecurityRoleMap> <XACML RoleMapper: accessing role EELSSystemAdministrator: DENIEDIn my 9.2 Installation that is working I get the following in the logs:
<SecurityRoleMap> <Accessed Subject: Id=urn:oasis:names:tc:xacml:2.0:subject:group, Value=[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]>
<SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:string-is-in(SMS EELSSystemAdministrator,[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]) -> true>
<SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:or(true) -> true>
<SecurityRoleMap> <primary-rule evaluates to Permit>
<SecurityRoleMap> <urn:bea:xacml:2.0:entitlement:role:EELSSystemAdministrator:type@E@Furl@G@M@Oapplication@EEELSWeb@[email protected]@O$@S@VDSTAMP@S@W@M@OcontextPath@E@UEELS@M@Ouri@E@U, 1.0 evaluates to Permit>
<SecurityRoleMap> <XACML RoleMapper: accessing role EELSSystemAdministrator: GRANTED> I am not sure why my 9.2 deployment lists the role type as a "url" (which points to the right deployment, and 10 lists it as the word "top". Either way, it is not authenticating to my global role based on the Group returned from LDAP.
I'm pretty much out of troubleshooting idea's, having compared every config file/log file etc to find descrepancies in my setup. Anyone have any suggestions, perhaps something that has to be setup differently in 10 then in 9.2?
Thanks in Advance,
JohnUpdate:
I checked a bunch of settings, and it seems to be working now, very odd. -
My file upload java application working fine in tomcat 7 but not working in weblogic 11
Hi All,
My file upload java application successfully run in tomcat 7 . But I could not run it in Weblogic 11. Getting following error message . Please help.
Please contact your administrator.org.springframework.beans.NullValueInNestedPathException: Invalid property 'fileData[0]' of bean class [com.techm.util.UploadItem]: Cannot access indexed value in property referenced in indexed property path 'fileData[0]': returned null
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:681)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:587)
at org.springframework.validation.DataBinder.doBind(DataBinder.java:489)
at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:149)
at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:110)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:566)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:213)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:132)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)What version of spring are you using in tomcat?
What version of WLS are you using.
What JDK are you using in both environments?
Is the issue random? or can you reproduce it at will?
Thanks
Luz -
Index.html as a link not working with Weblogic 6.0 SP2
we use weblogic as a webserver with one of our web applications.
The index.html page is a soft link pointing to one of 2 pages.
1 page is a site up page and the other is a site down page.
Using a soft link worked fine with WL60 sp1 but when we moved to SP2
we now get a 404 when trying to load the index.html page.
Any ideas why this would be broken?
Terry Carter
Terry,
This is a known problem, and CR058420 was opened to address this
issue. For 6.0, there is not a patch available. The recommended
solution is to upgrade to 6.1 and apply the appropriate patch.
Thanks,
Simon
Developers Relation Engineer
BEA Support.
Terry Carter wrote:
> we use weblogic as a webserver with one of our web applications.
> The index.html page is a soft link pointing to one of 2 pages.
> 1 page is a site up page and the other is a site down page.
>
> Using a soft link worked fine with WL60 sp1 but when we moved to SP2
> we now get a 404 when trying to load the index.html page.
>
> Any ideas why this would be broken?
>
> Terry Carter
-
JSP PRECOMPILER IS NOT WORKING WITH WEBLOGIC 6.1 SERVICE PACK 5
When i compile JSPs using JSP PreCompiler in weblogic 6.1
( Service Pack 4 ) , compilation is perfect.
But when i precompile the same JSPs with weblogic 6.1 (Service Pack 5 )
, i get compilation error.
Variable Not Found error comes in service pack 5. But the same code works
well with service pack 4.
Could anyone help me ?
[java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve symbol
[java] symbol : variable yesLinkPageText
[java] location: class jsp_servlet._secure.__confirmation
[java] htmllink0.setPage(yesLinkPageText); //[ /secure/co
rmation.jsp; Line: 32]
[java] ^
[java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve symbol
[java] symbol : variable noLinkPageText
[java] location: class jsp_servlet._secure.__confirmation
[java] htmllink0.setPage(noLinkPageText); //[ /secure/con
mation.jsp; Line: 37]
[java] Error: compilation of jsp file /secure/confirmation.jsp (java file C
VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classes
p_servlet\_secure\__confirmation.java failed):
[java] ^
[java] null
[java] 2 errors
[java] Error: [jspc]: 1 file(s) failed:
[java] /secure/confirmation.jsp
[java] java.io.IOException: Compiler failed executable.exec(java.lang.String
Can you post the jsp page or a example which doesnt compile in sp5. It seems
difficult to guage what the problem could be from looking at the error.
--Nagesh
"george vargeese" <[email protected]> wrote in message
news:40c56502$1@mktnews1...
>
> When i compile JSPs using JSP PreCompiler in weblogic 6.1
> ( Service Pack 4 ) , compilation is perfect.
>
> But when i precompile the same JSPs with weblogic 6.1 (Service Pack
5 )
> , i get compilation error.
>
> Variable Not Found error comes in service pack 5. But the same code
works
> well with service pack 4.
>
> Could anyone help me ?
>
>
> [java]
C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
> NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve
symbol
>
> [java] symbol : variable yesLinkPageText
> [java] location: class jsp_servlet._secure.__confirmation
> [java] htmllink0.setPage(yesLinkPageText); //[
/secure/co
> rmation.jsp; Line: 32]
> [java] ^
> [java]
C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
> NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve
symbol
>
> [java] symbol : variable noLinkPageText
> [java] location: class jsp_servlet._secure.__confirmation
> [java] htmllink0.setPage(noLinkPageText); //[
/secure/con
> mation.jsp; Line: 37]
> [java] Error: compilation of jsp file /secure/confirmation.jsp (java
file C
>
VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classe
s
> p_servlet\_secure\__confirmation.java failed):
> [java] ^
> [java] null
> [java] 2 errors
> [java] Error: [jspc]: 1 file(s) failed:
> [java] /secure/confirmation.jsp
> [java] java.io.IOException: Compiler failed
executable.exec(java.lang.String
>
>
Maybe you are looking for
-
Revised file will now not export all content
We have successfully created a book containing text and graghics and exported a pdf file to a publisher for review. The publisher accepted the pdf and sent us a proof copy. After adding another layer of background to most of the pages of the origina
-
Parameter CAP in UTPRI function
Hello Payroll Gurus! Could anybody help me with the following problem: In PP 11/2014, we have changed employee's infotypes 0207, 0208, 0209 from WA to CO starting from PP 09/2014. As a result, the system re-calculated taxes for the employee (withhold
-
We are receving the delivery from customer and we are using return sales order and inbound delivery. Which movement type we should use to get the part back from customer. 457:-to stock in quality inspection stock or 655:-Quality inspection stock and
-
My iPhoto keeps opening when I restart my computer
My iphoto keeps opening up when I restart my computer. Is there anyway for me to turn this off?
-
Preview Problems have returned
http://discussions.apple.com/thread.jspa?threadID=2358880&tstart=0 In this thread the advice was given to remove ~/Library/Preferences/com.apple.preview.plist I did this and once done MS Entourage 2004 was able to open attached images once again. Thi