Eclipse Indigo Apache HTTP server: problems publishing - apache

I have an Apache 2.2 server that I am trying to use from within Indigo. I have a static web project and if I copy the project to htdocs it runs fine. However, when I try to publish it from within Indigo, I get the error message that the path cannot be found. Also, in the Servers view, the server is listed and shown as running, but when I open the context menu for this server, all the control options (stop, restart, restart in debug) are grayed out.
Additional info:
httpd.conf DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"
src dir/eclipse workspace: E:\workspace-html5\WebvilleTunes
i.e. is the problem maybe that my localhost and workspace are on different drives?
Also - also platform is Windows7/64-bit - and that's the version of indigo I installed.
Also, when I try to use the internal HTTP preview server, I get the error message:
Could not find required bundle org.mortbay.jetty.server. I see this has recently been registered as a bug, so I'm not very hopeful about getting around that one quite yet.
Can anyone help me get a server up and running for debugging a static web project (i.e. just javascript and html right now).
Thanks.

I solved my problem as follows: de-installed and re-installed Apache 2.2 to E:\Apache2.2. It now works - i.e. can publish my pages from eclipse to Apache and pages work. I don't know if it is that the path is now on the same drive, or that it doesn't have any spaces or that the Apache 2.2 version is a slightly newer one (2.2.22) that maybe resolved some issues with Indigo, or maybe it was just the fact that I (re)installed Apache AFTER installing Indigo.
Anyhow, hope this helps anyone having similar problems.

Related

Whys is IISExpress giving 404, when server IIS works

I am using Visual Studio 2017 version 15.8.7 on windows 10.
This issue is happening for Asp.net MVC 4 websites and Web Api 2. Not for Aspnet.Core sites (so far)
Lately I have been having issues where I will be debugging a website and it will work fine then all of a sudden the next time you start the project up, it gives a 404 error. The only way to fix the error is to use a different computer, create a new project and copy the info over.
Every time I start the debugger and get 404, this event is recorded.
The directory specified for caching compressed content
C:\inetpub\temp\IIS Temporary Compressed Files\Clr4IntegratedAppPool
is invalid. Static compression is being disabled.
Things I have tried.
Uninstal VS / IISExpress and reinstall, including delete all folders in program files
Create a new project and copy code over. (works, but then happens again later on)
Use different computer. (works, but eventually that computer hits the issue too)
Tried creating the temporary folder and giving "Everyone" full control of it.
Tried changing port number and re-creating virtual directory
Tried deleting entire solution folder and re-cloning repo.
The issue does not happen on the web servers, only locally.
Any idea on what is going on? I can't find any configuration that is telling IIS to compress the files, so not sure why I keep seeing that error.
Edit
I determined that the application_start even in global.asax is never firing (StreamWriter code in it to log to a file in case debugger issue). So I assume the 404 is because the routes never get registered.
I tried updating Microsoft.AspNet.Mvc to the latest 5.2.6.
Edit 2
So I found a workaround. I installed IIS locally and publish to a folder and debug by attaching to the process. If I point IIS directly at the project or use IIS within VS it doesnt work.
I think the issue is related to some dll goofiness, project seems to work once published.
Edit 3
Found the root of the problem. I use Ubuntu/bash on windows. Cloning the git repo through bash seems to be setting the permissions wrong. If I clone through command line, the issue does not happen. Now I need to figure out why bash is screwing up the file permissions.
Same issue with VS2017 on Windows 10, default IIS Express and git for Windows. Suddenly iisexpress returns 404 on /Default.aspx!!??
Solution:
Close VS2017
Delete the git repository in the file system.
Open VS2017
Clone the git repo
this helped on my machine.

"Hippo CMS" in my "Eclipse Luna", Tomcat not starting

I am trying to integrate "Hippo CMS" in my "Eclipse Luna". For that i installed "Tomcat 8". But when i am trying to run the tomcat after adding the module to it. It is throwing error
"java.lang.NoClassDefFoundError: Lorg/slf4j/Logger".
I searched over google, it gives a solution, "That I either did not copy the shared folder correctly, or I did not copy the conf/catalina.properties correctly". But what need to be done, to resolve this issue and start my server?
If you are working locally then you can start your server with the mvn profile 'cargo.run'. This will automatically deploy a tomcat version.
If you need a standalone tomcat then perhaps this page will help you:
http://www.onehippo.org/library/development/create-a-project-distribution.html

Intellij and Apache Tomcat not updating

I have a project going on for a couple of months now using a Spring MVC framework. For developing I am using an Apache Tomcat 8.0.17 with an exploded war file. Everything worked well since yesterday. Now when I change my Java Files the changes are no longer visible. I can even throw runtime exceptions and stuff like that (I always restart the tomcat server). The only way to "update" my code is to rebuild the whole project (Build --> Rebuild Project) which is quite time consuming and very annoying.
I did not change anything in the configuration nor updated Intellij IDEA or the Tomcat Server.
I could fix this by manually deleting all the files in the following folder:
%userdir%/.IntelliJIdea14/system/tomcat
After a full rebuild the updateing process works perfectly again.
Use this is VM Options:
-Dcatalina.home=%tomcat_folder% -Dwtp.deploy=%tomcat_folder%/webapps -Dcatalina.base=%tomcat_folder%

Drupal custom module failing to install

I have created a module on a development server (xampp) all is fine and working. However when I have move the module to my production server it fails to install properly, WSOD. From db I can see that my fields are not being created.
Drupal version 7.27 on both, both clean installs with the same dependencies installed.
Nothing in apache error log.
Grateful for any tips.
Mathew
ok just incase this helps someone else further down the line - this was an issue with different versions on PHP on the two servers one had 5.3 the other 5.5. One supports short form arrays [] and one does not which was my problem.
Would i have been able to resolve this from PHP logs?

Joomla Mootools file getting truncated

I am trying to run Joomla on my local machine. I have installed wamp 2.0 and everything installed ok with it and I managed to see it running. I have now come to install Joomla 1.5.18 but I am having a problem with the mootools file on the installation wizard.
When running through the installation process in FireFox with firebug turned on I get errors about the mootools file missing a }. When I view the file through windows explorer it is complete and everything is fine with it but when I click on the error in firebug to see the error the file is truncated which I assume is why it is not working and complaining about a missing }. To test the file I created a test page which pulls in the same mootools file and this works fine (running locally and not through Joomla ).
Does anyone know why this is happening and how to fix it? I think it must be a problem with wamp as like I said the file is fine and runs ok if I run it from the file system, however I know nothing about servers so this is a guess. Maybe a limit on the size of a file which can be returned as the mootools file is around 7000 characters long.
I have tried un-installing both Joomla and Wamp but none this has not worked and I still get the same error. Thanks
I'm just curious, have you tried installing a newer version of Joomla? 1.5.8 is a little bit old and you may have better luck using something a version or two newer. Alternately speaking, if you're not a big fan of installing WAMP and then manually installing Joomla, you can use a Bitnami Joomla stack. Basically, Bitnami installs Apache, mySQL, PHP, and Joomla all in one quick and easy install.
I hope that some of this helps!
I would suggest that your problem is not with the Mootools package but with your template or modules that are loaded in. Can you turn off all of your modules and reenable them one by one until you see the error again?