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.
Related
I have a remote server with Java running to which i have SSH access.
I am writing an app on the local machine, building it with maven.
Is it possible to set the IDE Itellij IDEA to run my project remotely? The idea is : to build the jar, copy it to the server, and debug the process ( or something like that).
It would be nice of you to share the settings i need to setup.
This is what I usually do to debug my remote app.
Run the server on debug mode
This can be adding this particular line when you run your application server
-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=9999
for JDK above 1.4, you can use this
-agentlib:jdwp=transport=dt_socket,server=n,suspend=n,address=9999
After that, run your application server
SSH Tunneling
I'm not 100% sure that you can access to your application's port directly if you're using ssh connection (well, maybe there is a way ;) ). So, first we need to expose the port for debugging that we set on first step by running this command.
ssh -f user#personal-server.com -L 9999:personal-server.com:9999 -N
Setting up the IDE
You can follow the step that #SSJVegito has said, which basically, is to point the debugger to the port 9999. Open the debug configuration in your Idea, then Change the circled value to 9999. Then, happy debugging :D
I think it's possible, I was able to do such a thing with a local server I was using to deploy my application. And since you have access to the server, it should work for you as well.
What you need to do in IntelliJ is create a Remote configuration. To do that, open IntelliJ and next to the run button (on the left), you should have your configurations, designated by a down arrow. Click that arrow and click Edit Configurations. A new window should open. Click the + sign in the upper left corner and the select Remote. A new window should appear. We now need to set the host and the port which the server uses for debugging (if you are using tomcat, it is usually 8000; in tomcat, you can locate it by opening the catalina.bat file with a text editor and looking for the JPDA_ADDRESS property, which allows you to change the port). Give your configuration a name and press Apply.
Afterwards, you need to run your configuration in Debug mode. You need to select it from the configuration list and press the Debug button located to the right of the Run button.
More details here:
http://blog.trifork.com/2014/07/14/how-to-remotely-debug-application-running-on-tomcat-from-within-intellij-idea/comment-page-1/
http://eclipse.org/jetty/documentation/current/debugging-with-intellij.html
http://www.javaranch.com/journal/200408/DebuggingServer-sideCode.html
I hope this helps.
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.
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
I am a noob. I just downloaded the liferay with jboss 7.0.2. I had it installed on mt laptop by watching the youtube. I got it started by just using command line console. I successfully got it setup and running on the localhost. I turned off the command line console after I got it done.
Then I tried to open it one the browser by the localhost and it is not working now. Now I cant go back to the platform.
I tried to go under the cmd again and enter
{the folder}\jboss-7.0.2\bin\standalone.bat
It shows me that it was calling another file called "standalone.conf.bat"
Now my environmental variables are
JAVA_HOME C:\Program Files\Java\jdk1.7.0_04\bin
JAVA C:\Program Files\Java\jdk1.7.0_04\bin
I need to start the thing start.. please help me
If you working with Tomcat (as per your last comment), then you should go to bin/startup.bat file (windows) or startup.sh (linux).
Now :
1) If your console does not start, that means, either some problem with tomcat configuration (CATALINA_HOME variable) or java configuration (JAVA_HOME)
2) If it starts, but hangs when configuration of data (default sql scripts), then there is a problem with database configuration that you did in portal.properties file, or default HS SQL DB.
3) If it hangs somewhere else, there must be some issue with the default port of the server.
Hope this helps.
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.