Cannot start Enterprise Manager for Fusion Middleware 11g

jaramill
jaramill used Ask the Experts™
on
After successfully installing Oracle Fusion Middleware, I created a base_domain as default, and can start weblogic administration server (http://<machine>:7001/console) successfully.

Now I want to use the Oracle Enterprise Manager for Fusion Middleware 11g. Per "Oracle® Fusion Middleware Administrator's Guide 11g Release 1 (11.1.1)", the EM should be available now and to access it, the URL should be at http://<machine>:7001/em . But when I try to access it via a web browser, the following HTTP error is returned:

Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

So I try to start with emctl in $MW_HOME/oracle_common/bin/, where the environment variable variable MW_HOME is for the Oracle/Middleware home directory.  The error received is as followed:

./emctl: line 387 /d02/Middleware/oracle_common/perl/bin/perl: No such file or directory.
 
I check the path and find out that no directory named "perl" under /Oracle/Middleware/oracle_common exists. So I copied the necessary directory from the directory installed in the Oracle Database 11g ( $ORACLE_HOME ), but it returns following error:

OC4J Configuration issue. /d02/Middleware/oracle_common/sysman/j2ee not found.

I try to copy necessary dir from $ORACLE_HOME but still cannot start EM. And yes I did install into the EM (Enterprise Manager) module to the domain (did a quick check of the "config.xml")

My server environment is Red Hat Enterprise Linux 5 (where both the Oracle 11g database and weblogic servers are), but trying to start the EM console via Internet Explorer web browser on my client work PC (Windows XP Professional).

Thanks,
Gio
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try logging into the WebLogic console again http://:7001/console again and then, in the right navigation, clicking on deployments.  It sounds like the application either did not deploy as expected or is not active yet after it deployed.

Please take a look at this link and see if it offers any help:
http://forums.oracle.com/forums/thread.jspa?messageID=4277722�

Author

Commented:
Thanks Allen-Davis.  I checked and you're right it's in a "failed" state.  Is there anywhere I can check (i.e. logs) to see why it's failing?  I tried to restart it but it fails again.  Also the  URL you provided doesn't work.
The link should work.  I checked it again to be sure.

Are you running Windows or Linux?  For Linux, if this product is like other WebLogic based applications, inside the ORACLE_HOME directory structure, you should see something like user_projects/domains then the domain you created.  Inside of that directory, there should be a servers directory.  Under the server where this product is installed, you should find a .log file.  That will very likely have the reason why the application is in a failed state.

Also, you could try to start the application from the deployments tab and see if it gives you a reason why it failed to start.  I have seen those errors be useful in some cases.

Author

Commented:
Yeah the link doesn't work.  I get "The specified thread [0] was not found." on OTN.
I'm running on Red Hat Enterprise Linux 5.  I'll check those directories on Tuesday when I go back to work and I'll let you know my findings.
Try this link.  http://forums.oracle.com/forums/thread.jspa?messageID=4277722  The first post looked the same but had a question mark that ended up at the end of the URL.  Google Chrome looks like it was cleaning it off but the link finally broke for me in IE as well.
If you are running RHEL5, "locate" is likely installed.  If you're having a hard time finding the right directories, you can get a hint at to the right path to use by typing "locate config.xml" and that will point you to the configuration directory for the WebLogic domain.  From there, you can go to the servers directory instead of the config directory and look for logs in the subdirectories of the the servers directory.

Author

Commented:
Okay I found the logs directory in Oracle/Middleware/user_projects/domains/PADBFormsDomain/servers/AdminServer/logs

and in there the error I see is weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in WLS_REPORTS/stage/em/em.ear. The specific error is: [Deployer:149158]No application files exist at WLS_REPORTS/stage/em/

So my question is how do I get these em.ear files? In fact the em directory doesn't exist in the WLS_FORMS as well as REPORTS?

Author

Commented:
Also I got more insight. When I go to "start" my deployment of the EM (Enterprise Manager) it goes into a "start Running" state, then to a "Prepared" state. My guess is that it cannot find a "em.ear" file to then create the "em" directory "WLS_REPORTS/stage/em" then copy to it. This is so far what I've come up with. But other than that I'm stuck. My only other thing I can think of is (I'm grasping at straws here) is that my database is also installed on the same box (Red Hat Enterprise Linux) and that the ORACLE_HOME that is referred to is the db one. I know Middleware creates it's own and perhaps it's looking in the wrong directory? At this point, I don't know what to do.
Since this is RHEL5, you should be able to type "locate em.ear" and it will tell you the location of the em.ear file if it is on the server.  If things are in the right place, I would expect to see it here::
Oracle/Middleware/user_projects/domains/PADBFormsDomain/servers/AdminServer/uploads/em.ear

In the Java Enterprise Application server world, an .ear file is a sophisticated way of packaging up an entire "Enterprise Application" into a Enterprise Application Archive (EAR) file.  It is actually a "zip" file and could be unzipped and inspected with standard tools...but you don't need to worry about that at all.  That's just a bit of background if you wanted it.

Do you have any support for this product?  At this point, it might not hurt to open a ticket with Oracle and ask for a little guidance.  I know this is a specialized product with a custom installer but purely from a WebLogic perspective, it sounds like the em.ear file needs to be redeployed.

We at least know a little more about what we're trying to fix now:
What was traditionally called your WebLogic home back in the BEA days is: Oracle/Middleware
Your domain is called: PADBFormsDomain
and the application appears to be targeted to the admin server from what I can tell.

Can you go back to the Deployments tab, navigate to the em.ear file and click on it?  There should be a 'targets' tab.  Can you confirm where all the em.ear file is targeted?  If you can record the targets, you're probably really close to having the information you need to redeploy the application and see if you can get it going again.  There is an "Update" button on the deployments tab that you could click to go back through the deployment wizard for the em.ear file to ensure it is copied in the right location for the application to start.  This would be where I would focus my attention next if I were in your shoes.

Let us know what you find out.

Author

Commented:

Okay thanks for confirm what my co-workers (who are Java developers) explained to me what EAR files are.  Now I understand what they are....zip files! :)  Okay I think we have support for Oracle so I'll check with my mgmt to see if we have a Meta-link account.
What I am confused though is when installing Oracle Fusion Middleware, first I have to install the WebLogicServer, thus creating a domain I called (padb_domain) with console at port 7001.

Then when I installed OraclePortalFormsReportsDiscoverer, (I only selected Forms and Reports), it too created a WebLogicServer (with its own separate console URL at port 7002) then creates another domain which I called PADBFormsDomain and in this domain there are 3 servers: AdminServer, WLS_FORMS (in its own cluster on port 9001), WLS_REPORTS (in its own cluster on port 9002).  All 3 are running fine and I can run a FORM (the test.fmx that is provided and also a dummy form I created myself).
Now to adjust the settings for all forms I wanted to update them, and realized there's another EM (Enterprise Manager) besides the one I have for the Oracle 11g database.  Here's where I had problems.  I can't click on the Deployment module em and expand the node (i.e. the + sign) as it just hangs, and the state is still in "PREPARED".
I also did a locate em.ear, and nothing came up, so I tried find -name em.ear and came up with the following file locations:

DIRECTORIES
-----------
Oracle/Middleware/user_projects/domains/PADBFormsDomain/servers/AdminServer/tmp/.appmergegen_<long number>/em.ear
Oracle/Middleware/user_projects/domains/PADBFormsDomain/servers/AdminServer/tmp/.appmergegen_<long number>/em.ear
Oracle/Middleware/user_projects/domains/PADBFormsDomain/servers/AdminServer/tmp/.appmergegen_<long number>/em.ear
Oracle/Middleware/user_projects/domains/PADBFormsDomain/config/deployments/em.ear
FILES
-----
Oracle/Middleware/user_projects/applications/padb_domain/em.ear
Oracle/Middleware/user_projects/applications/PADBFormsDomain/em.ear
The first set of paths are not file(s) but actual directories called "em.ear"
I'm going to try to Stop the deployment, delete it then try to re-install it and then start it one more time, but I feel that it'll just be going in circles.  Hope this gives you more info.

Author

Commented:
Okay I was able to delete the em deployment module, then install it and restart it and was able to expand the node:  I see the following:
- Modules (/em) type: Web Application
- EJBs (none to display)
- Web Services (none to display).

When I went to Activate changes the error I received was:

An error occurred during activation of changes, please see the log for details.
[J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: oracle.webcenter.skin, exact-match: false].
So now it's still in the "Prepared" state.
When you created the domain, do you remember if you selected the component named something like "Oracle Enterprise Manager" in the domain configuration wizard?  If you're not sure, I think I can dig up the instructions on how to check. While researching this, I read that you should be able to "extend" an existing domain if this component is missing.
The error you're getting is basically saying the application can't find the application resources it needs to start up.

Author

Commented:
Allen:
   Yes I do remember selecting but still can't run it.  So I shutdown all the servers, and removed all the files and started from scratch.  Installed first the Weblogic server and named the domain "base_domain" which is the default name Oracle gives you.
Then I ran the installer for OraclePortalFormsReportsDiscoverer, and it too installed a weblogic server and asked to create a domain or extend an existing one.  I thought I could extend the "base_domain" but apparently that one can't be used to extend, thus created a new one again and gave the same name as before "PADBFormsDomain" and now I went through all the options and yes I did have Oracle Enterprise Manager checked off as one of the objects to install.  Once it's done, I'll keep you posted and give you more feedback.
Commented:
Allen:
  Unfortunately I think the answer was that I had conflicting variables when I installed the Oracle 11g database and it created an ORACLE_HOME which pointed to one directory path, then installed FusionMiddleware and used that ORACLE_HOME.  So I wiped out FusionMiddleware, had my sysadmin, create a separate user account, logged in under that name and installed it and then it created it's own ORACLE_HOME which starts as "Oracle/Middleware" whereas for the database it's something else.
This I believe to have been the issue and now, EM (Enterprise Manager) for both the database and Forms (separate URLs respectively) come up perfectly.  I want to give you some points for your help in writing back.  How do I go about giving you partial points?
Gio
hi guys,
i have same issue.but i have two domains(abcdomain and xyzdomain).one is working gd(abcdomain) another one(xyzdomain) is giving above issue.
forms and reports are running state but  url/em ,url/forms/frmservlets  and url/reports/rmservlets are giving below error

Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

this is sturture of my em.ear file
1.when i used find . -name "em.ear"    this is abcdomain(working gd)
./user_projects/applications/abcdomain/em.ear
./oracle_common/sysman/archives/fmwctrl/app/em.ear
2.in xyzdomain: find . -name "em.ear"
./applications/xyzdomain/em.ear
./domains/xyzdomain/config/deployments/em.ear
./domains/xyzdomain/servers/AdminServer/tmp/.appmergegen_1294849004575/em.ear

no em.ear file in console browser.i did everthing exactly correct what we are discussed above.but not solve.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial