我们开发了基于Seam 2的Java EE 5应用程序,该应用程序可在Weblogic 11g上运行。
现在,我尝试按照与以前的WLS相同的步骤,将相同的WAR文件部署到新的Weblogic 12c(在本地Windows 7计算机上为12.1.1.0),包括部署所需的JSF 1.2库。
应用程序的部署和启动工作正常,但是当我在浏览器中打开URL时,出现500错误,并且日志文件显示以下异常:
java.lang.UnsupportedOperationException
at javax.faces.application.Application.getResourceHandler(Application.java:287)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:588)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
...
Run Code Online (Sandbox Code Playgroud)
类Application中有问题的操作属于JSF的2.0版本,由于我声明要使用JSF 1.2,所以我不明白为什么容器会尝试调用它。
有什么想法会导致问题,以及如何将现有的Java EE 5应用程序简单地迁移到WLS 12?
编辑1/2/12:由于没有答案,也许有一点赏金会有所帮助吗?;-)不好意思,有什么我可以提供的细节来帮助我吗?
编辑1/5/12:与cj91请求有关-该项目不是基于Maven的,因此没有POM。但是这是部署描述符weblogic.xml:
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<library-ref>
<library-name>jsf</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.2</implementation-version>
<exact-match>false</exact-match>
</library-ref>
</weblogic-web-app>
Run Code Online (Sandbox Code Playgroud)
这是蚂蚁建造的罐子清单:
commons-digester.jar
jboss-seam-debug.jar
jboss-seam-excel.jar
jboss-seam-ioc.jar
jboss-seam-mail.jar
jboss-seam-pdf.jar
jboss-seam-rss.jar
jboss-seam-ui.jar
jsf-facelets.jar
jxl.jar
richfaces-impl.jar
richfaces-ui.jar
standard.jar
jstl.jar
jsf-api.jar
commons-collections-3.2.1.jar
commons-lang.jar
jboss-seam.jar
persistence-api.jar
jta.jar
jsf-impl.jar
darkX.jar
glassX.jar
laguana.jar
antlr-runtime.jar
commons-beanutils.jar
core.jar
drools-templates.jar
drools-decisiontables.jar
drools-compiler.jar
drools-api.jar
drools-core.jar
janino.jar …Run Code Online (Sandbox Code Playgroud) 我有EAR文件包含jar和war packages.this ear文件正确部署在glassfish上但是当在weblogic 12c上部署这个ear文件时,得到此错误:
无法访问所选应用程序.AppMerge流中的错误异常'进展错误异常在AppMerge流中'进展错误无法解决工厂声明中的死锁错误无法解决工厂声明中的死锁
我检查application.xml和jar的名称和war包是否正确.有人有解决这个问题的想法吗?
所以我有一个MySQL数据库,我在WebLogic的本地实例上有一个连接到该数据库的数据源.我正在尝试编写一些只需连接和查询的客户端代码.我在从数据源获取连接时遇到问题.到目前为止,这是我的代码.我正在运行WebLogic 12c.
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class ConnectionTest {
public static void main(String... args) {
ConnectionTest tCon = new ConnectionTest();
tCon.TestConnection();
}
public void TestConnection() {
Context ctx = null;
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try {
Hashtable<String, String> props = new Hashtable<String, String>();
props.put("java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory");
props.put("java.naming.provider.url", "t3://localhost:7001");
props.put("java.naming.security.principal", "weblogic");
props.put("java.naming.security.credentials", "welcome1");
ctx = …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 weblogic 上启动服务器,收到此错误:无法访问与机器 P360DeploymentMachine 关联的节点管理器。
这是我在 WebLogic 上的机器和节点管理器:

我得到的错误:

我刚刚为WebLogic Server版本12.1.3.0.0创建了一个身份验证提供程序,(身份验证提供程序通过在许多可配置的JAAS LoginModule之上构建身份验证序列来遵守标准JAAS框架.)但是当我启动Wl I时有这个错误:
这里的步骤:
1)设置ENV
%WL_HOME%/server/bin/setWLSEnv.cmd
Run Code Online (Sandbox Code Playgroud)
2)生成MBean和stubs:
java -cp %WL_HOME%/server/lib/* -verbose -DcreateStubs="true" \
weblogic.management.commo.WebLogicMBeanMaker -MDF WSAuthentication.xml \
-files C:\Development\Workspaces\Eclipse\WLAuthenticationProvider\src
Run Code Online (Sandbox Code Playgroud)
3)使用生成的存根和MBI文件打包认证提供程序和登录模块.
java -DMJF=C:\Development\Workspaces\Eclipse\WLAuthenticationProvider\jar\WSAuthentication.jar \
-Dfiles=C:\Development\Workspaces\Eclipse\WLAuthenticationProvider\src weblogic.management.commo.WebLogicMBeanMaker
Run Code Online (Sandbox Code Playgroud)
4)在startWebLogic.cmd中添加-DUseSunHttpHandler = true
weblogic.security.service.SecurityServiceRuntimeException: [Security:090877]Service Common JAASAuthenticationService unavailable, see exception text: com.bea.common.engine.ServiceInitializationException: com.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for MyAuthentication is not specified.
at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:155)
at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:315)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doATN(CommonSecurityServiceManagerDelegateImpl.java:731)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.postInitializeRealm(CommonSecurityServiceManagerDelegateImpl.java:515)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.postLoadRealm(CommonSecurityServiceManagerDelegateImpl.java:861)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.postInitializeRealms(CommonSecurityServiceManagerDelegateImpl.java:927)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.postInitialize(CommonSecurityServiceManagerDelegateImpl.java:1109)
at weblogic.security.service.SecurityServiceManager.postInitialize(SecurityServiceManager.java:943)
at weblogic.security.SecurityService.start(SecurityService.java:159)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:78)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1017)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:388)
at …Run Code Online (Sandbox Code Playgroud) 我想将Java与JMX一起使用以监视WebLogic。我需要使用WebLogic lib目录中提供的wlclient.jar。
我可以使用任何Maven存储库下载wlclient.jar吗?我发现的唯一方法是将jar文件手动导入到我的存储库中,但这不是我的选择。
我正在将我的应用程序从Weblogic 9迁移到12c.
连接池 - 为我的应用程序创建的cvSybasepool在Web逻辑9上正常工作.
我使用com.sybase.jdbc.SybDriver连接到Weblogic 9上的Sybase数据库.
在Weblogic 12c上复制连接池(cvSybasepool)后,出现以下错误:
<Jun 21, 2016 4:40:25 AM EDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "cvSybasepool" due to error weblogic.application.ModuleException: weblogic.com
mon.resourcepool.ResourceSystemException: Cannot load driver class com.sybase.jdbc.SybDriver for datasource 'cvSybasepool'.
weblogic.application.ModuleException: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class com.sybase.jdbc.SybDriver for datasource 'cvSybasepool'.
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:350)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:175)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:170)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class com.sybase.jdbc.SybDriver for …Run Code Online (Sandbox Code Playgroud) 我们正在将J2EE应用程序(JSP和EJB 2.0)从WebLogic Service 8.1升级到12c(12.2.1.1.0)。我们正在将爆炸的EAR构建到domain目录中的目录。我们使用管理控制台来部署应用程序,但由于失败weblogic.management.DeploymentException: Application <appname> does not have any Components in it.
日志中将显示以下内容:
####<Sep 26, 2016, 6:16:08,62 PM EDT> <Error> <Deployer> <CVG-000216B-010> <BaseServer> <[STANDBY] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9b2f9073-e2d2-4c02-915c-4e5de240621e-00000012> <1474928168062> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149265> <Failure occurred in the execution of deployment request with ID "25758041366812" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.management.DeploymentException: Application [MyApp] does not have any Components in it."
weblogic.management.DeploymentException: Application [MyApp] does …Run Code Online (Sandbox Code Playgroud) 我在WebLogic Application Server 12.2.1.1上的JSF 2.2上运行了一个Web应用程序.
我有一个简单的java类,并尝试使用CDI将其初始化为ApplicationScoped对象.作为WAR,它可以完美地部署.
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
@Named
@ApplicationScoped
public class AppContext {
public AppContext() {
}
}
Run Code Online (Sandbox Code Playgroud)
但是,当我将此WAR添加到EAR时,它无法部署.我正在尝试所有可能的解决方案,此时似乎没有任何工作.异常日志如下:
weblogic.management.DeploymentException: CDI deployment failure:WELD-001414: Bean name is ambiguous. Name appContext resolves to beans: [Managed Bean [class beans.AppContext] with qualifiers [@Default @Any @Named], Managed Bean [class beans.AppContext] with qualifiers [@Default @Any @Named]]:org.jboss.weld.exceptions.DeploymentException:WELD-001414: Bean name is ambiguous. Name appContext resolves to beans: [Managed Bean [class beans.AppContext] with qualifiers [@Default @Any @Named], Managed Bean [class beans.AppContext] with qualifiers [@Default @Any @Named]] …Run Code Online (Sandbox Code Playgroud) 当前,我们使用以下框架开发了jersey 2.0 restful应用程序:
该应用程序可在tomcat 8.5&Weblogic 12.1.x服务器上完美运行
但是,当我们尝试将其部署到 Weblogic 12.2.1.3
<Oct 6, 2017 10:32:23,020 AM HKT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "214569275552728" for task "1" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: org.glassfish.jersey.internal.ServiceConfigurationError: org.glassfish.jersey.server.spi.ComponentProvider: The class org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider implementing the provider interface org.glassfish.jersey.server.spi.ComponentProvider is not found. The provider implementation is ignored."
weblogic.application.ModuleException: org.glassfish.jersey.internal.ServiceConfigurationError: org.glassfish.jersey.server.spi.ComponentProvider: The class org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider implementing the provider interface org.glassfish.jersey.server.spi.ComponentProvider is not found. The provider implementation …Run Code Online (Sandbox Code Playgroud) weblogic12c ×10
weblogic ×6
java ×4
java-ee ×2
deployment ×1
ear ×1
hk2 ×1
java-7 ×1
jdbc ×1
jersey-2.0 ×1
jsf-2.2 ×1
maven ×1
mysql ×1
repository ×1
seam2 ×1
security ×1
war ×1
weblogic11g ×1