Legal to use Weblogic libraries in CI environment?
Hello,
In my company we are using fully licensed copies of Weblogic server (9.2 and 10.1) in test and production environments, as well as free download versions in developer workstations under Free Developer License. The applications we develop make use of Weblogic libraries and tools such as appc at compiletime.
We're now attempting to migrate the build process of our applications to a separate Continuous Integration server (i.e. not necessarily the developer's sole workstation) , which does not run the Weblogic server, but the applications it would build require the Weblogic libraries and tools at compiletime.
Herein the question: are we legally allowed to install the Weblogic server on a separate CI server for the sole purpose of satisfying compiletime dependencies and/or using the enclosed tools in order to build our applications, if we never actually run the server application?
Thanks!
Hello,
In my company we are using fully licensed copies of Weblogic server (9.2 and 10.1) in test and production environments, as well as free download versions in developer workstations under Free Developer License. The applications we develop make use of Weblogic libraries and tools such as appc at compiletime.
We're now attempting to migrate the build process of our applications to a separate Continuous Integration server (i.e. not necessarily the developer's sole workstation) , which does not run the Weblogic server, but the applications it would build require the Weblogic libraries and tools at compiletime.
Herein the question: are we legally allowed to install the Weblogic server on a separate CI server for the sole purpose of satisfying compiletime dependencies and/or using the enclosed tools in order to build our applications, if we never actually run the server application?
Thanks!
Similar Messages
-
With out using Weblogic libraries to maintain the same functionality
Hi,
Please tell the solution of my problem.Here application developed in Weblogic,now we are migrating that applicationin jboss.Here one java servlet program is there which is using Weblogic libraries to get the connection pool .
How can change the code without using Weblogic libraries to maintain the same funtionality. Is there any alternate method to get the connection pools in Jboss.
Here I am attaching the code ,please go througth the code and provide me the correct solution.
package gsk.servlets;
import java.io.*;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.management.*;
import javax.management.InstanceNotFoundException;
import javax.management.InvalidAttributeValueException;
import javax.management.Notification;
import javax.servlet.*;
import javax.servlet.http.*;
//Below lines are commnented by Anupama on 29-09-05 to avoid using Weblogic libraries.
//import weblogic.jndi.Environment;
//import weblogic.management.MBeanHome;
//import weblogic.management.MBeanCreationException;
//import weblogic.management.*;
//import weblogic.management.runtime.*;
//import weblogic.management.configuration.*;
//import weblogic.management.RemoteNotificationListener;
//import weblogic.management.logging.WebLogicLogNotification;
//import javax.management.Notification.*;
//below lines are added by Anupama T on 29-09-05 to run the same functionality without using Weblogic libraries
import org.jboss.management.*;
import org.jboss.jdbc.*;
import org.jboss.naming.*;
import org.jboss.management.j2ee.MBean;
import javax.management.AttributeChangeNotification;
import javax.management.JMException;
import javax.management.MalformedObjectNameException;
import javax.management.MBeanServer;
import javax.management.NotificationListener;
import javax.management.ObjectName;
import org.jboss.logging.Logger;
import org.jboss.system.ServiceMBean;
import gsk.adip.portal.GKMProperties;
import gsk.adip.dbconnectionservice.DatabaseConnector;
* @author jjc18400
* The ConnectionsManager class acts as a Servlet that listens and
* responds to events that are thrown by WebLogic MBeans. In particular,
* it listens for failures in WebLogic connection pools, and attempts to
* restore these pools.
public class ConnectionsManager extends HttpServlet implements NotificationListener {
private static Context ctx;
private static MBean managedHome;
private static MBean adminHome;
private static String SERVER_NAME;
private static String DOMAIN_NAME;
private static MBeanServer myServer;
private JDBCConnectionPoolRuntimeMBean connectionPoolMBean;
private JDBCConnectionPoolMBean jdbcConnPoolMBean;
private JDBCConnectionPoolMBean myPool;
private static ResultSet rset = null;
public void init(ServletConfig config) throws ServletException {
super.init(config);
System.out.println("Initializing the ConnectionsManager servlet.");
SERVER_NAME = GKMProperties.getProperty("GKM_SERVER_NAME");
DOMAIN_NAME = GKMProperties.getProperty("DOMAIN_NAME");
findMBeans();
testConnectionPool("GENNETConnectionPool");
try {
//findConnPool("GENNETConnectionPool").addNotificationListener(this, null, null);
RemoteMBeanServer rmbs = adminHome.getMBeanServer();
WebLogicObjectName oname =
new WebLogicObjectName("TheLogBroadcaster", "LogBroadcasterRuntime", DOMAIN_NAME, SERVER_NAME);
rmbs.addNotificationListener(oname, this, null, null);
catch (IllegalArgumentException e) {}
catch (MalformedObjectNameException e) {}
catch (InstanceNotFoundException e) {}
public void handleNotification(Notification notification, Object obj) {
WebLogicLogNotification wln = (WebLogicLogNotification)notification;
System.out.println("\nWebLogicLogNotification");
System.out.println(" type = " + wln.getType());
System.out.println(" message id = " + wln.getMessageId());
System.out.println(" server name = " + wln.getServername());
System.out.println(" timestamp = " + wln.getTimeStamp());
System.out.println(" message = " + wln.getMessage() + "\n");
private void testConnectionPool(String poolName) {
JDBCConnectionPoolMBean aPool = findConnPool(poolName);
JDBCConnectionPoolRuntimeMBean aRuntimeMBean = findRuntimeMBean(poolName);
/*while(aRuntimeMBean.getPoolState()) {
try {
Thread.sleep(6000);
System.out.println("Thread is sleeping.");
catch (InterruptedException ie) {
retargetConnPool(aPool);
private JDBCConnectionPoolRuntimeMBean findRuntimeMBean(String aPoolName) {
JDBCConnectionPoolRuntimeMBean aRuntimeMBean = null;
if (managedHome != null) {
try {
aRuntimeMBean = (JDBCConnectionPoolRuntimeMBean)managedHome.
getRuntimeMBean(aPoolName, "JDBCConnectionPoolRuntime");
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
aRuntimeMBean = null;
return aRuntimeMBean;
private JDBCConnectionPoolMBean findConnPool(String poolName) {
if (adminHome != null) {
try {
myPool = (JDBCConnectionPoolMBean)adminHome.getMBean(poolName, JDBCConnectionPoolMBean.class);
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
myPool = null;
return myPool;
private void retargetConnPool(JDBCConnectionPoolMBean aPool) {
//System.out.println("The connection pool: " + aPool.toString() + " is not responding.\nAttempting to retarget the pool...");
try {
System.out.println("Attempting to remove " + myServer.toString() + " from the connection pool target list.");
aPool.removeTarget(myServer);
System.out.println("Removal successful: " + aPool.getTargets().toString());
aPool.addTarget(myServer);
System.out.println("Addition successful: " + aPool.getTargets().toString());
catch (InvalidAttributeValueException e) {
System.out.println(e.toString());
catch (DistributedManagementException e) {
System.out.println(e.toString());
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String poolName = (String)req.getParameter("poolName");
String dataSource = (String)req.getParameter("dataSource");
//System.out.println("req.getAttribute(poolName) is: " + poolName);
//System.out.println("req.getAttribute(dataSource) is: " + dataSource);
String message = runTestQuery(dataSource);
getConnectionPoolMBean(poolName);
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.println("<html>");
out.println(" <head><title>The ConnectionsManager Responds:</title></head>");
out.println(" <body>");
out.println(" <h1>" + message + "</h1>");
out.println(" </body>");
out.println("</html>");
public void destroy() {
System.out.println("Destroying the ConnectionsManager servlet.");
public String getServletInfo() {
return "This servlet monitors and corrects errors in WebLogic connection pools.";
/**private void runTests() {
while (false) {
rset = testConnection();
if (rset == null) {
resetConnectionPool();
try {
wait();
catch (InterruptedException e) {}
private String runTestQuery(String dataSource) {
String statusMessage = "";
Connection conn = null;
Statement stmt = null;
ResultSet rset = null;
//String aPoolName = "GENNETConnectionPool";
String aSql = "select * from dual where 1 = 1";
try {
conn = DatabaseConnector.getDatabaseConnection(dataSource);
System.out.println("Established database connection.");
if (conn != null) {
conn.setAutoCommit(false);
stmt = conn.createStatement();
rset = stmt.executeQuery(aSql);
statusMessage = "The connection \'" + dataSource + "\' is OK.";
catch (Exception e) {
try {
conn.rollback();
catch (Exception e1) {}
e.printStackTrace();
statusMessage = "The connection \'" + dataSource + "\' has failed.\n" + e.toString();
finally {
try {
if (stmt != null) stmt.close();
if (conn != null) conn.close();
catch (Exception e) {
e.printStackTrace();
return statusMessage;
public void resetConnectionPool() {
private void findConnPoolRuntimeMBean(String poolName) {
try {
connectionPoolMBean = (JDBCConnectionPoolRuntimeMBean)managedHome.getRuntimeMBean(poolName, "JDBCConnectionPoolRuntime");
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
private void findMBeans() {
Environment env = new Environment();
try {
ctx = env.getInitialContext();
managedHome = (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME + "." + SERVER_NAME);
System.out.println(MBeanHome.JNDI_NAME + "." + SERVER_NAME + " -- managedHome found successfully.");
adminHome = (MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
System.out.println(MBeanHome.ADMIN_JNDI_NAME + " -- adminHome found successfully.");
myServer = (ServerMBean)adminHome.getMBean(SERVER_NAME, ServerMBean.class );
System.out.println(MBeanHome.ADMIN_JNDI_NAME + " -- " + SERVER_NAME + " instance found successfully.");
ctx.close();
catch (NamingException e) {
System.out.println("Naming Exception: " + e);
managedHome = null;
adminHome = null;
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
public String displayHomeName() {
getConnectionPoolMBean("GENNETConnectionPool");
if (managedHome != null) {
return new String("MBeanHome found successfully.");
else return new String("MBeanHome not found.\nSee WL Console for error.");
private void getConnectionPoolMBean(String poolName) {
String thisPoolName = poolName;
connectionPoolMBean = null;
if (managedHome != null) {
try {
connectionPoolMBean =
(JDBCConnectionPoolRuntimeMBean)managedHome.getRuntimeMBean(thisPoolName, "JDBCConnectionPoolRuntime");
if (connectionPoolMBean != null) {
System.out.println("JDBCConnectionPoolRuntime found successfully.");
System.out.println("connectionPoolMBean.toString() is: " + connectionPoolMBean.toString());
System.out.println("connectionPoolMBean.getFailuresToReconnectCount() is: " + connectionPoolMBean.getFailuresToReconnectCount());
System.out.println("connectionPoolMBean.getPoolState() is: " + connectionPoolMBean.getPoolState());
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolRuntimeMBean: " + e);
connectionPoolMBean = null;
// Obtain MBeanHome for the administration server.
/*JDBCConnectionPoolMBean mbean = (JDBCConnectionPoolMBean)home.
getConfigurationMBean(poolName, "JDBCConnectionPoolConfig");
mbean.setConnLeakProfilingEnabled(true);
mbean.setSqlStmtParamLoggingEnabled(true);
mbean.setSqlStmtMaxParamLength(maxLen);*/
/*try {
mypool = (JDBCConnectionPoolMBean)mbh.getMBean( "mypool",
JDBCConnectionPoolMBean.class );
catch( javax.management.InstanceNotFoundException e ) {
mypool = (JDBCConnectionPoolMBean) mbh.createAdminMBean( "mypool",
"JDBCConnectionPool", "mydomain" );
mypool.addTarget( myserver );
mypool.setDriverName( "org.gjt.mm.mysql.Driver" );*/
if (adminHome != null) {
try {
myPool = (JDBCConnectionPoolMBean)adminHome.getMBean(poolName, JDBCConnectionPoolMBean.class);
catch (InstanceNotFoundException e) {
System.out.println("Unable to find the JDBCConnectionPoolMBean: " + e);
if (myPool != null) {
//System.out.println("myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
try {
myPool.setMaxCapacity(10);
System.out.println("Before: myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
myPool.setMaxCapacity(100);
System.out.println("After: myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
catch (InvalidAttributeValueException e) {
System.out.println("Max Capacity is an invalid value.");
//System.out.println("myPool.getMaxCapacity() is: " + myPool.getMaxCapacity());
}Hy, i've got the same problem as you. Did you find out a solution.
If so, please contact me. Thanks a lot.
Lorenzo -
Using Weblogic app environment in Visual Age
Hi,
I am using Weblogic as my test environment in Visual Age. I am getting alone
well with servlet and beans. But I am having enormous problem with jsp. Does
any body know how to configure weblogic test environment in Visual age to
use bean tag in JSP (the JSP cannot locate the beans although the classpath
has set to the project_resource/project Name).
Help will be highly appreciated
Duke
"Michael Girdley" <[email protected]> wrote in message
news:396a80d4$[email protected]..
> JSP integration is not supported with Weblogic and VisualAge. This is
> because VisualAge supports a back level revision of the JSP specification
> and has also created their JSP container to be tightly integrated with
> VisualAge.
I don't understand this at all.
My VisualAge has no notion of JSP (professional), that all came after I
imported all of
the weblogic stuff. So what does "VA supports a back level revision of JSP
spec" actually
mean?
Also, "has created their JSP container to be tightly integrated with VA".
There is no
JSP container to speak of except for that which weblogic provides. Perhaps
you are
referring to some Websphere/VA environment?
All in all, the integration is just about wonderful. Is there a good reason
why JSP is not
supported? Seeing what VA does with the WebSphere environment, I believe
that the IDE
environment is capable of dynamically reloading classes that have been
generated etc.
The basic question is: Why doesn't the VA environment support JSP's? If the
answer is:
"we haven't implemented it yet" then I understand, (and will ask when it
will be:-) ).
Questioningly,
Jon
-
How to setup the cluster environment for BPM using weblogic
want to setup the cluster environment for BPM using weblogic....
i have installed the oracle weblogic server 10gr3 and oracle BPM enterprise for weblogic 10gR3
i have used the Admin tools from the "oracle BPM enterprise for weblogic" to setup the configuration and create the weblogic domain servers.
i can launch the process administrator and import the project exp file to domain server.
but what should i do to setup cluster environment using weblogic?
what i want to do is :
setup one admin machine..
setup two product machine..
enable the cluster so the admin machine can monitor the status of the product machine..
thanks a lot ...The install guide at http://download-llnw.oracle.com/docs/cd/E13154_01/bpm/docs65/config_guide/index.html gives a reasonable amount of info on how to do this.
Personally I have not used the OBPM option to configure WebLogic instead I've used the information in the above install guide to create the weblogic domain in advance of configuring OBPM.
Once you've setup WebLogic configure OBPM using the values I mention in the following thread: How to set the JMX Engine parameter in Process Administation?
Let me know any specific config questions and I'll do my best to answer them for you.
Thanks,
Mike -
Using external libraries with Developer Studio 7.1 Composition Environment
Hi,
I downloaded DS 7.1 CE and tried to develop a simple application which uses an external library.
I created a development component for "external library" for the local development -> MyComponent, giving it the name "test2" (for the domain basis).
I imported the external library file using Import -> File System , then selecting the .jar file.
In the component properties browser I added a public part naming it "mylib2" setting the purpose to "ASSEMBLY" (my intention was that the libarry will be transferred during the deployment to the application server).
I right clicked on the public part to "managed entities". I selected the archive tree and checked the library file shown there (the one I imported before). #
Then I opended component properties of my web dynpro project and clicked on "Dependencies". The I chose "Add..." and selected the "test2" development component I created before (see above).
Then I tried to deploy the project (which uses this external library) using "Deploy Archive and Run"
After deployment the browser window opens and shows the ClassNotFoundException
So what did I oversee or do wrong?
BTW: Is it necessary for using external libraries to use a full fletched NWDI? Or can I use external libs also with netweaver development environments freely available for download on sdn.sap.com?
Any hints?
Thanks a lot
HannesHannes,
If you want to use external libraries with DCs then you should follow the NWDI completely.
Check this step, otheways of using external libraries is mentioned <a href="http://help.sap.com/saphelp_nw70/helpdata/en/e3/de813e77d46245e10000000a114084/frameset.htm">here.</a>
Regards
Abhilash -
Error in using the JMS Adater using weblogic queue
I am using weblogic queue in jms adapter to queue the data. i configured the server.xml
<shared-library name="oracle.weblogic" version="10.1.3">
<code-source path="D:\product\10.1.3.1\OracleAS_5\jdk\lib\weblogic.jar"/>
</shared-library>
I got the following error. Any Suggestions?
file:/D:/product/10.1.3.1/OracleAS_5/bpel/domains/default/tmp/.bpel_OSM_OrderRequest_2.0_c68a29fd8af11327e1a8892e8de5a6bb.tmp/Sample.wsdl [ Produce_Message_ptt::Produce_Message(orderRequestMessage) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.
</summary>
</part>
-<part name="detail">
<detail>
org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec due to:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.; nested exception is:
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec
Dependent class: oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA
Loader: oracle.bpel.common:10.1.3
Code-Source: /D:/product/10.1.3.1/OracleAS_5/bpel/lib/orabpel.jar
Configuration: <code-source> in /D:/product/10.1.3.1/OracleAS_5/j2ee/oc4j_soa/config/server.xml
This load was initiated at orabpel.root:0.0.0 using the Class.forName() method.
The missing class is not available from any code-source or loader in the system.I am able to fix this error by copying "JmsAdapter.jar" to "applib" directory of oc4j_soa.
I was getting a new error.
+"Missing class: oracle.tip.adapter.api.TranslationAware+
+ Dependent class: oracle.tip.adapter.jms.JmsInteractionSpec+
+ Loader: global.libraries:1.0+
+ Code-Source: /D:/SOA1013/j2ee/oc4j_soa/applib/JmsAdapter.jar+
+ Configuration: <code-source> in /D:/SOA1013/j2ee/oc4j_soa/config/server.xml+
+The missing class is available from the following locations:+
+ 1. Code-Source: /D:/SOA1013/bpel/lib/orabpel.jar (from <code-source> in /D:/SOA1013/j2ee/oc4j_soa/config/server.xml)+
+ This code-source is available in loader oracle.bpel.common:10.1.3."+
But managed it to fix it by copying "orabpel.jar" to "applib" directory.
We need to restart OC4J once we copy the JAR files.
regards,
S.Vasanth Kumar. -
Using Weblogic to Deploy Simple Flex App
Hi,
I am trying to deploy a simple Flex application in a weblogic8.1 server , so that I can use it locally.
Can any one please guide me where and how I have to deploy my flex app .
I am pretty new to this can any body provide me a guide or walk through step wise for me.
More over What is the url I need to give in the browser to access the flex app I deploy in the Weblogic server.
(At present I am using the IIS -- just copying the .swf file and wrapper html page in to the C:\Inetpub\wwwroot and giving http://localhost/test.html
in the browser to access it) --- How do I do this using Weblogic 8.1
thanks
NashHi again Nash,
the stuff I am doing at present is not yet permitted to be publicly available, but the principles are very straightforward. Remember that WebLogic is primarily concerned with server-side functionality and Flex with client-side, so there is not really a great deal of overlap. The place where your Flex instantiation code will sit is in one or other JSP, using code very like the templates that Adobe generate. The only thing you have to do is ensure that your JSP (or the controller/code files behind it) generate HTML that contains the necessary. I tend to use the Apache Beehive libraries for UI stuff, but from vague memory I don't think these were around in WL8 - however, it doesn't really matter what tag library you prefer as all you are doing is generating HTML that looks like the usual JavaScript calls to AC_FL_RunContent (or swfobject if you are using that method). Basically, just take the Adobe-generated template and wrap the necessary bits and pieces round the edge to make it a proper JSP.
When you need to make calls to get functionality, just use something like
service = new HTTPService();
separator_date = new Date();
service.url = "get_tool_list.jsp?sep=" + separator_date.valueOf();
service.addEventListener(FaultEvent.FAULT , fault_handler);
service.addEventListener(ResultEvent.RESULT, resultHandler);
service.resultFormat = "text";
CursorManager.setBusyCursor();
service.requestTimeout = WEB_SERVICE_TIMEOUT;
service.send();
and then inside get_tool_list.jsp (or whatever...) do the server-side functionality you need, and return the result in a suitable format that the Flex resultHandler method can then interpret and make use of.
Hope that helps,
Richard -
Using WebLogic JMS Wrappers with Spring
Hi,
I was just wondering if anyone used WebLogic JMS wrappers with Spring?
I am using WebLogic configured to have Sonic as my Foreign JNDI Provider. Weblogic provide me with specific entries on the admin console to set information such as the JNDI name of the Sonic Connection Factory. If I specify this JNDI name in the Spring config, and call getConnection() then I will get back a new connection each time.
I don't want this, I want to cache the connection (as connections are expensive in Sonic). This is where the WebLogic JMS wrappers come in, they can handle the pooling for me but the only way I can see to use them is via a resource-ref. It is possible for Spring to get a handle onto these wrappers or should I use Spring's own pooling mechanism instead?
P.S. I've also asked this question on the Spring forum
Thanks for any help
MandyMaybe you have already tried the following:
<beans xmlns:jee="http://www.springframework.org/schema/jee" ... >
<jee:jndi-lookup id="connectionFactory" jndi-name="jms.ConnectionFactory">
<jee:environment>
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://localhost:7001
</jee:environment>
</jee:jndi-lookup>
</beans>
an alternative is to use the JNDI template
<beans ... >
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://localhost:7001</prop>
</props>
</property>
</bean>
<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="jndiName"><value>jms.ConnectionFactory</value></property>
</bean>
</beans> -
Using Weblogic ACL from Tomcat in Servlet/SJP
Hi all,
I'm trying to use weblogic ACL from a servlet in a remote Servlet/JSP
container (Tomcat). I've managed to log a user as decribed is the
"examples.security.acl.Client exemple" but what i need now is to be able to
get back the user group and/or permissions. Does anyone have done this
before ? I've look in the Weblogic documentation center but I did not manage
to found any exemple.
Thank you in advance.
FredericSorry, but I believe you are going to be limited to the information
available through the JNDI interface and the interfaces of the EJB's that
you deploy to the weblogic EJB container. The ACL information is intended
for use only within the scope of the server environment. So, even though you
are running as a Servlet/JSP you're running in the Tomcat container which is
actually outside the weblogic Servlet/JSP or EJB container(s), in essance
you're running under the same access limitiations as an EJB client app.
BTW, you do realize that the weblogic 6.0 server does include a very nice
Servlet/JSP container?
Alfred Wallace <[email protected]> wrote in message
news:3a9fbc66$[email protected]..
Hi all,
I'm trying to use weblogic ACL from a servlet in a remote Servlet/JSP
container (Tomcat). I've managed to log a user as decribed is the
"examples.security.acl.Client exemple" but what i need now is to be ableto
get back the user group and/or permissions. Does anyone have done this
before ? I've look in the Weblogic documentation center but I did notmanage
to found any exemple.
Thank you in advance.
Frederic -
Appending a _ in front of the jsp class name when using weblogic.jspc
http://e-docs.bea.com/wls/docs60/jsp/reference.html
java weblogic.jspc -d /weblogic/classes -keepgenerated primero.jsp
"rb" <[email protected]> wrote in message
news:[email protected]...
>
> hi,
>
> i do
>
> java weblogic.jspc -d /weblogic/classes primero.jsp
>
> and it only is generated a _primero.class and do not appear
> the .java ?
>
> what i do bad ?
>
> thanks for advance
>
>
> Rodrigo Fonseca da Fonseca <[email protected]> wrote:
> >Hi,
> >
> >I'm using weblogic.jspc to compile some jsp fiels. The compilation is
> >complete and successfully, but the names of generated files .java and
> >..class are strange.
>
>
>
> >
> >For example, compiling a file named change_login_data.jsp, the resulting
> >files are change95_login_95_data.java and
> >change95_login_95_data.class. Compiling a file named buy.jsp, the
> >resulting files are buy.java and buy.class (fine situation). Why???
> >
> >I'm using:
> >
> >java weblogic.jspc -d c:\jsp_result -classpath
> >
>
>c:\weblogic\myserver\serverclasses;c:\weblogic\lib\weblogicaux.jar;c:\weblo
gic\classes
> >-compiler jikes.exe -J-verbose -keepgenerated -verbose
> >change_login_data.jsp
> >
> >
> >thanks
> >Rodrigo
> >
> >
> >
> >Mark Spotswood wrote:
> >>
> >> The namespace for java class files is more restrictive
> >> than for JSP files. We prepend these underscores so
> >> that if, for example, someone names their JSP "1.jsp",
> >> we get a class file with a legal name. We did consider
> >> not doing this for files which started with characters
> >> we kenw to be valid (in fact we may have put it in a
> >> service pack), but later found that this was not sufficient
> >> because its possible to name a jsp file something that
> >> clashes with java keywords ("class.jsp" for example).
> >> Rather than making the scheme even more complex,
> >> we decided to go back to the original sheme of always
> >> prepending the underscore.
> >> --
> >> mark
> >>
> >> Mika Moilanen wrote:
> >>
> >> > >>>>> "Shankar" == Shankar Roy <[email protected]> writes:
> >> >
> >> > Shankar> Problem seems to go away with weblogic510sp4.jar in
compilation
> >classpath.
> >> > Shankar> Shankar.
> >> >
> >> > Shankar> Shankar Roy wrote:
> >> >
> >> > >> Hi,
> >> > >> Can anyone tell why when I invoke weblogic.jspc the class file
that
> >is
> >> > >> generated has a _ in front of the class name
> >> > >>
> >> > >> java -classpath
> >> > >>
>
>/space/shankar/weblogic/lib/weblogicaux.jar:/space/shankar/weblogic/classes
/boot:/space/shankar/weblogic/classes:/space/shankar/dev/dev/lib/activation.
jar:/space/shankar/dev/dev/lib/classes12.zip:/space/shankar/dev/dev/lib/mail
.jar:/space/shankar/dev/dev/lib/oroinc.jar:/usr/java/lib/classes.zip
> >> > >> weblogic.jspc -package com.careassured.jsp -commentary login.jsp
> >> > >>
> >> > >> produces a class file by the name _login.class
> >> > >>
> >> > >> Thanks for any help pointers.
> >> > >> Shankar.
> >> >
> >> > Not with WLS5.1 and weblogic510sp6.jar, we still get '_' prefixed
> >> > classes...
> >> >
> >> > Actually we're suffering quite a lot because of this bug in
> >> > weblogic.jspc. Are there any plans for fix?
> >> >
> >> > --
> >> > Best Regards,
> >> > Mika
> >> > ----------------------------------------------------------
> >> > [email protected] phone: +358-0-511-23587
> >> > Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
> >> > ----------------------------------------------------------
>
-
How to use weblogic.Deployer
I can deploy this adf application to weblogic server in jdeveloper 11.1.1.3.
How to use weblogic.Deployer in weblogic 10.3.3? I get errors as follow:
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>d:
D:\>cd D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server\bin>setDomainEnv.cmd
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server>java weblogic.Deployer
-adminurl http://localhost:7001 -user weblogic -password welcome1 -deploy -upload E:\SOAworkspace\otnapp\deploy\otnapp_application1.ear
weblogic.Deployer invoked with options: -adminurl http://localhost:7001 -user weblogic -deploy -upload E:\SOAworkspace\otnapp\deploy\otnapp_application1.ear
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.Deployer.run(Deployer.java:70)
at weblogic.Deployer.main(Deployer.java:54)
Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:141)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:138
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
... 2 more
Caused by: javax.naming.CommunicationException [Root exception is java.net.Conne
ctException: http://localhost:7001: Destination unreachable; nested exception is
java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
erver at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:787)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:328)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:300)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:139)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
... 2 more
Caused by: java.net.ConnectException: http://localhost:7001: Destination unreach
able; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
... 19 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception
is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available rou
ter to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:316)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:205)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:328)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:300)
at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:139)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:150)
at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:86)
at weblogic.deploy.api.tools.SessionHelper.getRemoteDeploymentManager(SessionHelper.java:496)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:297)
at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:138)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
... 2 more
Unable to connect to 'http://localhost:7001': Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available rou
ter to destination. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server>Looks like the protocol is not correct (Unable to connect to 'http://localhost:7001': Destination unreachable)
Could you try the t3 protocol, for example,
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password welcome1 -listapps -
Webapp client using weblogic-generated stubs
Hi,
I have a simple webservice that has been tested for a while and works without
any trouble when
accessed from a standalone java client using the weblogic-generated webservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the same stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even reach the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though everything was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- which is not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Exception
during processing: java.lang.IllegalAccessError: Already connected (see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
EHi,
Thanks for your help with this. As it turns out, I received this message from
the weblogic team here:
=======
All,
The J2EE monitoring tool OVTA rolled out to Weblogic Farm Linux QA and Stage environment
had a bug in the instrumentation. The bug induces a java.lang.IllegalAccessError.
A patch as been rolled out to fix this issue.
=======
Once the patch was rolled out and weblogic was restarted, the issue disappeared.
Thanks again for your help!
E
Bruce Stephens <[email protected]> wrote:
Hello,
What is
com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry
at the time of failure?
If you could provide a short reproducer, we could give it a spin; or
open a dialog with our support team.
Thanks,
Bruce
Elisheva G wrote:
Hi, thanks for responding.
I have precisely the same client jsp running without any errors onapache tomcat
accessing
webservices residing in weblogic 8.1 It's only when I try to migratethe client
code from tomcat
to weblogic that I see this "already connected" exception being thrownfrom within
the weblogic-
generated stubs.
I successfully get a port from the service, but when I try to executethe business
method in the
port, that is where the exception is thrown -- consistently.
Any ideas? I am seeing identical behavior on 2 different applications.
Thanks in advance,
E
Bruce Stephens <[email protected]> wrote:
Hello,
The 7.0 reference is a namespace and not a problem and not associated
with your issue. I think you are seeing normal process threading
issues
with jsp sessions. There is an example using a jsp [1] and one with
SSL
[2] that you might want to examine.
HTH,
Bruce
[1]
http://manojc.com/?sample28
[2]
http://webservice.bea.com/clientauth.zip
Elisheva G wrote:
Hi,
I have a simple webservice that has been tested for a while and
works
without
any trouble when
accessed from a standalone java client using the weblogic-generatedwebservice
stubs.
I am trying to code a webapp client (using jsp/struts) using the
same
stubs, and
seem to keep
getting this error. It appears on the client side, doesn't even
reach
the server
side.
I am using weblogic 8.1 SP1. (It is interesting that even though
everything
was
compiled and
deployed with weblogic 8.1, there is some reference to 7.0-- whichis not even
installed on the
system, so I don't know where it is coming from.)
<May 7, 2004 12:58:23 PM EDT> <Info> <WebService> <BEA-220025> <Handlerweblogic.webservice.core.handler.ClientHandler
threw an exception from its handleResponse method. The exception
was:
java.lang.IllegalAccessError: Already connected.>
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:Exception
during processing: java.lang.IllegalAccessError: Already connected(see Fault
Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.lang.IllegalAccessError: Already connected
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava.lang.String;Ljava.lang.String;)V(HttpURLConnection.java:570)
at com.hp.ov.ipa.instr.bip.HttpURLConnectionArmInstrumentation.methodEntry(Ljava.lang.Object;Ljava.lang.Object;Ljava.lang.Object;I)Ljava.lang.Object;(HttpURLConnectionArmInstrumentation.java:98)
at weblogic.net.http.HttpURLConnection.getInputStream()Ljava.io.InputStream;(HttpURLConnection.java:???)
at weblogic.net.http.HttpURLConnection.getHeaderField(Ljava.lang.String;)Ljava.lang.String;(HttpURLConnection.java:542)
at java.net.URLConnection.getContentType()Ljava.lang.String;(URLConnection.java:381)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Ljavax.xml.rpc.handler.MessageContext;)V(Http11ClientBinding.java:202)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(Ljavax.xml.rpc.handler.MessageContext;)Z(HandlerChainImpl.java:230)
at weblogic.webservice.core.ClientDispatcher.receive(Lweblogic.webservice.WLMessageContext;)Ljava.lang.Object;(ClientDispatcher.java:229)
at weblogic.webservice.core.ClientDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;Ljava.io.PrintStream;)Ljava.lang.Object;(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(Ljava.util.Map;[Ljava.lang.Object;)Ljava.lang.Object;(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(Ljava.lang.String;Ljava.util.Map;)Ljava.lang.Object;(StubImpl.java:270)
Thanks in advance,
E -
Using weblogic.Admin utility with Weblogic 10.0
I am trying to write a script which perform PING server to ensure weblogic servers are up before moving on to start another server (the script starts all managed and admin servers), i used to be able to PING server on weblogic 8.1 using weblogic.Admin utility but on weblogic 10.3 i am getting the following exception:
java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionHelperImpl
at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.<clinit>(EnvironmentManager.java:26)
at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.Environment.createInitialContext(Environment.java:200)
at weblogic.jndi.Environment.getInitialContext(Environment.java:184)
at weblogic.jndi.Environment.getInitialContext(Environment.java:162)
at weblogic.management.commandline.tools.AdminToolHelper.getMBeanHome(AdminToolHelper.java:559)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.doCommandline(ServerInfoCommandLineInvoker.java:920)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.<init>(ServerInfoCommandLineInvoker.java:116)
at weblogic.management.commandline.AdminMain.main(AdminMain.java:132)
at weblogic.Admin.useAdminMain(Admin.java:43)
at weblogic.Admin.main(Admin.java:22)
java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionHelperImpl
at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.<clinit>(EnvironmentManager.java:26)
at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.Environment.createInitialContext(Environment.java:200)
at weblogic.jndi.Environment.getInitialContext(Environment.java:184)
at weblogic.jndi.Environment.getInitialContext(Environment.java:162)
at weblogic.management.commandline.tools.AdminToolHelper.getMBeanHome(AdminToolHelper.java:559)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.doCommandline(ServerInfoCommandLineInvoker.java:920)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.<init>(ServerInfoCommandLineInvoker.java:116)
at weblogic.management.commandline.AdminMain.main(AdminMain.java:132)
at weblogic.Admin.useAdminMain(Admin.java:43)
at weblogic.Admin.main(Admin.java:22)
The Classpath i am using:
/ascddata3/olcppads-dev01/weblogic10/server/lib/weblogic.jar:/ascddata3/olcppads-dev01/weblogic10/user_projects/autosc_pss/lib:/ascddata3/olcppads-dev01/weblogic10/server/lib/xmlx.jar:/ascddata3/olcppads-dev01/weblogic10/server/lib/wls-api.jar:/ascddata3/olcppads-dev01/weblogic10/server/lib/wlclient.jar:/ascddata3/olcppads-dev01/weblogic10/server/lib/wljmsclient.jar
The command i am using is:
java weblogic.Admin -url ins2d.med.ge.com:9010 -username USERNAME -password PASSWORD PING -verbose
In weblogic 8.1 the class weblogic/transaction/internal/TransactionHelperImpl used to be present in wljtaclient.jar but i can't locate the class anywhere in weblogic 10.3/server/lib. Kindly let me know how to use weblogic.Admin utility on weblogic 10.3Hi,
First I ran the setDomainEnv.cmd script to set the environment and then executed the weblogic.Admin command and it worked for me.
D:\wls103\user_projects\domains\816532Local>java weblogic.Admin -adminurl t3://localhost:7010 -username weblogic -password weblogic PING
Sending 1 ping of 100 bytes.
RTT = ~16 milliseconds, or ~16 milliseconds/packet
D:\wls103\user_projects\domains\816532Local>
Regards. -
ID CS5: problem with using Boost libraries in plugin
Hi all!
I try to use Boost libraries in my plugin.
When just add a line
#include <boost/asio.hpp> ------ included in SDK in external\asl\boost_libraries\boost
after (also before) line
#include "VCPlugInHeaders.h" ---
the result is
error C2064: term does not evaluate to a function taking 0 arguments
what corresponds to file "external\asl\boost_libraries\boost/asio/error.hpp(220)".
Error also remains when insert #include statement in VCPlugInHeaders.h directly.
If I compile my code out of SDK environment (as outstanding project) --- no problems at all.
Probably need additional configuration of Boost in SDK environment?
Thanks in advanse for your help!If using "asio C++ library" separately of Boost --- the plugin compiles without errors and works.
-
We are trying to use weblogic.jspc for precompiling the jsps in our application. Following the ANT task for doing the same.
<target name="runJspc" depends="runAssembler">
<path id="jspc.path.id">
<path refid="class.path"/>
<fileset dir="${weblogic.gws.app}/APP-INF">
<include name="**/*.jar"/>
</fileset>
</path>
<java classname="weblogic.jspc" fork="yes" failonerror="yes">
<classpath refid="jspc.path.id"/>
<arg line="-webapp ${weblogic.gws.app}/web -compiler ${javac.exec} -classpath ${gws.cl} -compileAll -d ${weblogic.gws.app}/web/WEB-INF/classes -depend -k -keepgenerated -verbose -verboseJavac"/>
</java>
</target>
For some reason, this target runs forever, without printing any logs or anthing. It simply hangs at "runJspc :".
To dig into details, I modified the target as follows :
<target name="runJspc" depends="prepare">
<path id="jspc.path.id">
<path refid="class.path"/>
<fileset dir="${weblogic.gws.app}/APP-INF">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${weblogic.gws.app}/web/WEB-INF"/>
</path>
<java classname="weblogic.jspc" fork="yes" failonerror="yes">
<classpath refid="jspc.path.id"/>
<arg line="-d ${weblogic.gws.app}/web/WEB-INF/classes -classpath ${gws.cl} -compiler ${javac.exec}" />
<arg value="-k" />
<arg value="-compileAll" />
<arg value="-depend" />
<arg value="-verboseJavac" />
<arg value="${weblogic.gws.app}/web/retail/jsp_app/home/ft_home.jsp"/>
<jvmarg line="-Xms512m"/>
<jvmarg line="-Xmx512m"/>
</java>
</target>
Now it throws below error & stops.
runJspc:
[java] [jspc] warning: expected file /WEB-INF/web.xml not found, tag libraries cannot be resolved.
[java] <Apr 14, 2005 11:49:19 AM PDT> <Warning> <HTTP> <BEA-101181> <Could not find web.xml under WEB-INF in the doc root: ..>
Is there any way to resolve one of the above two problems ?Hi Arun,
It seems that in the second ant target, you decide to compile just a single jsp, while in the first you were trying to compile the complete jsps in a application.
But in the second target, you forgot to mention -docroot / -webapp target. As a result, the specific error!!.
To actually debug the first target, try running the program first on commandline , using weblogic.jspc directly passing the arguments.
This way , you would have a better control over the target, and may be able to isolate the issue easily.
Maybe you are looking for
-
REPORT for list of invoice with an order reason.
Hi SAP Gurus ! Is there any standard SAP report which will show me a list of invoice with an order reason field? I have tried VF05 and VF05n,but in both of them, order reason as a selection parameter field is missing. In case of any clarification kin
-
Help about count character number in a text frame
Hi, all i have a question about how to get the number of character in a text frame. In fact the problem is if there is a table or an image in the text frame, the number of character includes the text in the table. Can somebody tell me how to count ju
-
Automatically update dropdown fields after .XSD file edit?
Miraculously, I have managed to create a dropdown field based upon values listed in an XSD schema file. I have then copied this dropdown field many times within my form as it is required in numerous places. Going forward, my hope was that I could sim
-
How to click on linkbuttons in the rows of a data grid
I'm trying to write automation test cases for a flex application using Flex Selenium. The flex selenium API provides only 2 click events: click(String objectId) and click(String objectId, String optionalButtonLabel) There are no click events for rows
-
BPX - Enablers (what to ask about in the interview for a BPX role)
Following a conversation at TechEd at the SDN Clubhouse <a href="/people/owen.pettiford3/blog/2006/10/18/bpx-150-key-enablers Enablers</a>. It occurred to me that to be a successful BPX sandwiched between the Technology Architects, the business proce