weblogic-10.x

How to debug Java EE application using WebLogic 10.3

て烟熏妆下的殇ゞ 提交于 2019-12-03 15:40:23
I am using WebLogic 10.3 with a Java EE application. Can anyone please tell me how to debug this application? I think the other answers are somewhat wrong. For windows, if you setup an environment variable called debugFlag to be true or in solaris/unix do the same debugFlag=true export debugFlag DEBUG_PORT=8453 export DEBUG_PORT , then setDomainEnv.sh or setDomainEnv.cmd are going to be called to start WLS by the other scripts. They look for the debugFlag and DEBUG_PORT , as long as the "production" flag is not set it will pick up the right parameters from the script for debugging ( -Xdebug

NameNotFoundException when calling a EJB in Weblogic 10.3

风格不统一 提交于 2019-12-03 13:08:32
问题 I have a EJB defined as this: package com.foo; @Stateless (mappedName="HelloWorld") public class HelloWorldBean implements HelloWorld, HelloWorldLocal .... When it's deployed to Weblogic (WL), it gets the name myBean. I'm not sure if this is important. I try to call the bean with this code: Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); ht.put(Context.PROVIDER_URL, "t3://localhost:7001"); ic = new InitialContext(ht); tp =

NameNotFoundException when calling a EJB in Weblogic 10.3

时光怂恿深爱的人放手 提交于 2019-12-03 03:24:29
I have a EJB defined as this: package com.foo; @Stateless (mappedName="HelloWorld") public class HelloWorldBean implements HelloWorld, HelloWorldLocal .... When it's deployed to Weblogic (WL), it gets the name myBean. I'm not sure if this is important. I try to call the bean with this code: Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); ht.put(Context.PROVIDER_URL, "t3://localhost:7001"); ic = new InitialContext(ht); tp = (HelloWorld) ic.lookup("HelloWorld#com.foo.HelloWorldBean"); Anyone know why I get the following error?

Weblogic Deployment Exception : PaddingException: Could not perform unpadding: invalid pad byte

删除回忆录丶 提交于 2019-12-03 03:24:18
This question is asked (and answered) just to share some knowledge with the SO Community. I have recently came up with a deployment Exception of my web application (after receiving some changes from the SVN Repository) that said: < Error > < Deployer > with ID '1350377960779' for task '1'. Error is: 'com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.' com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte. at com.rsa.jsafe.c.a(Unknown Source) at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source) at weblogic.security

Adding custom object to JNDI on Weblogic 10

廉价感情. 提交于 2019-12-02 19:38:10
Is it possible to add a custom object (String or URL) to JNDI using Weblogic Server Administration Console (Weblogic 10.0) or by editing server's configuration file (config.xml)? I don't think so. Quoting Load objects in the JNDI tree : Using the Administration Console, you can load WebLogic Server J2EE services and components, such as RMI, JMS, EJBs, and JDBC Data Sources, in the JNDI tree. And indeed, I couldn't find a way to add a String or URL using the console. AFAIK, the standard way is to put an env-entry in your deployment descriptor (web.xml, ejb-jar.xml): <env-entry> <env-entry-name

JSF doesn't interpreted in seam

与世无争的帅哥 提交于 2019-12-02 18:24:42
问题 Hy guys, I installed jboss-seam on weblogic 10.3 (with many problem :( ) but now it's work, my application is deployed. But now, I have a new problem, my JSF isn't interpreted and the JSF code appears in HTML. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http:/

JSF doesn't interpreted in seam

喜夏-厌秋 提交于 2019-12-02 12:15:34
Hy guys, I installed jboss-seam on weblogic 10.3 (with many problem :( ) but now it's work, my application is deployed. But now, I have a new problem, my JSF isn't interpreted and the JSF code appears in HTML. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <listener> <listener-class>com.sun.faces

weblogic10.3 JSF2 built in jars

时光毁灭记忆、已成空白 提交于 2019-12-02 12:07:47
问题 In our application ,we are using JSF2 with weblogin10.3.4, The weblogic10.3.4 comes with JSF 2.0 ..We deployed JSF2.0 as library in weblogic. But when we deploy the jsf application,weblogic reports the ClassNotFound for JSF specific classes. Any one has tried this before... Thanks Vijay 回答1: Create a weblogic-application.xml like below. This forces to load classes under application library instead of weblogic jars. WebContent->META-INF->weblogic-application.xml <weblogic-application xmlns=

Weblogic Prefer application packages not working

别说谁变了你拦得住时间么 提交于 2019-12-02 05:35:00
问题 I am using Weblogic 10.3.6 portal server. Weblogic 10.3.6 always uses common-fileupload jar that comes with weblogic. But I want the server to use the one I have inside my war. Use case is I have war1 it uses apache jars which are inside war2. I added below lines in weblogic.xml of both wars but it is not working and still loading weblogic specific jars. <wls:container-descriptor> <wls:prefer-application-packages> <wls:package-name>com.sample.*</wls:package-name> </wls:prefer-application

javax.faces.FacesException: Could not resolve NavigationCase for outcome

依然范特西╮ 提交于 2019-12-01 16:55:23
I have one template.xhtml file at /template/template.xhtml <h:head> </h:head> <h:body> <p:layout fullPage="true"> <p:layoutUnit position="north" size="100"> <h:outputText value="header"></h:outputText> </p:layoutUnit> <p:layoutUnit position="center"> <p:layout> <p:layoutUnit position="north"> <h:outputText value="tabs"/> <ui:include src="/tabs/tabs.xhtml"/> </p:layoutUnit> <p:layoutUnit position="west"> <h:outputText value="left menu"></h:outputText> </p:layoutUnit> <p:layoutUnit position="center"> <h:outputText value="main-content"></h:outputText> </p:layoutUnit> </p:layout> </p:layoutUnit>