I downloaded Appdynamics agent for Java, which required adding jvm option for glassfish server 3.1.2, for javaagent.jar, giving path of agent. user which application server runs on has full permissions on this folder. After adding this jvm in glassfish server 3.1.2, a restart of server is required. After executing restart, server could not start givng error: error opening ZIP file or JAR manifest missing C:AppServerAgent:javaagent.rar. I noticed that the option was not added in domain.xml file, but still the option is required for starting the machine. I tried to add it manually in the domain.xml file, but still no success. What can I do? now the appication hosted by glassfish doesnt start because the server is down.
Any help? Thank you in advance.
The asadmin manual page says the following:
For the Windows operating system in single mode, a backslash is
required to escape the colon and the backslash characters.
So try the following:
-javaagent:C\:\\AppServerAgent\\javaagent.jar
See also:
Oracle GlassFish Server 3.1 Administration Guide - Administering JVM Options
Related
so I've manually installed tomcat version 9.0.10 and the newest java JDK.
I've correctly added the manager-gui and admin-gui users. i have went into the server.xml files and found that all the ports were correct.. (connecting to default port 8080) I had to do []# unset CATALINA_HOME or else it wouldn't let me start tomcat so I did and it started but when I went to the browser and typed in the localhost:8080 it didn't show, it only says firefox could not establish connection with server localhost:8080 so I went into logs to see if there were any errors and sure enough there was an error like so: /usr/local/tomcat/apache-tomcat-9.0.10/bin/catalina.sh: line 464: /usr/bin/Java/jdk-10.0.2/bin/bin/java does not exist.. and its probably right why would there be /bin/bin/ like that in a directory.. so i went into the catalina.sh file copied what it had inside into a blank file in documents and went to line 464 (txt editor numbered the lines for me) and what i found was this line at 464: eval $_NOHUP "\"$_RUNJAVA" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER $JAVA_OPTS %CATALINA_OPTS\
but I have no idea what to do about it.. i think i might have a path problem or could be a port problem but I don't think so... I've installed apache and it works great in the browser with localhost.. could that affect the tomcat access maybe?
anyway, id really appreciate any help I can get.. I'm very new to this by the way. I'm sorry, I couldn't copy and paste from my virtual machine so I had to type it. im on centos 7.
I think you are looking for tomcat deployment page where you can manage your artifact. If that is correct
First thing you need to check is that whether your installation contains tomcat manager application.
You can verify this by looking in to this path ("apache-tomcat-9.0.10\webapps\manager") If this path is absent you may have to reinstall your tomcat.
Try downloading the zip from the below path and start the server.
If you are trying to deploy your custom application you may have to provide the context path for accessing you application. Also you can verify the deployment by looking in to the above path. For eg: if you are trying to deploy test.war then a folder named test will appear in the webapp folder.
Hope this helps.
I am running Ubuntu 16.04 and I need to install and run Restcomm JSS7 stack as a JBoss AS Service.
I followed this video tutorial to install JBoss AS 7. Then I set the JBOSS_HOME environment variable to installation directory of JBoss AS 7. As a result, I was able to start the JBoss AS successfully by executing ./run.sh in the bin sub-folder of the installation directory.
Then I followed this guide to install Restcomm JSS7 stack. For that, I downloaded restcomm-jss7-7.4.1404.zip, unzipped it to /opt/ and then navigated to the ss7-jboss sub-directory and then executed ant deploy,
and the result was
...
BUILD SUCCESSFUL
which according to the guide is an indication of the service deployed successfully.
Then I am following CHAPTER 4 SECTION 4.1 of this user manual to run it as a JBoss AS Service. According to it,
All you have to do to start the Service is start the JBoss AS. This
will automatically start the SS7 Service. To start the JBoss Server
you must execute the run.sh (Unix) or run.bat (Microsoft Windows)
startup script in the /bin folder (on Unix or
Windows).
TWO PROBLEMS:
My <jboss_install_directory>/bin does NOT have a run.sh script. Because of this reason, I tried by running JBoss AS by using the regular standalone.sh script.
Next in the user manual, it is stated:
Result: If the service started properly you should see following lines
in the Unix terminal or Command Prompt depending on your environment:
(Note: I have pasted the following excerpt from user manual here, since it is too long to paste in this question.)
But I see none of those lines in my terminal. Rather, my terminal output of running ./standalone.sh is pasted here.
So I don't know how and where to proceed from here. Please help.
NOTE: This question is NOT a duplicate of my other question. Like I mentioned in the question titles, this question is about why my JBoss AS installation doesn't contain a run.sh script, and what would be its alternative. The other question is about some possible command to find out the JBoss Services started when it is running? When a beginner is starting to learn something, their entire purpose Not getting the job done. They have many confusions/questions in their mind.
The documentation documents how to start a JBoss 5.1 server but your installation uses a JBoss 7.1 server, which is why you have to use standalone.sh instead of run.sh to start the server and why the logs are different.
Since you correctly reach the JBoss AS 7.1.0.Final "Thunder" started in 3955ms line I wouldn't worry too much (except about using a documentation that is clearly outdated).
The documentation of your product only declares compatibility with JBoss 5.1.0. While it may work on later releases, you might want to check if there's a more recent version of your product. I wouldn't recommend installing JBoss AS 5.1.0 as it isn't supported anymore and will contain security breaches.
Can anyone please explain the below problem.
I'm using tomcat 8 and when I'm trying to start startup.bat file, the command prompt is opening and closing immediately just like blinking. However in the past while I'm working with java programs it worked fine but recently I installed Xampp and there in it again tomcat is downloaded "C:\xampp\tomcat". The same problem comes here in this folder as well, when I try to run startup.bat file. But when I use "XAMPP control panel" to start the Tomcat its able to get start and I'm getting "localhost:8080" start page in the browser.
The connector port for both tomcats are 8080 and I tried with changing the port number in tomcat 8 but no use. There should not be 2 tomcat servers in a single system? If not, why? (I've not installed them, both are in C drive)
I want to work with java servlet programs now.So I need use of tomcat. I've set below environment user varibles:
JAVA_HOME to C:\Program Files\Java\jdk1.8.0_65;
path to C:\Program Files\Java\jdk1.8.0_65\bin;C:\apache-maven-3.3.9\bin
Please suggest the solutions.
Thanks in advance.
I think you should check the tomcat log to find some clues, it is in log folder of your tomcat installation folder. Maybe you have missed some startup variable in start.bat for your new installed things.
BTW, if you want to keep seeing what happened in startup, try to run startup.bat in a command line console, but not double click it through your mouse. It will continue on generating log output in that console.
I did the RAD set up recently and trying to start websphere server.
In the log, it hangs at the following line and get terminated after timeout:
Server server1 open for e-business
Thanks for the help.
In my case, I did following configuration which solved the issue and server started.
Double click on the server (in the servers tab).
In Server connection types and administrative ports select Automatically determine connection settings and save the changes.
Your workspace folder/name could be the issue.
the WAS installation itself. When moved it to C:\was8 everything started to work properly. The default puts it into c:\Program Files... and that was hanging at 23%
a. Please use websphere jre to replace sun hotspot vm to launch the eclipse, like below setting in the eclipse.ini
-vm
D:/IBM/WebSphere/AppServer/java/bin/javaw.exe
b. Please make sure there is not a specail character (like 23%) in the websphere path or eclipse workpsace.
Copy the jar com.ibm.ws.orb_8.5.0.jar from C:\IBM\WebSphere\AppServer\runtimes
to C:\development\endorsed and in eclipse.ini add this just JVM param (under -vmargs)
-Djava.endorsed.dirs=C:\development\endorsed
When I click on Run it displays the following error message:
Starting GlassFish v3 Domain
GlassFish v3 Domain start failed.
/Volumes/Private/noname/Sites/projects/java/MyFirstServlet/nbproject/build-impl.xml:602: Deployment error:
GlassFish v3 Domain start failed.
See the server log for details.
BUILD FAILED (total time: 2 minutes 0 seconds)
But then I fire up Terminal in mac and use asadmin start-domain and it starts.
And in netbeans I then Run the project and it fires up Safari and displays the content.
But why can't glassfish start in netbeans? Any idea?
I've met the same problem as I was learning java web programming, but in windows env. I've spent much time guessing what that error could mean because the log file wasn't clearly saying that. Finally I found out that glassfish v3 was trying to run on 8080 port, which was already occupied by reportingservicesservice.exe which is sql server service. I didn't get to know how to switch the port used by glassfish, but I found that in netbeans 6.8 (which I use) in tools->servers I can add a new glassfish server instance which runs on a different, free port - that solved the problem :)
Netbeans IDE X.X --> Tools --> Servers
Add Server --> Choose Server --> GlassFish 3.X
then click (next) browse installation location click (next)
select (register local domain) domain name : domain 2
click on finish button
My problem was with the port 8080, when I type http://localhost:8080, I found that oracle 10g was using it first before I install netbeans 6.8 with glassfish, I deleted oracle database 10g and, wich made the 8080 port free, and now everything is fine, it works.
I just had the same problem, and it happened because of a version mismatch between the local server (Glassfish 4.1) and the remote (Glassfish 4.0).
Only thing that comes to my mind is to check if the JAVA_HOME is properly set. Guess GFv3 requires it to be set to the bin folder in the JDK installation. Just guessing...
Go to following link there i've wrote solution for it...
http://forums.netbeans.org/post-65058.html
I just ran into this same problem with both glassfish and tomcat in netbeans 6.9. My problem and solution were both simple. The problem: tomcat was already running on my machine on port 8080 and therefore netbeans could not create a new instance of either. The solution: shutdown the running instance of tomcat and let netbeans start it up for you. Hope this helps.
You must change the port of glassfish. To do this:
join C:\Program Files\SEMS-v3\glassfish\domains\domain1\config open the file domain.xml
and change the text in 8080 by 9999.
After you do this, enter the remove server netbeans glassfish glassfish addServer then add it so that it can recognize the port changed. Then Started On glassfish server, then run your project.
Here is the link: http://www.srikanthtechnologies.com/blog/java/changeglassfishport.asp
Got the same problem, here are the steps I followed to solve it:
remove the glassfish server under "Services > Servers"
close projet and Netbeans
locate the install directory of Glassfish and go to domains (GlassFish_Server\glassfish\domains).
delete the "domain1" directory
start Netbeans
recreate a Glassfish server
Don't forget to recreate your data sources and connection pools
i have start to learn java recently,i have encountered the same problem too but i found out that when the first time the guidebook ask me to add a server, i put in user and password.
so i give another try to remove the server and add it again without the password.
and it is working.
I faced the same problem and solved by configuring my netbeans config file.
Find NetBeans 8.2\etc\Netbeans.conf file and search for this line :
netbeans_default_options="
Add --locale en to the end before quotes. Eventually this line looks like:
disableMemoryMapping=true --locale en".
Restart Netbeans...