Deploying ear file in JBoss 6.2 - java

We have a EAR file which is working fine on our Wildfly server and is accessible through http://localhost1:8080/proj
Due to backward compatibility reasons (with another tool) we have had to install JBoss 6.2 and deploy the EAR on JBoss. Although the EAR deploys without any error, it returns 404 error when I go to http://localhost2:8080/proj.
No errors in logs are displayed either:
JBWEB000067: Status report
JBWEB000124: The requested resource is not available.
Do I need to rebuild the code with some changes? I would assume the same EAR file would have worked. Any help is much appreciated.

Related

FileNotFoundException when deploying in local Oracle WebLogic

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.

Java Ear application - Hot deployment

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

eclipse debug war deployed in weblogic

I have an application ear that is deployed into weblogic. Is there any way to debug an ear deployment?
Hoping ear deployment cant be debugged . I extracted the war from ear. Turned to war to physical folder by renaming the war extention to zip and then unzipping it.
Then pointed this physical location as deployment in weblogic. But then too its not working.
Any possible solution to debug an application deployed as ear using eclipse?
pls note weblogic is integrated into eclipse
The below link gives clear steps in setting up the remote debugging in your Eclipse/Weblogic setup:
how to debug java web application in eclips with weblogic server

Error - 403 forbidden on accessing my war deployed on web logic 9.x

I created a dynamic web project in Eclipse IDE.
Generated a build.xml for the dynamic web project.
Run build.xml to generate a war file(fip.war).
Deployed war on weblogic server 9.x
My web application does not contain weblogic.xml
There are no deployment errors in the console. But when I try to access my app
http://localhost:7001/fip
I get Error 403--Forbidden
Since context root is not specified anywhere in my application, it will be taken from the name of the WAR file right?
Please let me know what needs to be set/added to resolve the issue.
Thanks in advance

ClassCastException occured while deploying domain folder directly in Oracle weblogic 12.1.2

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.

Categories

Resources