weblogic

Which JAR contains the weblogic.servlet.security.ServletAuthentication class?

放肆的年华 提交于 2019-12-06 12:18:39
I trying to create a servlet to logout from multiple JSF applications running on Oracle Glassfish. I tried the following code, weblogic.servlet.security.ServletAuthentication.logout(request); weblogic.servlet.security.ServletAuthentication.invalidateAll(request); weblogic.servlet.security.ServletAuthentication.killCookie(request); but I am not able to find the JAR file containing the required class in order to get the code to compile. I downloaded Oracle WebLogic and tried various of its JARs, but no one of them made the code to compile. Which JAR does contain the required class and where can

java.lang.NoClassDefFoundError: org/apache/cxf/jaxrs/impl/UriBuilderImpl

谁说我不能喝 提交于 2019-12-06 11:34:43
I don't directly use Apache CXF in my code. I didn't even have it as a dependency. Now when upgrading to WebLogic 12c I get this exception. I previously got some other errors related to extracting a soap message body, which I got around after adding the saaj dependencies below. <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle-jaxrs</artifactId> <version>${cxf-version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId> <version>${cxf-version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>

Not able to load external properties files with springboot in weblogic

泪湿孤枕 提交于 2019-12-06 11:24:52
问题 I am trying to load the external properties file in spring boot with tomcat it is working as expected while putting it in lib folder but I am not able to load with weblogic server though I put application.properties file in lib folder. Code snippet : public class ApplicationFilesInitializer extends SpringBootServletInitializer implements WebApplicationInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources

How to set a queue producer timeout?

好久不见. 提交于 2019-12-06 11:23:23
问题 I am testing WebLogic 10.3.1 JMS, but there has a problem. My Testing step: Start WebLogic Server Start JMS Client Client send a object to WebLogic JMS and server received the object. Stop WebLogic Server Send another object to WebLogic JMS. What I expect is a exception come out, but there have not anything appear and program hanged. Program stopped at: sender.send(objMsg); I have add some timeout settings, but still not working: ((WLProducerImpl) sender).setSendTimeout(1000); ((WLConnection)

Each request from user call a new getConnection()?

半城伤御伤魂 提交于 2019-12-06 11:22:58
The database connection is get like below public Connection getDBConection(){ Context context = new InitialContext(); DataSource dataSource = (javax.sql.DataSource) context.lookup("java:myDataSource"); Connection conn = dataSource.getConnection(); } For a userA, is each database request should call getDBConnection() once; but no need to control all request use the same connection? That is, if userA has three database request, then userA should call getDBConnection() three times, and call Connection.closed() after used in each request? If the userA call getDBConnection() three times (that is,

WebLogic 12c - Error: ADRS_DOMAIN_PASSWORD environment variable not set

核能气质少年 提交于 2019-12-06 11:12:39
I'm trying to implement push notification in Oracle MAF (2.3.1) application. I need to deploy Push Server application on WebLogic server. When i try to run Integrated WebLogic Server (WL-12c) from JDeveloper 12c IDE , I'm keep getting Error: ADRS_DOMAIN_PASSWORD environment variable not set. in console log. Seeems it is not creating domain at all. I have also attached complete Build log on below for your reference, Adding environment variable to WLST script USER_MEM_ARGS = -Xms32m -Xmx1024m -XX:MaxPermSize=384m Log File: C:\Users\admin\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o

AspectJ with weblogic

為{幸葍}努か 提交于 2019-12-06 10:53:04
问题 I am trying to run AspectJ on Weblogic with LTW. My pointcut is for public constructor and methods, and advices are for Before, AfterReturning and AfterThrowing. I am getting following error when I access a simple "Hello World" jsp: javax.servlet.ServletException: Servlet class: 'jsp_servlet.__index' doesn't have a default constructor at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:315) at weblogic.servlet.internal.StubSecurityHelper

List all the user in weblogic by java

≡放荡痞女 提交于 2019-12-06 10:37:38
问题 Does anyone know how to list all the weblogic users in java? For instance, there is 5 users in security realm, and I want to get all of them. How do I do? 回答1: It's pretty easy. For future reference, if you want to look up something like "how do I do X with weblogic and Java..." use JMX in your google search. Here is an example from weblogic wonders. Note you will need to change your URL and user/password in the code: import javax.naming.*; import javax.management.MBeanInfo; import weblogic

WS Download operation with MTOM

折月煮酒 提交于 2019-12-06 09:38:30
I want to stream directly from an Oracle database blobs files via WS with MTOM directly to the WS client. I thought I found a way which is described here: http://www.java.net/forum/topic/glassfish/metro-and-jaxb/mtom-best-practices but after i took a look on InputStreamDataSource and javax.mail.util.ByteArrayDataSource i realized that they acutal hava a byte[] of the 'document' in memory meaning the streaming ideea is in vain, cause what i try to avoid is to have multiple docs in the same time fully in memory. So how can I stream from DB via WS and MTOM to a WS client ? Any idea ? Thanks Cris

In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart

若如初见. 提交于 2019-12-06 08:50:45
In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart. I am supporting a server with frequent HTML changes and hoping to find a way not to restart the server each time the HTML is updated. Environment is supporting a PeopleSoft domain. Thanks. There's a way indeed, the parameter "Resource Reload Check (in seconds)" which can be found on a web app setup is what you're looking for. I've setup this to 5(secondes) in order to have a periodic refresh on dynamic ressources generated by an application engine (an xml parsed by an xslt) For some