weblogic-10.x

ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver when trying to use JPA with Derby

亡梦爱人 提交于 2019-12-07 15:31:16
问题 A related query I asked: How to configure & package a simple Java app to use JPA I have a simple Derby database which I can connect to via EJBs hosted in WebLogic. Now I would like to connect to it from a command line Java app using JPA. So far this Java code + persistence.xml file is throwing the error below. What am I doing wrong? My directory layout: C:. │ Registrar.class │ Registrar.java │ TxnClient.class │ TxnClient.java │ └───META-INF persistence.xml Standalone client: import javax

How to redeploy EAR file to Web-Logic without restart server?

核能气质少年 提交于 2019-12-07 13:13:14
问题 I have EAR file (which includes a WAR file and EJB jar file) was deployed on Web-Logic(10.3.6) successful. Now, I have updated EAR file and I redeploy again follow steps: delete old files on the server and install new EAR file without restart server. Every file have been deployed in Active state. But I got some exception related EJB injection. Then I restart Web-logic, my app is running fine. What's wrong with the redeploy way? Thanks in advance for any Help... 回答1: Weblogic has an lots of

WebLogic - Using environment variable / double quotes in “Arguments” in “Server Start”

有些话、适合烂在心里 提交于 2019-12-07 11:27:37
问题 I have an admin server, NodeManager, and 1 managed server, all on the same machine. I am trying to enter something similar to this to the arguments field in the Server Start tab: -Dmy.property=%USERPROFILE%\someDir\someJar.jar But when the managed server is started it throws this exception: Error opening zip file or JAR manifest missing : %USERPROFILE%\someDir\someJar.jar It appears that the environment variable is not being translated into it's value. It is just passed on to the managed

WebService is not “visible” in WebLogic 10.3

痴心易碎 提交于 2019-12-07 09:53:53
问题 I am currently trying to let my application provide a webservice. The application uses spring and is running under a Weblogic 10.3 instance. I built the webservice following the "contract first" approach. So what I basicaly have is a generated WS-Interface, my implementation of that interface, a web.xml defining the servlet-bindings and a sun-jaxws.xml defining the endpoint. (more or less similar to this: http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/). Now,

User (session) count in cluster

梦想的初衷 提交于 2019-12-07 09:34:05
问题 Is there a good way to get the logged in user count in a Java web application that is running in a cluster? I wrote a simple HttpSessionListener with a static field, but I suppose this doesn't work in cluster. I can see there is a Spring Security solution, but I read in some forums that this is still not ok in cluster. The product in which I have to implement this user count is trying to be application server independent, currently we support Tomcat, Weblogic and JBoss. At the moment I need a

Steps to deploy latest JSF version in weblogic 10.3

夙愿已清 提交于 2019-12-07 07:27:09
问题 I am going to start working on a new project and I am considering to use JSF latest version but our weblogic server version is 10.3 and I am not sure what are all the steps to follow to deploy JSF 2 application in weblogic 10.3 And also would like to know the IDE which supports to develop JSF2 applications. Currently I am using weblogic 10g workshop but it doesnt support the latest JSF version. Can someone tell me the steps to: Develop JSF 2 applications in Oracle workshop/Netbeans 6.9.1

How can I install one Web Application in two context roots in Weblogic 10g?

烈酒焚心 提交于 2019-12-07 05:42:29
问题 How can I install one Web Application in two context roots in Weblogic 10g? 回答1: This is a packaging issue. Package the WAR twice, each with a specific WEB-INF/weblogic.xml , to solve it. For the first WAR: <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app> <context-root>my-context-1</context-root> </weblogic-web-app> For the second WAR: <?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app> <context-root>my-context-2</context-root> </weblogic-web-app> This will allow you to use

Deploy to weblogic using maven and jenkins

依然范特西╮ 提交于 2019-12-07 01:01:00
问题 We are using Jenkins in our project for build and deployment on dev environments. I have sucessfullly created a war file using maven in jenkins and now I have to create another job to deploy that war file into the weblogic server. However, I am not aware of the required steps for configuring this job in jenkins. Will it be a matter of just invoking a maven deploy command? Can some one please tell me what will be the required steps to deploy a war file into weblogic 10.3.5 using jenkins? edit

weblogic.descriptor.DescriptorException: Unmarshaller failed

寵の児 提交于 2019-12-06 08:49:27
When i deploy my WAR in Weblogic 10.3.6 it runs but in weblogic 10.3.0 it throws this: Unable to load descriptor D:\bea103\user_projects\domains\SRVWinplex\Deployments\WinplexAdmin.war/WEB-INF/weblogic.xml of module WinplexAdmin.war. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306) at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader

ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver when trying to use JPA with Derby

夙愿已清 提交于 2019-12-06 03:55:37
A related query I asked: How to configure & package a simple Java app to use JPA I have a simple Derby database which I can connect to via EJBs hosted in WebLogic. Now I would like to connect to it from a command line Java app using JPA. So far this Java code + persistence.xml file is throwing the error below. What am I doing wrong? My directory layout: C:. │ Registrar.class │ Registrar.java │ TxnClient.class │ TxnClient.java │ └───META-INF persistence.xml Standalone client: import javax.persistence.*; public class TxnClient { public static void main(String[] args) throws Exception {