I am trying to dockerize Weblogic 12.2.1.3 and deploy applications with Ant.
I faced multiple issues and after research I realised that weblogic.jar on /u01/oracle/wlserver/server/lib is empty.
In addition, there isn't any other weblogic.jar on the container and the console of Weblogic is accessible with servers running.
I am trying to understand why is it empty and how can I generate it on the container. A workaround would be to retrieve the jar and add it but it's not optimal.
Since WLS 12c, weblogic.jar is a "manifest only" java library.
If you take a look at the MANIFEST.MF file you will find a class-path entry including all jars required by WebLogic Server to run.
Related
I need to create a local environment to deploy an EAR, which is currently in production.
By documentation, it needs:
Java EE 7
Oracle WebLogic 12.1.2
Maven
Installed everything fine and configured, but this is my first time with Java Enterprise and WebLogic. I downloaded WebLogic from the official website (the 12.1.3 version, which is the only one available for a development installation). Executed all scripts to create a local domain, realm and server. It starts fine.
So, I proceeded generating the EAR within the source code, using mvn ear:ear and created the package.
Connected to localhost:7001/console and logged in, went into the Deployments Control page and clicked in install button. Browsed the EAR and deployed without changing any default configuration. It leads me to an error:
java.io.FileNotFoundException: class path resource [env.properties] cannot be opened because it does not exist
I thought it was a file missing inside the EAR package, but I opened it with both Eclipse and WinRAR and the env.properties file is present, in the right path. So I tried deploying the EAR package that is currently in production, but it still gives this error.
At this point, I think it's some WebLogic configurations I missed. Am I right? Where should I eventually check?
I can NOT share any code snippet, I'm sorry.
We still have to understand if it's like this by choice, but the WAR file inside the EAR actually didn't have the properties file. It was sufficient opening it with WinRAR, put the file in the right path and re-deploy it.
So, just to say, WebLogic had no missing configurations. The downloadable development package seems to have everything configured.
I deploy my application as ear in to weblogic. Even for a small change i need to build and restart my server. I am looking out for an easier solution where i could hot deploy my current changes.
I had already tried deploying ear as an open directory.
Can any body help me with this
weblogic uses a value in MANIFEST.MF to determine if the package to be deployed is a newer version of the current deployment. the value is 'Weblogic-Application-Version'. if you update this value, you can redeploy your ear file without stopping-starting the managed instance.
for more info: here
what is the main different is deploying a WAR file and deploy domain folder directly in web application?
I have deployed a web application in to weblogic 12.1.2 as a WAR file it work fine. But when i try to deploy same application as a domain folder directly I'm getting the following error.
java.lang.ClassCastException: weblogic.j2ee.descriptor.wl.WeblogicApplicationBeanImpl cannot be cast to weblogic.j2ee.descriptor.wl.WeblogicWebAppBean
I even fixed name space issue in weblogic-application.xml, also i checked duplicating element in weblogic-application.xml, I can't find any duplicate element in it. Can some one help me to solve this issue? Many Thanks.
You should consider using Maven to build both the WAR and EAR files. From there you should deploy the .ear file to Weblogic with no issues. Make sure your region properties are set correctly as well.
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...
Weblogic has an lots of documentation about this topic. Sometimes it's referred to as a "hot deploy" or an "in-place" deploy. In the weblogic admin console there is an option to update an ear file rather than what you are doing with the delete->redeploy method.
Just make sure to update your Weblogic-Application-Version property in the MANIFEST.MF of your ear so that weblogic knows it's a new version. Here are some useful links:
Oracle redeploy documentation
An older but still valid list of steps to hot deploy
That said - the problem you are seeing may be something different and your question will need to be updated with more details if the Oracle docs don't help.
We need to use jasper reports in web application under JBoss on AIX.
Today we get a problem when we tried to add xml-apis to WEB-INF/lib - JBoss did not start at all.
What should we do in order to use xml-apis under JBoss?
PS.
As far as I know we need org.w3c.dom.xpath.XPathEvaluator and org.w3c.dom.svg.*
Are you sure you need to? JBoss already has those APIs in its standard library set, your WAR should automatically have access to them. Try removing the JAR from your WEB-INF/lib.
The only way to replace JBoss's copy of that JAR is to place it in the top-level JBoss lib/endorsed directory, and make sure it doesn't clash. This will affect the entire JBoss server, though, so you need to very sure you know what you're doing. JBoss itself uses these libraries.