weblogic

Best Way to Launch External Process from Java Web-Service?

旧街凉风 提交于 2019-12-04 18:09:34
I've inherited a Java web-services code-base (BEA/Oracle Weblogic) and need to start/launch an external background application from a web-service. I've already tried: ProcessBuilder pb = new ProcessBuilder(arg); pb.start(); as well as: Runtime.exec(cmdString); But am experiencing strange behaviors when launching applications in this manner (i.e. the launched application stops working even though the process is still active. -- The application works fine when manually run from a normal command line). Is there a better way to launch an external processes? EDIT: ---------------------- I have some

WebLogic11g-部署web应用(以Springside3为例)

穿精又带淫゛_ 提交于 2019-12-04 17:55:07
Weblogic11g部署web应用,有三种方式,非常简单,但是很多新手部署总是出现若干错误,不知道如何解决。下面以白衣大神的springside3应用举例(原因是springside3很有代表性)详细讲解: 1、准备springside3的应用(mini-web、mini-service),这里我整理为一个war包,一个web应用的文件夹,放在网盘上,提供下载。 http://pan.baidu.com/share/link?shareid=1314310108&uk=3222190371 2、自动部署(autodeploy方式) 上一篇 http://my.oschina.net/u/927446/blog/160023 创建domain之后,domain所在目录有个文件夹是autodeploy,如图所示: 是的,没错,就是它。那还等什么?第一步:直接把web应用文件夹(这里以mini-web应用为例)copy过去就可以了。如下图所示: 第二步:登录domain的控制台,点击“域结构”-》“部署”,可看到如下界面: 说明此时web应用已经成功部署了【注意:1)观察状态,以及部署顺序,2)上一篇domain创建时提到开发模式,这就是利用开发模式的轮训自动热部署的】 第三步:既然部署成功了,那么赶紧访问应用吧,如下图所示: 实际上,autodeploy方式是不需要重启domain的

List all the user in weblogic by java

随声附和 提交于 2019-12-04 17:51:47
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? 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.jndi.Environment; import weblogic.management.runtime.ServerRuntimeMBean; import weblogic.security.providers

Where is class weblogic.jndi.WLInitialContextFactory?

ε祈祈猫儿з 提交于 2019-12-04 17:35:12
问题 when trying to execute my jar file I get an exception: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory] I guess this is some kind of missing library on the classpath. Can anyone tell me which jar-file is missing? I can't find the class weblogic.jndi.WLInitialContextFactory anywhere... Thanks! P.S.: I already have weblogic 10.0 jar included. 回答1:

Publishing EJB's local interface in weblogic

笑着哭i 提交于 2019-12-04 17:33:41
is there a way to lookup an EJB in weblogic if it implements only local interface? If I use this @Remote public interface TestSessionRemote { public void businessMethod(); } @Stateless(mappedName = "A") public class TestSessionBean implements TestSessionRemote { public void businessMethod() { } } the EJB can be looked up using this name: "A#" + TestSessionRemote.class.getName() If I change the annotation for TestSessionRemote from @Remote to @Local the EJB disappears from JNDI. Is there a way around this? EDIT: I was working with Weblogic 10.3.x (aka 11g) at that time. No, it is not possible.

AspectJ with weblogic

左心房为你撑大大i 提交于 2019-12-04 17:01:19
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$ServletInitAction.run(StubSecurityHelper.java:288) at weblogic.security.acl.internal.AuthenticatedSubject.doAs

When is it appropriate to use an EAR and when should your apps be in WARs?

给你一囗甜甜゛ 提交于 2019-12-04 16:24:26
问题 We have many Spring web applications to make on a WebLogic server and are curious about when WARs should go in an EAR and when they should just exist as WARs. Occassionally, the WARs will need to access common logic JARs, but I don't see why these would need to go into an EAR when they could just be packaged into the WARs. From what I understand, if several WARs are in an EAR and you need to modify one of those WARs, you need to redeploy the entire EAR to update the server. This will cause

Not able to load external properties files with springboot in weblogic

拥有回忆 提交于 2019-12-04 16:04:55
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(Application.class).properties(getProperties()); } static Properties getProperties() { Properties props = new

Is it possible to do Hotswapping of ATG classes

半世苍凉 提交于 2019-12-04 15:31:58
The deployment we follow is that we use runAssembler.bat to build an ear file and deploy it in a app server. We are using weblogic and jboss for testing purposes of the modules we built. However for every small change, we need to run runAssembler and build a new ear and deploy it in app server and restart the server. I would like to find out if anyone figured out a way to do Hotswapping of class files which are generated by the code we write in ATG environment in either weblogic or jboss. radimpe By attaching your IDE to your Application server on the Debug port it is generally possible to do

Difference between WebLogic and WebSphere? [closed]

房东的猫 提交于 2019-12-04 14:58:47
I am not able to find actual differences between these two Java EE servers. From my past experience, I found out following: WL is evolving more faster than WAS. WL is more user friendly than WAS. To simply deploy a application in WAS, we need to go in deep and its difficult to find if u are new to it. I found out that WAS is slower in some machine than WL. I found out that Classloading is easier to understand and effective in WL than WAS Above all are my experiences but not actual facts. Am I correct in all my findings? I want to know more in this respect. Please clear my doubts. If possible