weblogic12c

@Singleton bean failed to initialize because of not expected transaction status 4 when it's marked TransactionAttribute=NOT_SUPPORTED

旧时模样 提交于 2019-12-05 19:17:52
I'm having difficulty with my EJB3.1 bean initialisation and more specifically to do with it failing due to perceived transaction rollback, even though I've marked the bean with @TransactionAttribute(NOT_SUPPORTED) . This should mean that any client transaction is paused on bean method entry until exit (when it will be resumed. It's definitely the transactional apprach I want. The "gist" of the code and error are as follows (note some of it is hand-cranked to hide details but is all relevant and representative): @Singleton(name = "MyClass") @ConcurrencyManagement(value = BEAN)

FullAjaxExceptionHandler does not redirect to error page after invalidated session

一曲冷凌霜 提交于 2019-12-05 18:28:39
I am having issues with the Omnifaces FullAjaxExceptionHandler ( http://showcase.omnifaces.org/exceptionhandlers/FullAjaxExceptionHandler ). It does not redirect to the specified error page after the session is invalidated. I have the following in my faces-config: <factory> <exception-handler-factory>org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory</exception-handler-factory> </factory> And the following in my web.xml: <error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/pages/error/viewExpired.html</location> </error-page> After I

Error: Could not find or load main class weblogic.security.Encrypt

大憨熊 提交于 2019-12-05 16:27:11
I am trying to encrypt a database password for my Java EE Application in the terminal. according to this tutorial The steps are as follows: Change directory to your domain’s bin folder (For Eg. cd WLS_home\user_projects\domains\mydomain\bin) Use setDomainEnv.cmd/sh script to setup the environment Run java weblogic.security.Encrypt which will prompt for the password and will print the encrypted value in stdout. However, when I execute 'java weblogic.security.Encrypt', I am presented with the following: Error: Could not find or load main class weblogic.security.Encrypt I am developing my project

Error casting T4CConnection to OracleConnection

爱⌒轻易说出口 提交于 2019-12-05 16:07:30
Spring application using JNDI lookup to get datasource as following: @Bean(name = "dataSource1", destroyMethod = StringUtils.EMPTY) public DataSource dataSource() { final JndiDataSourceLookup lookup = new JndiDataSourceLookup(); lookup.setResourceRef(true); return lookup.getDataSource(this.environment.getProperty(Constants.DB_JNDI_NAME_ES)); } and getting a connection from the datasource as follows : @Autowired @Qualifier("dataSource1") private DataSource ds; Connection conn = null; conn = this.ds.getConnection(); But when i pass that connection to StructDescriptor it throws classCastException

WebLogic 12c - Destination unreachable exception

杀马特。学长 韩版系。学妹 提交于 2019-12-05 09:14:14
First, I had installed jdk 1.6.0_43 and oracle weblogic 12.1.1, I was successfully able to deploy my application. I then upgraded both my jdk (1.7.0_60) and weblogic (12.1.2), but was unable to deploy my application. Now, I downgraded my weblogic (12.1.1) but retained my jdk 1.7.0_60, but i was still not able to deploy my application successfully. In both the failure cases, I got the same error with the following message. Is there something with respect to java 7 I should be aware of? I tried searching for this a lot, but in vain.. [exec] javax.naming.CommunicationException [Root exception is

Weblogic upgrade to 12c: deployment fails because url mapped to multiple servlet

怎甘沉沦 提交于 2019-12-05 07:23:37
I've recently setup a new Weblogic 12c environment. On deploying an application that I know works in Weblogic 11g I get the error "The url-pattern /resources/* in web application is mapped to multiple Servlets." The mapping it's referring to is in the web.xml inside the application.ear that's being deployed, but it's only mapped once: <servlet-mapping> <servlet-name>velocity</servlet-name> <url-pattern>/resources/*</url-pattern> </servlet-mapping> The project doesn't contain any other references to the url pattern /resources/*, can someone explain where the duplicated mapping is coming from

java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype

我的梦境 提交于 2019-12-05 04:36:00
问题 I am using Weblogic 12c. I m trying to deploy myApplication.war in Weblogic. While deploying i get bellow error. An error occurred during activation of changes, please see the log for details. Message icon - Error java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype Message icon - Error javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype The same myApplication.war I am able to

How to solve NoSuchMethodError for javax.validation when deploying a spring boot application in weblogic server?

◇◆丶佛笑我妖孽 提交于 2019-12-05 02:23:24
问题 I am trying to deploy a simple spring boot application that will expose some rest api and I use hibernate entity manager to manipulate entity objects. When I try to deploy this application to Oracle Weblogic 12c, I get the following exception: <Jan 11, 2016 6:20:14 PM BDT> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java.lang.NoSuchMethodError: javax.validation.spi.ConfigurationState.getParameterNameProvider(

Spring 4.3.7 is throwing java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/DefaultIndenter

非 Y 不嫁゛ 提交于 2019-12-05 02:07:23
When I am migrating from spring 4.3.4 to 4.3.7 I am facing NoclassDefined error after adding Jackson-core dependency Caused By: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/DefaultIndenter I tried to add jackson-core <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.8.5</version> </dependency> dependency also

HttpSession setAttribute doesn't always insert new object

会有一股神秘感。 提交于 2019-12-05 01:52:07
问题 I am working on an upgrade from WLS10g and JavaEE6 to WLS12c and JavaEE7. I have noticed a difference on how HttpSession.setAttribute works. In WLS10, any object already stored under a certain key would always be replaced. In WLS12 the object is not replaced if newObject.equals(oldObject) . This is a problem for us, because the applications have objects like this: class ValueObject { int key; String data; @Override public int hashCode() { return key; } boolean equals(Object o) { if (o == null