Tomcat on Mac OS Yosemite (for iteraplan) - java

for those who are familiar with the web application iteraplan, I really need help. I've been having trouble getting iteraplan to work on my Mac because some factors or requirements can't be fulfilled.
For this reason I needed to install Tomcat since it's a web application but I'm a newbie to it. Tomcat doesn't work even though I installed it properly, moved it to the right folder and made sure that Eclipse recognizes it as a server. When I'm trying to open anything on Tomcat on my localhost I can't open further pages of Tomcat because I always receive the same error:"The requested resource is not available" When I'm trying to run the web application iteraplan through my terminal, the localhost doesn't open either and I get the same error.
I already changed most of the server file (which seems necessary for getting the web application to work) but that doesn't help either. Is there anything I might gave forgotten? Maybe something I would have to launch or something?
I would be glad for any advice because I desperately need this to work for my thesis.
Thanks in advance.

Yash, have you made sure that your Tomcat installation is working properly? You should be able to access the manager app (usually under localhost:8080/manager/html) and see all running applications, regardless of whether you have iteraplan deployed on the server or not. Also, to run iteraplan, you need a database (details can be found in the iteraplan installation guide: http://www.iteraplan.de/wiki/display/iteraplan34/Installation+Guide). Finally, if you just want to run the application, without modifying the code, it would be simpler to download one of the bundles available in sourceforge (http://sourceforge.net/projects/iteraplan/files/iteraplan Community Edition/). They have a Tomcat server and a database included.

Related

How do I update glassfish 4.1.1 inside netbeans 8.2

I am working on a tutorial using glassfish inside netbeans https://netbeans.org/kb/docs/javaee/ecommerce/setup.html . I reached this point in the tutorial (Don't mind the Pool name, I changed it to fit my own)
But when I click next I get this error
I read on the internet that some people say this error occurs cause there is a bug in glassfish version 4.1.1 but when I try to update glassfish from inside Netbeans
And I click yes then I get this error
It doesn't help either if I go into the glassfish admin area and click on Update tool
Cause no Items show up even though there have been updates since and glassfish is now on version 5.0. I by the way checked if I was behind a proxy here http://amibehindaproxy.com/ and I wasn't and my internet speed showed this
So is there anybody who can tell me what I do wrong??? There are some other post about the subject but non of the solutions helped me.
The Update Center in GlassFish no longer works because the server it tries to connect to does not exist any more after Oracle ended commercial support. To update GlassFish you will need to:
Download GlassFish separately
Unzip it to a location of your choice
Add it to netbeans manually by right-clicking "servers" and choosing "Add Server"
If you are concerned about bugs in GlassFish, you may want to try Payara Server, which is derived from GlassFish but has many more bug fixes. (Payara Server has the same free, open source license as GlassFish)

Tomcat error? Or something else?

My problem is that sometimes when i'm working in Eclipse IDE (using Tomcat 8),something goes wrong.It gives me a HTTP 404 error code, which seems obvious for the first look, but the problem is not with the configuration or anything like that,because this happens even with working projects.The only difference i see is that the tomcat is starting faster when i run the project(then i know i will get a 404 error),even if that worked before.Or its loading faster as i mentioned but when i change something its not "loading" that.But here comes the interesting thing,if i make changes in the design which worked already, the changes appears after a refresh/restart.But for example if i delete or change a controller that keeps working or not(depends how was before)One more interesting thing.When i get 404 error and i see its loading faster, and i try to start the server again without stop it,its not asking me if i want to restart it...just brings up the index page.So sometimes its not working the project at all....(404 error)...and sometimes just not "updadeting" it.When this happens i try to clean tomcat/web directory, clean the project, restart the tomcat several times or just restart Eclipse.But even all this sometimes has no effect,and i loose a lot of time with it...
Anyone faced something similar before?And have a solution for this? Or an idea what causing this?
Thanks in advance.
Without your code, It's hard to determine your issue, but as deep I recognized you must some bits slipped in Tomcat Server Configuration in Eclipse Server.
Install and Configure Apache Tomcat Web Server in Eclipse IDE
You should upload your code so that we can see what is the problem here.
Anyway try reinstalling Tomcat and follow the configuration steps. The error ERROR 404 usually caused when the server could not reach what you requested. In your case the Tomcat is not starting. Reinstall and reconfigure it again.

Distributing a glassfish server application

So ive made a client-server application with java and Netbeans , the server is a glassfish server and they communicate with SOAP .
Everything is working perfectly , but the problem is that its a uni project and they dont look at the source code , they need binaries or jars .
Now when you build a web app , the IDE generates a .war file that would be deployed in your glassfish server (thats how i know it works , correct me if im wrong) .So in order for it to work on another PC that PC would need to have glassfish installed ?
Usually the teacher would click some "client.exe" and a "server.exe" and test things out , but im afraid this wouldnt work this time .
Is there a way like an .exe that opens a window and one would select what .war to deploy or the teacher has to install glassfish and go to admin page and deploy the war just like i would do on my PC ? if its the only way i can include a glassfish installation with some tutorial in a power point to explain how to deploy the app ... but i wonder if theres a fool-proof way since i dont know if my teacher is smart enough to do it the right way .
Actually he would need to deploy the application on a local application server as well. Unfortunately the only solution I can think of is to make it accessible via public URL. Maybe your university does provide some kind of a free VPS.
If (!) Java SDK 7 is installed you could try Payara Micro, which is derived from GlassFish 4 and enables you to run war files from the command line without any application server installation.

Webstart App on Windows 7 JNLP File Disappears

We are in the process of verifying one of our web start applications on Windows 7 as that is what our enterprise is moving to.
We are seeing the strangest thing. When a user runs the application while connected to our network over VPN, the application downloads and runs properly.
However, immediately upon disconnecting from VPN, the jnlp file is removed from the Java cache and subsequent attempts to run the application via desktop shortcut fail as the jnlp file in the cache (referenced in the shortcut) is missing.
We have also seen that at times when the user reboots, the application is completely gone from the java cache, no jar files at all, as though it were never installed.
Does anyone know what is going on here? Does it have to do with the new LocalLow security stuff in Windows 7?
Thanks in advance for any help. We are at the point with this where we may abandon Web Start entirely if we can't resolve.

GWT's hosted mode not working

I've been stumped for a while trying to figure out why my GWT demo app isn't working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the samples directory and ran "ant hosted". The hosted browser launches and only shows the static html content but none of the dynamically generated js widgets, etc. However when I click "Compile/Browse" the examples launch correctly in Firefox. What could be wrong with my setup/environment?
I followed the link you provided to download gwt. Extracted and ran "ant hosted" under samples/Hello, samples/DynaTable, and samples/Showcase and they all worked successfully. I'm also running Windows XP and java 1.6.0_11.
I think that running "ant hosted" starts an embedded Jetty server that listens on port 8888. Hosted Mode Browser makes requests to that embedded server, for example: http://localhost:8888/Showcase.html.
Also, when you click "Compile/Browse", it opens your default Browser (in my case it's firefox) and it tries to make a request to the same embedded jetty server that the hosted mode browser uses.
So, if it works in your browser, then the browser is connecting to the embedded jetty server. It's very strange that hosted mode doesn't work properly but you're able to view in a browser.
I believe the difference here is that hosted mode runs pure java (some sort of javascript emulator, I'm not sure I understand 100%), while the browser is running javascript.
So, I suggest troubleshooting the jvm that is started when "ant hosted" is run. Maybe the jvm is running out of memory or something when you load it up in hosted mode browser? Maybe you can pass some jvm args to the ant script to fix the problem?
Sorry I can't be more specific, that's a strange one!
#Chris: I suspect this question may have something to do with your earlier question if it is on the same computer that you were using. The solution may be to clear your IE cache because it tends to cache the 'script' tag contents and when it got messed up earlier while you were importing other stuff, it may still be sitting around in IE. Found the potential answer at this link.
I created a new workspace, re-imported everything and used GWT 1.6.x instead (because Ext GWT 2.X, which I need for this project requires GWT 1.6.x). This did the trick... everything works ok now.
The main difference I can think of is that in the Compile/Browser you are opening the html host page like a regular file, while in the hosted mode (even in a client sample) it has to be provided by the http server via localhost:8080. Check if the server is beeing started.

Categories

Resources