weblogic

NetBeans taking JSF Server library instead of registered libraries

我只是一个虾纸丫 提交于 2019-12-20 05:42:21
问题 I have an Enterprise Application (EAR) with this specs: JAVA EE 5 JDK 6 JSF 2 Running on Weblogic 11g(10.3.6) I have a WAR inside of it, the weblogic server has JSF libraries but i want the libraries i already provided. The problem is when i add JSF Framework in Project Properties and then i click Registered Libraries (not server library) it seems like it takes it but after a few seconds when i click Project Properties/ Frameworks it says again : "Server Library". I really need to use the

VirtualWebappLoader or similar for WebLogic to add directories to war's classpath?

戏子无情 提交于 2019-12-20 04:52:30
问题 How can I make an external directory (where additional jars will be deployed) available on the classpath of a war deployed to WebLogic? I am familiar with how to do this on Tomcat by defining a Loader element in the context.xml and including a virtualClasspath attribute which specifies Additional repositories to search for resources . Is there a similar feature in WebLogic? 回答1: Yes weblogic has the option to do this as well with virtual-directory-mapping inside weblogic.xml: <?xml version="1

VirtualWebappLoader or similar for WebLogic to add directories to war's classpath?

一曲冷凌霜 提交于 2019-12-20 04:51:11
问题 How can I make an external directory (where additional jars will be deployed) available on the classpath of a war deployed to WebLogic? I am familiar with how to do this on Tomcat by defining a Loader element in the context.xml and including a virtualClasspath attribute which specifies Additional repositories to search for resources . Is there a similar feature in WebLogic? 回答1: Yes weblogic has the option to do this as well with virtual-directory-mapping inside weblogic.xml: <?xml version="1

Weblogic 11g URL Rewrite

廉价感情. 提交于 2019-12-20 01:01:31
问题 I have a client running a WebLogic 11g install on a Windows Server machine who wishes to implement Apache-style mod_rewrite-like functionality to translate requests for http://easyurl.com to http://super.complicated.com/with/this/junk?here=and_more. I have scoured the Internet for advice, but all I can find are other people who are asking the same question and not getting any answer. Assuming that installing 3rd-party apps is not an option, how do I implement this in WebLogic? Edit: Now that

class cast exception in weblogic

随声附和 提交于 2019-12-19 21:21:33
问题 I have a web application (WAR file) which uses jersey jars.Now when i am trying to deploy this i am getting class cast exception(Some bootstrap servlet uses jersey)..On analysis i found that weblogic itself have jersey jars in common\modules..and my web app have different version of jersey jars. Now if i delete the common/modules jersey jar then my web app got deployed.I want to know how can i make my web app to use its own version of jersey jars so that it gets deployed without deleting

class cast exception in weblogic

北慕城南 提交于 2019-12-19 21:20:40
问题 I have a web application (WAR file) which uses jersey jars.Now when i am trying to deploy this i am getting class cast exception(Some bootstrap servlet uses jersey)..On analysis i found that weblogic itself have jersey jars in common\modules..and my web app have different version of jersey jars. Now if i delete the common/modules jersey jar then my web app got deployed.I want to know how can i make my web app to use its own version of jersey jars so that it gets deployed without deleting

How to access JNDI data source defined in weblogic 10.3.6

自作多情 提交于 2019-12-19 16:18:11
问题 I have created a JNDI data-source using my weblogic console but I am not able to access the object from my web application. Below are the details In weblogic 10.3.6, I have given the JNDI name for datasource as : jdbc/mydb To get DB connection from my web application I have written this code in my web application: Context initContext = new InitialContext(); DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/mydb"); jndiConnection = ds.getConnection(); Earlier I was using

JAX-WS Validate Schema in WebLogic with @SchemaValidation

自闭症网瘾萝莉.ら 提交于 2019-12-19 11:15:24
问题 I wasn't able to find the solution and I found more people stuck in the same problem so I will post it here. By default a JAX-WS server (at least for WebLogic) will not validate the message received with its associated schema. This can lead to a lot of problems since any invalid value (wrong xsd:dateTime format, letters on a number field, etc) will result in a null value in the Java object, including mandatory fields. What I need to do is a simple validation that should be provided by the

How to make WebLogic log all “console” message into a file?

北城以北 提交于 2019-12-19 07:28:11
问题 In Eclipse you can see all messages in console (output of System.out.println ), but in WebLogic, how can I get a file which contains all these message ? 回答1: You can do this by either modifying the startWeblogic.cmd or from the Admin console See both options in detail at the docs When you start the Administration Server, include the following Java option in the weblogic.Server command: -Dweblogic.log.RedirectStdoutToServerLogEnabled=true Or from the Admin Console 来源: https://stackoverflow.com

access Mbeans on weblogic

守給你的承諾、 提交于 2019-12-19 04:13:12
问题 From the documentation of oracle : Domain Runtime MBean Server : This MBean server also acts as a single point of access for MBeans that reside on Managed Servers. what i want to do is to use this fact to access all my custom mBeans scattered in several managed servers. for example assume that i have two nodes server-1 server-2 . how can i access all of the custom mBeans on both server-1 server-2 by connecting to the administrator node ? i dont want to remotly access each node to return the