I've installed Netbeans 7.2. with GlassFish Server 3.1.2 but when I run web application the default jsp page or any other jsp pages I got the error:
GlassFish Server 3.1.2 Start Failed
C:\Users****\Documents\NetBeansProjects\WebApplication3\nbproject\build-impl.xml:1022:
Deployment error: GlassFish Server 3.1.2 Start Failed See the server
log for details. BUILD FAILED (total time: 47 seconds)
build-impl.xml
< target depends="init,-init-cos,compile,
compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,
-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy,
-do-update-breakpoints" name="run-deploy"/>
< target if="netbeans.home" name="-run-deploy-nb">
< nbdeploy clientUrlPart="${client.urlPart}" debugmode="false"
forceRedeploy="${forceRedeploy}"/>
////////////////////////
glassFish Server 3.1.2
SEVERE: Shutting down v3 due to startup exception : No free port
within range:
8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler#788a7b
I've found the solution. My 8080 port was reserved by Oracle. So I edited the domain.xml file inside glassfish\domains\domain1\ config\domain.xml file.
I replaced the port 8080 with 9999 and replaced the file. After that I added the glassfish server to netbeans, and now it is working.
Thank You everyone.
The error message states it clearly:
No free port within range: 8080
Probably there is another instance of Glassfish (or any other server) running on your system. Try to find it out by calling http://localhost:8080 in your browser.
**Another option to solve this probs
**Enter the following on the command line:
netstat -ao
The active TCP addresses and ports will be listed — locate the line with local address “0.0.0.0:80″ and note the PID value.
Now right-click the task bar and select Start Task Manager. Navigate to the Processes tab and, if necessary, click View > Select Columns… to ensure “PID (Process Identifier)” is checked. You can now locate the PID you noted above. The description and properties should help you determine which application is using the port.
The Task Manager allows you to kill the process, but be a little wary about doing that — especially if it’s “NT Kernel & System”.**
i had the same problem.
i solved it by configuring the glassfish with jdk7 instead of jdk8.
i dont know why it wasnt working with jdk8 but now the glassfish is running.
Related
I installed Wordpress Packaged by Bitnami and made a website on it. It was working fine the whole month but now the website stopped working and when access any of the following
http://localhost/wordpress/
http://localhost/wordpress/wp-admin
http://localhost/wordpress/phpmyadmin
I get the following error "Error establishing a database connection"
Manger Tool > Manage Servers shows MariaDB Database Stopped, Apache Web Server Running
When try to Start MariaDB it doesn't start and I get the following:
Manger Tool > Server Events
Starting MariaDB Database... Exit code: 1 Stdout:
Stderr: Unknown error starting mysql
What's the cause and solution?
mysqld
I would recommend you to check the mysqld log file regarding the errors you have, which are triggering it to not to run.
which is in /bitnami/wordpress-5.8.1-2/mariadb/data/mysqld.log
in this file you will find detailed information about the error.
UPDATE
After attaching the log file, I discovered that this issue is similar to this one How to fix Error: MySQL shutdown unexpectedly on Xampp due to Plugin 'Aria', and solution might be applied following the steps:
Remove aria_log_control file from /bitnami/wordpress-5.8.1-2/mariadb/data/
Start the service
I am trying to deploy my application built in ASP.Net 4.6.1. So I am using HWC Buildpack.
Below is my manifest.yml
---
applications:
- name: DRSN
random-route: true
memory: 128M
buildpack:
https://github.com/cloudfoundry/hwc-buildpack.git
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
The error that I am receiving is below.
Waiting for API to complete processing files...
Staging app and tracing logs...
Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 creating container for instance 34107c3c-1acb-4aa5-b435-b06516abcfcb
Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 successfully created container for instance 34107c3c-1acb-4aa5-b435-b06516abcfcb
Downloading app package...
Downloading build artifacts cache...
Downloaded build artifacts cache (231B)
Downloaded app package (19.5M)
Failed to compile droplet: Failed to compile droplet: fork/exec /tmp/buildpackdownloads/6c6dca8d638ac0d145d6581f9eb9a96a/bin/compile: permission denied
Exit status 223
Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 stopping instance 34107c3c-1acb-4aa5-b435-b06516abcfcb
Cell 0f7012eb-9e32-4fdf-ba92-85aee4639139 destroying container for instance 34107c3c-1acb-4aa5-b435-b06516abcfcb
Error staging application: App staging failed in the buildpack compile phase
Can anyone help me resolve this issue? Am I not correct in my manifest.yml? Or is it something else?
I believe that the problem is that you're telling the system to use the HWC buildpack, but at the same time you're not setting the Windows stack (at least based on what info I can see). That means it's going to default to the Linux stack, which I believe is why you're seeing the fork/exec /tmp/buildpackdownloads/... error.
Try adding stack: windows to your manifest.yml or -s windows to your cf push command (for future reference, when you need help always include the full cf push command you're running).
PS: you shouldn't use https://github.com/cloudfoundry/hwc-buildpack.git that is telling the system to grab the master branch in whatever state it's currently in. That's a.) not reproducible and b.) not guaranteed to be in a working state. You should either use the platform provided buildpack names (from cf buildpacks) or append #<branch_or_tag> to the end of the URL so it picks a specific branch. All CF Buildpacks have tags for each release. It's strongly recommended you use a tagged release.
I cloned Websphere application machine and changed the hostname by the wsadmin.sh script.
DMGR and Node started successfully but when I start the server I got this error:
ADMU0111E: Program exiting with error: java.io.FileNotFoundException: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/CELL01/nodes/AppNode/servers/server01/server.xml (No such file or directory).
Note: I can start the server from the console only
The problem recovered after synced the node with master configuration and granted read/write permission for directive /opt/IBM/Webspere and its relative sub directives, Thanks all for your contributions and support.
When I try to deploy my app locally I can't get it running. This is what it's telling me:
2014-10-24 13:16:08 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=3306', '--admin_port=8000', 'D:\\Documents\\Clever-CV Project\\wp39 - Copy']"
INFO 2014-10-24 13:16:15,315 devappserver2.py:733] Skipping SDK update check.
WARNING 2014-10-24 13:16:15,345 api_server.py:383] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2014-10-24 13:16:15,368 api_server.py:171] Starting API server at: http://localhost:49717
INFO 2014-10-24 13:16:15,381 api_server.py:583] Applying all pending transactions and saving the datastore
INFO 2014-10-24 13:16:15,381 api_server.py:586] Saving search indexes
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 82, in <module>
_run_file(__file__, globals())
<--ommitted-->>
raise BindError('Unable to bind %s:%s' % self.bind_addr)
google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:3306
2014-10-24 13:16:15 (Process exited with code 1)
And I am a noob - so there's a very good chance I did something stupid, but I'm at my wits end and have found everything I could online to try.
My SQL instance is running, the database passwords work and connect locally and to the remote app CloudSQL instance.
My app.yaml file has a new version name
the wordpress config file has the root names/passwords set-up correctly
The issue with running your app locally is in this part: '--port=3306' which is mysql's default port and you said mysql is already running which means that port is already taken and cannot be used by your app. Instead of 3306 try the default 8080 port and increase it by one (i.e. 8081, 8082, etc) in case you need to run multiple applications at once.
I want to cancel then start my build through url:
This how I starting my build:
http://<user name>:<user password>#<server address>/httpAuth/action.html?add2Queue=<build type Id>
but when I'm trying to cancel/stop it:
http://<user name>:<user password>#<server address>/ajax.html?comment=<cancel_comment>&submit=Stop&buildId=<internal_build_id>&kill
I'm getting exception:
Error message: Given kill operation code is null
TeamCity: 8.0.5 (build 27692)
Operating system: Windows Server 2008 R2 (6.1, x86)
Java: 1.7.0_21-b11 (Oracle Corporation)
Servlet container: Apache Tomcat/7.0.37
Trace: java.lang.IllegalArgumentException: Given kill operation code is null
Source: Accessing server by HTTP
I tried through REST API but didn't helped me.
I analyze js code in TeamCity and found 2 solution
Kill build by process id :
yourTeamCityUrl/ajax.html?comment=%somment%&kill=%buildQueueId%&operationKind=2&_readd=&submit=Stop
Kill build by build id:
yourTeamCityUrl/ajax.html?comment=%comment%&submit=Stop&buildId=%active_build%&kill&operationKind=1
only need to add &operationKind=1