Can not access Administrative Console - java

Good day,
Previously administrative console can access successfully. Start from today, not sure why it can not be access.
I working on RAD 8.5, I right click on my Server, point to Administration, then click on Run Administrative Console. Then I hit error as follow:
SRVE0255E: A WebGroup/Virtual Host to handle /ibm/console has not been defined.
SRVE0255E: A WebGroup/Virtual Host to handle localhost:9060 has not been defined.
IBM WebSphere Application Server
My server is working fine, because I can start it, and browse my app correctly, can log in and so on. But can not access to Administrative console.
Previously it was working fine, but suddenly can not access. I didnt change anything on it also.
Kindly advise.

I know this post is pretty old but seems I found a better answer when I was personally stuck.
The deployConsole.py script is located in the profile_root/bin directory. It should be used to redeploy the AdminConsole.
wsadmin.bat deployConsole.py install

Found a solution from a blog, and its solved my problem.
http://wcs-hub.blogspot.my/2012/03/resolved-unable-to-access-was-admin.html

Please follow below steps to resolve this.
Go to <>wasprofile\bin
run wsadmin.bat -lang jython -f deployConsole.py remove
wsadmin.bat -lang jython -f deployConsole.py install

Related

How to install Quercus on Linux with Tomcat 8

I have a running Tomcat server and recently wanted to get phpmyadmin used with MySQL on Linux. I have researched a bit and found that Quercus can be used for PHP on Tomcat. I then started my installation.
I have downloaded the quercus.war, put it under /tomcat/webapps/ROOT, restarted tomcat, and tested on browser. However it's not working, index.php gives "PHP files are not being interpreted by Quercus" which I think it means failure.
I then searched and tried to put the quercus.jar (from quercus.war) under /tomcat/lib/ then restarted Tomcat. It gives the same page and same message with index.php.
EDIT:
I have tried to modify /tomcat/web.xml, at the same time removed quercus.jar from /tomcat/lib and restarted tomcat. This time it gives HTTP 404,requested resource is not avaliable
My questions are:
Is there anything I missed or is there anything wrong?
Further, how do I install phpmyadmin after my installation of Quercus?
I decided not to use phpmyadmin and switch to VDBC. I put vdbc.war under /tomcat/webapps/ and restarted tomcat, everything goes fine now.
EDIT: I tried to put quercus directory under /tomcat/webapps/ and it works! However, I still cannot figure out how to make phpmyadmin run, is there any advice?

apache tomat7 not starting in browser?

Hi i'm using Apache Tomcat 7,with jdk 1.7 in windows 8. and i have installed tomcat successfully in windows 8,now i'm going hit URL in browser like"localhost:8080" it's work fine,after i open eclipse created web-application & i configured tomcat with that web-application,now i try to restart i'm getting error like!!
so for that,i have stopped tomcat in services(task-manger-service).now it will work fine(it get restarted in eclipse and works fine). when i hit URL in browser like"localhost:8080" i' getting error like ! and more i have added java_home,Catalina_home and also path.
can any one help me out it should work in both eclipse & browser?
First do
netstat -a -b -o
and see if ports that are configured in Eclipse Tomcat are free. If they are not free kill that process
taskkill /PID <pid>
Use /F flag if needed. You should get PID fro, netstat command. You should get Eclipse tomcat ports from Server tab of JavaEE perspective
Then start your tomcat.
PS : If you are getting 404 either you are entering incorrect URL or server is not up in the first place. In any case check the logs if you are getting 404.
Follow the below steps
Right click on your eclipse project
Select Refresh
Click the Run icon
It is not straight forward when you invoke Tomcat from within Eclipse. Please read the FAQ section at https://wiki.eclipse.org/WTP_Tomcat_FAQ
It explains how if you start Tomcat from within Eclipse, the binaries of original directories of Tomcat are used, but the web apps etc are stored separately in the Eclipse Workspace.

Websphere admin console not working

I have trouble opening the admin console for the websphere server. The server is up and running though, the application deployed and all. The only problem is with the console which gives a 404 error. Does anyone know how to fix this? Maybe reinstall/restore the console somehow?
Thanks.
You can try to reinstall the admin console :
Goto C:\[PATH TO PROFILE]\bin
Then run the Jython commands, first to cleanup, then to reinstall :
wsadmin -lang jython -f deployConsole.py remove
Wait till the admin-console is uninstalled.
Now reinstall of administrative console (isclite) will complete without errors (hopefully)
wsadmin -lang jython -f deployConsole.py install
Admin console should work now.
I had a similar problem. I was able to solve it by:
Deleting the existing profile
Creating a new profile
Running the WAS in RAD with that newly created profile
Profile management :-
Method :- RAD -> windows > prefereneces > server > websphere application server > selecting the websphere server 7.0 > click the run profile management tool button in the bottom section.
Check and make sure the DMGR is up and running on the primary node. Start --> Run --> Services.msc. Look for something that looks like "IBM WebSphere Application Server V6.1 - CellManager01" and ensure it is running. If not, browse to the installation location of Websphere "AppServer\profiles\Dmgr01\logs\dmgr" and look in the Systemout.log and the SystemErr.log for details. Also look in the "AppServer\profiles\Dmgr01\logs\ffdc" directory.
You can try this before trying to delete the new profile. I had this same problem where console was not coming up. I closed the RAD and re-opened it but didnt work. Go to Window --> Reset Perspective and then go to show view and get the console.
If still you cant see the console, go to customize perspective and click general and enable console.
If this doesnt work then only delete and recreate profile.

