Manually edit Glassfish Server Path settings - glassfish

I added several JARs to my GlassFish server path and now the GlassFish Admin Console won't come up. It says "HTTP Status 404 - Servlet FacesServlet is not available". I think something I added is causing a JAR conflict with the admin tool. I would like to remove the stuff I added to the path, but I can't use the GlassFish admin tool to do it.
Can someone tell me how to manually edit the GlassFish server path values? Are they stored in a XML file somewhere? I looked around a little and couldn't find them.

I found the problem JAR (xercesImpl.jar). If I simply rename that JAR, then the GlassFish Admin Console comes up with no problem. Apparently GlassFish uses a different version and there was a conflict.

Related

Tomcat support on WebStorm

I am JavaScript developer, and currently working on project where Tomcat server is used.
I am familiar with IntelliJ idea but recently read about another JetBrains product specially for web-development - WebStorm. I've found some cool features in WebStorm(especially related to AngularJS autocompletion) but it seems that there is no Tomcat server support and I have to build server side of project into *.war-file and run it manually through terminal each time.
So is there any Tomcat/Java support in WebStorm?
(Or I should continue to use IntelliJ idea and forget about WebStorm and its cool functionality =) )
You can do one thing.
First start your apache tomcat server with startup.bat/startup.sh. (Suppose your project directory name is "AngularJSTest" in WebStorm.)
Right click on that > Refactor > Move .
Give the path to webapps directory of Apache tomcat.
So from now on whatever changes you make in the project from WebStorm, it will get reflected in the webapps directory. You can access it from the link http://localhost:8080/AngularJSTest/yourHtml.html.

Undeploy a failed Mule app

We have a Live mule server (Community edition ) 3.3.0 running on a Windows 2008 server.
We have several apps running on it.
We tried to hotdeploy a new app in it. It failed saying some port was already in use/bind - this was a JMX port. However we were unable to undeploy it. It didn't create any anchor file as it had failed deployment so we couldn't do the clean undeploy. When we tried to delete the exploded folder it didn't allow as it said the jars in the lib were in use.
We tried to re-deploy the same file with fix again but it had no effect.
Question is irrespective of what caused out application to fail - how can one undeploy or take out a Mule app (failed) completely? It doesn't have anchor file and trying to delete says jar in use. Only way we could do was to stop mule and then delete the folder and restart Mule - totally unacceptable in production environment.
Any clues?
This is a known bug on 3.3.0 that was fixed on 3.3.1.

Glassfish 3.1.2.2 Eclipse Plugin for Juno

Somehow, at some point, I installed this version of the Eclipse Glassfish Plugin for Juno:
Oracle GlassFish Server Tools 2.0.1.201207240829
I'm trying to help a co-worker install it too. But the latest version from the marketplace is
Oracle GlassFish Server Tools 2.0.1.201201241920
I think I must have gotten it from here which is referenced in this accepted anser but that site is now dead. That site is also referenced in this question
Does anyone know what the heck is going on with Eclipse Glassfish Plugin for Juno and Glassfish 3.1.2.2, and/or a different place from where we can get the version I seem to have?
Or else, tell me where I can report this problem to the team that maintains this plugin other than SO?
Oracle is currently migrating the GlassFish plugins - see
https://blogs.oracle.com/piotrik/entry/migration_of_eclipse_plugins_java
for details.
The old update site http://dlc.sun.com.edgesuite.net/glassfish/eclipse/juno/ is working again (despite appearing empty when you open the URL in your web browser).

How is Tomcat handled by IntelliJ IDEA 10.5

I am a newbie to IntelliJ IDEA. I was trying to deploy a web app in Tomcat.
It failed to deploy and i was not able to see any errors in the log console.
After much searching, I was able to find out the log files at
~/Library/Caches/IntelliJIdea10/tomcat/_p1/logs/ folder.
There were a bunch of log files here and one of the files contained the error. I then could solve the issue and proceed.
I was a user of eclipse and this error would have come directly in the log console in eclipse. However this is not the case in IntelliJ IDEA. Can somebody please explain what I am missing here?
Also, it would be nice if somebody could point out how the integration with Tomcat is done in IDEA (for better understanding). Note: I am using IntelliJ IDEA 10.5.2 Ultimate edition on Mac OS 10.6.8.
IntelliJ IDEA instructs Tomcat to use temporary directory as CATALINA_BASE where it places context configuration with the Artifact path from your project settings, it doesn't copy your web application into webapps directory.
In the Tomcat Run/Debug configuration there is Logs tab where you can specify custom logs to show in IDEA console, it should work out of the box, but probably you have customized logging in Tomcat configuration or in the application itself. Or maybe Tomcat 7 logging configuration is different and doesn't work with IDEA in which case you should submit a bug.
Here's some info for Windows users....if you check the boxes for 'Show console when stdout/stderr change', you may find that the Output tab does not show up even if stdout/stderr change.
For me, this was due to directory structure for the project containing spaces.
When I renamed the directory structure so that it did not contain spaces the Output tab showed up.
Found solution here: Cannot deploy project to tomcat inside intellij IDEA 14. Applications Context was incorrect.
Run/Debug Configurations -> Deployment tab -> Applications Context

How can I deploy an exploded web app through WebLogic 11g administrative console?

I need to deploy a web applicataion as an exploded archive (instead of .war) due to some legacy servlet path location code used in it (ServletContext.getRealPath()). I only have web-based admin console access to the WebLogic 11g server that I intend to deploy to. However, I can't figure how to do it. I see an option for deploying archives, but not directories.
Thanks!
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html
"WebLogic Server supports deployments that are packaged either as archive files using the jar utility, or as exploded archive directories".
The link
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html
is for version 8.1. In newer versions this option does not exist in the admin console (production mode).
The only way is if you somehow access the operating system, or ask somebody to, unzip the war file in some place and then install from that directory (through admin console). You can also upload the war using admin console, and then in the uploaded directory ask to whom as access to SO to unzip it in that place.
You can also try some ninja stuff like: upload the war that you want to expand. Then make another war that contains code that unzips the war you want to expand.
To solve your problem in weblogic11gR1,In admin console in configuration tab -->web-App container click the option "Archived Real path enabled" so that you can access the servletcontext.getRealpath().