I have recently installed Arch Linux and using Pacman I installed Eclipse and Tomcat 7 using the relevant guides in the ArchWiki. I followed the guide Apache Tomcat Eclipse Integration, An Illustrated Quick Start Guide to integrate the two together.
To sum it up, I did the following:
Installed WPT from the Eclipse Install New Software feature.
Opened the new Dynamic Web Project wizard
During the wizard I selected Apache Tomcat v7.0 and set the Tomcat installation directory to /usr/share/tomcat7
Completed the wizard
Right clicked on the server tab (located at the bottom of the IDE) and clicked on the new server dialogue
In this dialouge is were I encounter an issue. When I choose Tomcat v7.0 Server the error Cannot create a server using the selected type pops up.
I'm suspecting that it might be a permission issue since I am not running Eclipse via root, but I am not sure how to set them up for this scenario. Other than that I am not sure if maybe it is a directory issue, that is, Eclipse is trying to locate a specific folder which is located somewhere else.
I am uncertain if this is an Arch Linux question specifically or Linux in general.
As mentioned before this sounds very much like a permission issue. Ensure that the user running Eclipse has read and execute privileges for Tomcat. Also you should check that the Tomcat server can start properly without running from Eclipse. Verify that it can bind to the default 8080 port, etc.
You can check the Tomcat logs for the details and the configuration file for Tomcat is usually in the <tomcat base>/conf/server.xml.
As you already suspect, it is probably a permission issue. Check that your user is added to the tomcat group and make sure that scripts in /usr/share/tomcat7/bin are readable and executable by tomcat group members. Also it is important that tomcat group has read access to /usr/share/tomcat7/conf files and of course the permission to enter the directories itself.
Related
I had an old Liferay 6.2 environment that is no longer working well, so I decided to download and run a fresh new environment, so I downloaded the Liferay studio, unzipped it and started the executable, I was expecting to see the First Start wizard that installs the sdk and the server automatically, but this didn't happen and the LR studio finally opened bare with no server installed, even I have no idea if I wished to add the server, where its instance might be, As per what I understand, it's wrapped in one or more of the zip files contained inside.
Liferay Developer Studio 3.0 does not come with a "First Start Wizard" any more, however, Developer Studio 2.2 (the last one that explicitly targeted 6.2) does.
If the First Start Wizard already ran, it won't automatically start again (it's quite particular about that "first" attribute). However, if you look at the top right corner of the eclipse workbench, there's an input field, named "Quick Access". Enter "First" in that field, it will autocomplete to "First Start Wizard" (in DevStudio up to 2.2) and you can run the wizard again this way.
As Liferay 6.2 EE is no longer included in DevStudio 3.0, the wizard to set it up is no longer needed. And the Workspace setup for Liferay 7 / DXP is totally different than the Plugins SDK for Liferay up to 6.2
I don't understand your problem to be honest. Could you please delete ALL your liferay's folders and do this:
Install JDK and setting required environment variables (JAVA_HOME, path)
Download MySQL server and start server (mysqld --console and mysql -u root -p, ext.)
Connecting to MySQL server and create Database for Liferay (write down if you don't know how to do that)
Download Liferay 6.2 Tomcat Bundles
Download Liferay 6.2 Plugins SDK
Download Eclipse LUNA
Create Work space folder; extract the downloaded files in work space directory.
Configure Liferay Tomcat sever information in Plugins SDK properties file.
Start Eclipse and choose liferay prospective
Configure Plugins SDK in Eclipse
Configure Liferay Tomcat Server in Eclipse
Start Server
Could you please do this steps and then write down which point you have trouble with?
Thank you!
Sometimes due to some missing config or some corrupted file this might occur.
So firstly Liferay plugins SDK may or may not be a part of developer studio but generally server is available as a standalone component.
In case you fo not have LR server,please download it from Liferay site or it's github repo.
In order to configure LR server/Plugins SDK go to Windows->Preferences->Liferay to configure the same.
When I try and deploy to my AI into a local liberty Eclipse informs me that I don't have servlet 3.0 installed.
My liberty installation is:-
Launching server1 (WebSphere Application Server 8.5.5.6/wlp-1.0.9.cl50620150610-
1749) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45-b15 (en_GB)
and it contains servlet 3.1
Even after installing the servlet 3.0 feature, it still says I need to install the feature
Here's some troubleshooting suggestions specific to your scenario.
If you're having issues with your own Liberty install, you can try using the one that ships with the Code Rally install (it's automatically included when you install using the Installation Manager install). You can find it under the Code Rally install dir, for example, on my Windows machine the Liberty install dir is:
C:\Program Files\IBM\CodeRally\wlp
As of July 2015, the Code Rally 1.4 install includes the Liberty 2015.5.0.0 beta, which does includes the servlet-3.0 feature by default.
I would also suggest creating a new workspace for Code Rally, rather than reusing an old workspace. This way you can ensure that there are not any old servers/runtimes defined (either Servers in the Servers view, or Runtimes defined under Preferences > Server > Runtime Environments). Code Rally should work with an existing workspace, but using a new workspace helps rule out these types of issues.
Ensure that you have the correct Liberty server defined in the Servers view, such that the 'WebSphere Application Server Liberty Profile at localhost' entry should be the only one listed. Note that you may also see Web Preview Server in the Servers view list; it can't hurt to remove this.
Finally, Code Rally Agents have a target Liberty server defined in their vehicle info. Right click on your vehicle in the Vehicles tab, and select Edit. Ensure that the "Liberty Server:" combo box is pointing to the correct server.
Thank you Jonathan for your help. The extra step I needed to do, was delete the contents of the c:\users\bondj\user.coderally directory - and then reinstall.
I can't get an Umbraco installation set up completly. I have been running into the error:
Oops...the installer can't connect to the repository
Starter Kits could not be fetched from the repository as there was no
connection - which can occur if you are using a proxy server or
firewall with certain configurations, or if you are not currently
connected to the internet. Click Continue to complete the
installation then navigate to the Developer section of your Umbraco
installation where you will find the Starter Kits listed in the
Packages tree.
I have tried this via manual install, Web platform installer and WebMatrix.
When I tried this wie WebPI and manual I gave the IIS_IUSRS FULL ACCESS to the Umbraco folder and de C:\windows\temp folder to be on the safe side. Which has brought no effect.
I have also tried using the steps described here and on google.
Every option has been tested on my physcial windows 7 professional machine, as well as on my virtual Windows server 2008 R2 dev-environment with the actual Umbraco 6.0.5 build.
I am hoping you can provide me with a working solution
Kind Regards
This problem is probably caused due to the umbraco installer not being able to connect to the internet, it doesn't look like a file permission problem.
If you are behind a proxy or firewall, you could add a proxy to the web.config that will allow umbraco to connect to the repository.
<defaultProxy useDefaultCredentials="true" />
http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx
Setting the permissions for ISS_IUSRS should work, though I would use the "IIS APPPOOL\{application-pool-name}" user to set the permissions.
A ps script is available at the bottom of the following page: http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line
However, if you reached the point where the installer is asking to install a package, isn't the application already running?
What happens if you quit the process, and login to umbraco?
I am trying to use the external tomcat server installed on my machine (Ubuntu 11.10) and I a going through the motions of adding a new server to Netbeans, in the Server Location field I enter the /usr/share/tomcat6 directory but it gives an error:
The specified Server Location (Catalina Home) folder is not valid
I have searched Google, used the Netbeans wiki, and have searched here also but nothing seems to be able to get me past this point.
Yes, Netbeans does support external Tomcat installations. It does so without any problems on Windows, but there are a few wrinkles if you want to do it on Linux - with Ubuntu-based distributions anyway.
I wrote up my experiences here:
http://www.peredur.net/2011/12/linux-tomcat-and-netbeans/
Hopefully, that should help.
Yes, it is possible to debug a remote Tomcat, see http://wiki.apache.org/tomcat/FAQ/Developing#Q3.
I am trying to create a Local IIS Website using ASP.NET.
When I click on New -----> Website and select the type as HTTP and from the dialog box if I select the option as LOCAL IIS WEBSITE I am getting a message as "IIS not installed on this computer"
When I checked in the Control Panel---->Add or remove programs ---->Add or remove windows components. The Option Internet Information Service is already checked marked.
But when I click on the Control Panel ---> Administrative Tools, I dont find the option as Internet Information Service.
I also have the root directory as C:\Inetpub\WWWRoot.
And when I give the following command in the VS command Prompt
aspnet_regiis.exe -i
It is giving the message as finished installing ASP.NET
Can any one help me in identifying whether IIS is installed in my system or not?
Please help me out!
go to Start->Run type inetmgr and press OK. If you get an IIS configuration screen. It is installed, otherwise it isn't.
You can also check ControlPanel->Add Remove Programs, Click Add Remove Windows Components and look for IIS in the list of installed components.
EDIT
To Reinstall IIS.
Control Panel -> Add Remove Programs -> Click Add Remove Windows Components
Uncheck IIS box
Click next and follow prompts to UnInstall IIS.
Insert your windows disc into the appropriate drive.
Control Panel -> Add Remove Programs -> Click Add Remove Windows Components
Check IIS box
Click next and follow prompts to Install IIS.
For Windows 7:
Control Panel > Programs > Programs and Features > Turn Windows Features On or Off > to turn on IIS click on Check box.
Check
Control Panel --> Administrative Tools --> Services --> IIS Admin
For reinstalling
How to remove and reinstall IIS 5.0, 5.1 and 6.0
In the menu, go to RUN > services.msc and hit enter to get the services window and check for the IIS ADMIN service. If it is not present, then reinstall IIS using your windows CD.
The quickest way to check is just to write "inetmgr" at run (By pressing Win + R) as a command, if a manager window is appeared then it's installed otherwise it isn't.
A lot of answers here describe how to manually check if IIS is installed.
One (of many) programmatic ways is to check if the file
C:\Windows\System32\inetsrv\w3wp.exe
exists, and maybe has a certain minimum version (such as 10.0.0.0 for IIS version 10).
IIS can be installed programmatically using DISM. You can also use DISM to check if IIS is installed, which may be "more correct", but is also more difficult to do than just checking for a file.
WARNING: If possible, do not hard-code the path C:\Windows\System32, especially not within a 32-bit process or installer, as it can be virtualized and mapped to C:\Windows\SysWOW64, which is NOT where IIS is installed (assuming a 64-bit OS). Depending on where you are implementing your check (installer prerequisites, PowerShell, native code, etc.), there are different ways to explicitly access the 64-bit/native system folder.
Background: w3wp.exe is the worker process image of IIS, so if IIS is installed with minimal features, then this file can be expected to exist.
As for version numbers, you can expect the following minimum versions of IIS to be installed in (source):
IIS 10 (>= 10.0.0.0) in Windows Server 2016 or higher and Windows 10 or higher
IIS 8.5 (>= 8.5.0.0) in Windows Server 2012 R2 or higher and Windows 8.1 or higher
http://localhost:80 (specify port configured)
OR
http://localhost (default port)
type above line in your browser you realize IIS installed or not
I simple gave below in all my browsers. I got image IIS7
http://localhost/
Refer this a step by step approach:
http://www.codeproject.com/Tips/365704/Install-IIS-on-Windows
For many users you have to enable the windows feature on then check IIS and then go with RUN followed by searching for inetmgr.
I needed to do this on a server over the CLI, and was able to do so in using powershell wit the following command:
Get-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\ | Select-Object