Eclipse Google Plug-In doesn't start server for web application

I want to try the Google Eclipse plug-in for the Google App Engine, but I get stuck in the tutorial...
I want to start the web application from the Google tutorial, but when I click on "RUN AS > Web Application", I only see this message on the console:
Usage: <dev-appserver> [options] <war directory>
Options:
--help, -h Show this help message and exit.
--server=SERVER The server to use to determine the latest
-s SERVER SDK version.
--address=ADDRESS The address of the interface on the local machine
-a ADDRESS to bind to (or 0.0.0.0 for all interfaces).
--port=PORT The port number to bind to on the local machine.
-p PORT
--sdk_root=root Overrides where the SDK is located.
--disable_update_check Disable the check for newer SDK versions.
What's the problem? It seems like the command to start the server is wrong, but I haven't edited it... can someone help?
It is because your launch configuration file (location: WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches)is corrupt. All you need to do to solve this problem is to delete the existing launch configuration (in Run > Run configurations)
Check if your Eclipse Project or GAE SDK has spaces in the path.
The problem occurs when using blank spaces in the project name.
"Run Configurations> Arguments > Program Arguments", insert quotation marks in the project path. i.e.:
--port=8888 --disable_update_check {PATH}\My Project
To:
--port=8888 --disable_update_check "{PATH}\My Project"
I found it from this thread
Thanks a lot
Some additional information to what's already been said.
You need to install "m2eclipse" otherwise you will not have the "run as" option.

how to use appcfg.py for google-app-engine projects created using google's eclipse plugin?

I have created a google-app-engine java project in Eclipse using Google's Eclipse plugin. My previous attempt to deploy failed. Now, when I retry, I get the following message:
Unable to update app: Error posting to URL : http://appengine.google.com/api/appversion/create?app_id=mybdaywisherversion=1
409 conflict
Another transaction for this user is already in progress for this app and major version. That user can undo the transaction with appcfg.py's "rollback" command.
Now, I have always used the google-app-engine features from inside Eclipse only and have not a clue how to run the appcfg.py command.
Could not get much help from documentation available over the internet. The only thing I could make out was for mac (I'm on mac), the command to be used is appcfg.sh. Inside Eclipse, I looked where App-Engine SDK is located on my machine and went to that location.
Even found appcfg.sh there. But when I try to run it, it only reports the error "command not found". Tried various alternatives to run it (like tried running it with sudo, tried running it as ./appcfg.sh by going to whether its located) but no success
Can someone please tell me the step I will have to follow to run the apcfg command?
As the result of an Internal Server Error during app deployment,
I am now left with a pending transaction, that I need to rollback
before I can deploy again.
Creating staging directory
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
java.io.IOException: Error posting to URL:
409 Conflict
Another transaction by user is already in progress for this app and major
version. That user can undo the transaction with appcfg.py's "rollback"
command.
this was how I did it (all from the command line) which is a slightly simpler
method, which achieved the same effect.....
C:\Documents and Settings\Amit\My Documents\newproject>"C:\Program
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.5.v200909021031\appengine-java-sdk-1.2.5\bin\appcfg"
rollback war
Reading application configuration data...
2009-09-17 20:47:35.859::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
Beginning server interaction for idebanet...
0% Rolling back the update.
Success.
Cleaning up temporary files...
C:\Documents and Settings\Amit\My Documents\newproject>
Courtesy:JOHN
I dont think these answers were that helpful.
using the commmand line cd into you application directory. for me this is
cd /Sites/appengine_myapp
Now you have done this.
appcfg.py --no_cookies --email=YOUR_EMAIL_HERE#gmail.com --passin rollback ./
You should be prompted for your password.
Try running appcfg.py with rollback option. See the docs:
appcfg.py [options] rollback
Undoes a partially completed update for the given application. You
can use this if an update was
interrupted, and the command is
reporting that the application cannot
be updated due to a lock.
for mac / linux user:
1.cd /"sdkdirectory"/bin
2. chmod +x appcfg.sh
3. ./appcfg.sh -s appengine.google.com -e XXX#Gmail.com rollback /Users/"...."/workspace/yourapp/war
Better perspective gained about the problem.
Documenting the problem here for the benefit of on-lookers:
I was using Google's Plugin for Eclipse for a Google App Engine project. An attempt to deploy the application on app-engine server failed because of network problems. Subsequent attempts were failing because the previous attempt had created some kind of lock and that transaction had to be rolled back. The plugin does not provide any way to do this. One has to use appcfg program over command line to rollback. http://code.google.com/appengine/docs/java/tools/eclipse.html has details. The problem I was facing was occuring becuase of OS level permissions on appcfg.sh. Ga ve permission to self using chmod and could get it working.
When you are using Linux, try a solution posted in this link:
http://www.patternizando.com.br/2011/04/another-transaction-that-user-can-undo-the-transaction-with-appcfg-pys-rollback-command-gae/
for deploying your application using command line , follow these steps:
cd "/Library/Google/google_appengine"
./appcfg.py update "path-to-project/src"
you will be prompted for your email and password.
I was having issues to run those appcfg provided by Eclipse. I had to install Python+ App Engine sdk for python and benefit from appcfg.py functinnalities. It was on Windows though.

Categories