Weblogic deployment error - oracle

I have deployed ear files in oracle weblogic server and i also configured datasource for that project. When i try to test it it is giving me this error.
"Message icon - Error weblogic.application.ModuleException: :org.springframework.beans.factory.BeanDefinitionStoreException:Invalid bean definition with name 'userContext' defined in class path resource [voyager-seats-usercontext.xml]: Could not resolve placeholder 'IDM.USERNAME'
Message icon - Warning Errors were encountered while performing this operation."
I restarted and reconfigured this app still it is giving error.

Related

Deploy error message on WebLogic 10.3.6.0

After fresh install of web logic, deployment shows the error:
Message icon - Error Failed to load webapp: MyWebApp because of DeploymentException:
weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext#992422938[app:MyWebApp module:MyWebApp path:/MyWebApp spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
Error Error: Unresolved Webapp Library references for "ServletContext#992422938[app:MyWebApp module:MyWebApp path:/MyWebApp
spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
I have Cloud service weblogic, initially is installed
jsf(1.2,1.2.9.0) - [Name:jsf] [Specification Version:1.2] [Impl. Version: 1.2.9.0]
jstl(1.2,1.2.0.1) [jstl, 1.2, 1.2.0.1]
When I try to install jsf-2.0.war - Error is
An application with this name already exists. Please specify a different name.
After I changed the name to something - Error is
The deployment has not been installed.
Message icon - Error weblogic.management.ManagementException: [Deployer:149105]An attempt was made to deploy a library located at '/u01/data/domains/wls_domain/servers/wls_adminserver/upload/jsf-2.0.war' with name 'jsf(2.0,1.0.0.0_2-0-2)' that is different from the one specified in the manifest of the library: 'jsf'.
Your web application requires the JSF 2 shared library which is not deployed in your server. Deploy this library first and then your application.

TIBCO BW 6.5 Debug error "qualifier bundle name: Application_Name.module " which needs to be resolved"

I am trying to debug an application in TIBCO BW 6.5, while debugging the application I am facing the error as:-
ERROR com.tibco.bw.thor.runtime.model.Constituent - The following error has occurred for "name: Application_Name.module version: 1.0.0.qualifier bundle name: Application_Name.module " which needs to be resolved.
Failed to start BW Application [Application_Name] due to exception [com.tibco.bx.core.faults.BxException]
Can anyone tell me why this error occurs and how to resolve this?
This is how you resolve this issue:-
1) Delete your Component binding (copy all your values first) and then recreate the same binding with same values as before. Then clean your projects.
2) Delete if some "Dependencies" are there in Module Descriptor, and then add them again. Clean your projects. Now run your application
3) If above doesn't work then try changing your workspace.
Thank you,
Rudra

"Connection cannot be null when hibernate.dialect is not set" and sessionFactory error

I want to import in eclipse and connect with PostgreSQL database. PostgreSQL is configured on another machine.
I have imported the war file in eclipse and changed 3 file with IP address of the machine where PostgreSQL is installed. Three files were hibernate.cnf.xml, spring-database.xml, na-dispatcher.xml. Like
jdbc:postgresql://192.168.1.15:5432/mydatabase.
After that I tried running the application in tomcat server with eclipse IDE.
I got error like
./web-inf/sping-security.xml
1
Connection cannot be null when 'hibernate.dialect' not set
Also an error regarding session factory and all.
I can't paste the code because we can't use internet in office. Please help me in resolving this. Tomorrow is the deadline. no code
2
Error creating bean with name ‘sessionFactory’ defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set

Spring-Boot template resolution fails when WAR is deployed

My Spring-Boot app works fine when running it via the Eclipse IDE (with S.T.S. 3.8.4 installed), with the embedded tomcat server.
I packaged it as a WAR and deployed it to a local Tomcat server.
When accessing the app, a blank page is returned. I discovered the exception in the Tomcat logs (on Windows, C:\<path-to-tomcat>\logs) An exception is thrown when trying to resolve the Thymeleaf templates:
2017-04-04 12:33:36.602 ERROR 5724 --- [io-12080-exec-7] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-12080-exec-7] Exception processing template "home": Error resolving template "common/layout", template might not exist or might not be accessible by any of the configured Template Resolvers (template: "home" - line 5, col 7)
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "common/layout", template might not exist or might not be accessible by any of the configured Template Resolvers (template: "home" - line 5, col 7)
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:865) ~[thymeleaf-3.0.2.RELEASE.jar:3.0.2.RELEASE]
The problem was the casing of the folder names.
I had my layout fragment in templates/Common/layout.html (notice the capital C in Common) and in my views was referencing common/layout, which worked within the IDE, but did not work when deploying a WAR on a Tomcat server. Maybe because the IDE ignores casing, and Tomcat is case sensitive?
It worked after changing the reference in my view to the correct casing of the folder, Common/layout

Need help in deploying warn using WSAdmin install with JNDI

I am trying to deploy a web application using WSAdmin tool. But it is throwing an error.
JACl script that I am using is :
$AdminApp install /opt/www/temp/SampleApp.war {-nopreCompileJSPs -nodeployejb -server delivery -cell delivery_cell -node delivery_node -appname SampleApp -contextroot SampleApp -MapWebModToVH {{"SampleApp" SampleApp.war,WEB-INF/web.xml default_host}}}
Error I am getting is:
com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for install task "MapResRefToEJB
ADMA0007E: A validation error occurred in task Mapping resource references to resources. The Java Naming and Directory Interface (JNDI) name is not specified for resource reference jdbc/app_DB in module SampleApp with EJB name.
From the error above I understand that I need to configure my JNDI with -MapResRefToEJB. I tried to understand this option but getting too confused.
Can anyone help me to resolve this issue?
These errors appear to be caused by the MapResRefToEJB option in
the wsadmin command not being set correctly, or the resource it is pointing to
not existing correctly in the web.xml file.
Additional information on MapResRefToEJB
Options for the AdminApp object install, installInteractive, edit,
editInteractive, update, and updateInteractive commands
http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_taskoptions.html
Thank you
Note : Opinions are my own.

Resources