Mostrando postagens com marcador WebServer. Mostrar todas as postagens
Mostrando postagens com marcador WebServer. Mostrar todas as postagens

Tecnologia -> UBUNTU -> IBM -> WAS6 -> Installing WebSphere Application Server 6.1 on Ubuntu

Installing WebSphere Application Server 6.1 on Ubuntu

Recently I've been doing some work with a client on WAS 6.1. Since we have a number of Spring users on WAS and I need to test the application, I decided it was time to get a copy of WAS running on one of my work laptops. I say 'one of' because I'm currently working on both my Mac (with OSX) and my ThinkPad (with Ubuntu) – more recently I've just been using the ThinkPad because I can have Oracle XE and WAS running without the need for a VM tool like Parallels. I still prefer the Mac, but to be honest there isn't much difference day-to-day – I just miss some of the more useful Mac tools like Spotlight , Quicksilver , TextMate and NewsFire .

Anyway, back to the main topic – installing WAS 6.1 on Ubuntu. I'm using Ubuntu Edgy and my first attempts at an install failed completely and I just couldn't figure out why. Thankfully a quick Google turned up this article. I was completely unaware that /bin/sh was linked to dash instead of bash – what on earth possessed them. I didn't really like the suggested solution of running the installer, letting it fail and then changing all the scripts in the installed directory. Instead, I just relinked /bin/sh with a quick sudo unlink /bin/sh followed by sudo ln -s /bin/bash /bin/sh . After that, the installer ran like a dream and I was up and running with a WAS install in about 15 minutes.

Even on my ThinkPad with Oracle XE running at the same time, WAS runs pretty quickly. One of the nicest things about WAS is that the tools provided (admin console, command-line tools) are really robust. The Admin Console is noticeable for its performance – many other servers have consoles that are painfully slow.

Tecnologia -> Eclipse -> Glasfish -> Eclipse 3.4 and GlassFish Java EE 5 integration

Eclipse 3.4 and GlassFish Java EE 5 integration


Download the Eclipse IDE for Java EE Developers (as of August 2008, Ganymede - Windows 162Mb eclipse-jee-ganymede-win32.zip) (tools for Java Developers creating JEE and Web applications, including a Java IDE, tools for JEE and JSF, Mylyn and others...:

http://www.eclipse.org/downloads/


Install the IDE and start it, close the "Welcome" page, Then:

If you're behind a firewall, make sure you have set an SSL proxy: Bring up Preferences, then expand General, Network Connections and fill in the values for your SSL proxy. If you don't have a SSL proxy but a you have a plain http proxy, be sure to check the checkbox Use this proxy server for SSL 1
Now, switch to the "Java EE" perspective. For example: 1
Now, In the Server Tab, use the popup menu to call the "New Server" wizard: 1
Click on the link "Download additional server adapters". 1

1
Select the GlassFish Java EE 5 Server entry 1
Accept the license to download the GlassFish adapter 1
Eclipse will now download the adater from the GlassFish update Center. Click the OK button to continue. 1
After the download, Eclipse will prompt for a restart. Click the Yes button to continue: 1
After a fresh restart, you'll see the GlassFish category in the "New Server" wizard: 1
Select a version of GlassFish you want to work with, for example GlassFish V2: 1
Using the "Browse..." buttton, navigate to a correct GlassFish installation directory. IF you have not installed GlassFish, get it from
https://glassfish.dev.java.net/downloads/v2-b41d.html
1
In the Next step of the wizard, you can fine tune some server properties. Default values are usually correct, but adapt them to your environment: 1
A new Server (GlassFish V2) is now added to the Servers tab. Using the popup meny, you can start it: 1
Once started, the server status will be shown as "Started". 1
Using the Console Tab, you can see the server log content: 1
Now it is time to create a Java EE 5 Web Application: on the PRoject Explorer view, if you are using the Java EE perspective, you can use the Popup menu New->Dynamic Web Project: 1
Enter a name and verify that the Target runtime is GlassFish V2 Java EE 5 1
In the Next step, you can verify the that version for Web Application is Servelt 2.5 (java EE 5 compliant), and if you want a default sun-web.xml deployment descriptor, make sure this facet is selected (on by default): 1
You see the new Web Application on the Project explorer.  Just create a new JSP index,jsp (Eclipse does not create it by default): 1
Using the green run button on the Eclipse Tool bar, you are presented with the following choices. Pick the "Run on Server" item: 1
Click the Finish button on the "Run On Server" wizard: 1
The Web Application is deployed to GlassFish and the index.jsp page is shown in the internal broswer in Eclipse. You can see the deployment status in the Eclipse Console 1
If you need to debug, you could also "DEbug" this Web Application 1
And the GlassFish V2 server will restart in debug mode, and Eclipse will attach to the debugged server.
If you set a breakpoint on a JSP, the server will be stopped and you can use all the Debugger features from Eclipse to debug your Java EE application:
1

Tecnogia -> Informática -> Tutorial -> Tomcat -> Configurando o Eclipse para usar Tomcat o Spring Framework

Configurando o Eclipse para usar Tomcat o Spring Framework

Agosto 10, 2008

Nunca parece ser bastante documentação sobre como criar Spring Framework projetos habilitados no Eclipse . É amplamente utilizado para aplicações web o que você precisa saber é como integrar oTomcat e o Eclipse - Segue abaixo um passo-a-passo das instruções para fazer exatamente isso.

Eu não vou descrever como instalar o Java Runtime Environment . Se precisar de ajuda com isso, então utilize os serviços de busca como google, yahoo, bing , etc.

Instalação
No Windows todas as instalações serão localizadas em c:\java em vez de c:\Arquivos de programas . Você vai economizar-se uma dor de cabeça enorme tentando descobrir por que o Windows não interpretou as linhas de comando corretamente se você acabou de remover a causa do problema.

  1. Download Eclipse IDE for Java EE Developers 3,4 Ganymede dos downloads seção do site da Eclipse.
  2. Extraia o eclipse-jee-ganymede-win32.zip em c:\Java\eclipse .
  3. Criar um atalho para o executável do Eclipse, para o lançamento fácil.
  4. Baixar Tomcat 6.x do downloads seção do site web Tomcat.Você vai precisar de ter a base pack (Core) e não o pacote do Windows Installer. O pacote do Windows Installer não inclui alguns dos scripts de linha de comando para o lançamento do Tomcat.
  5. Extraia o apache-tomcat-6.0.18.zip em c: \ java \ apache-tomcat-6.0.18 , em seguida, renomeá-lo para c: \ java \ tomcat .
  6. Lançamento Eclipse.
  7. Em uma nova instalação do Eclipse ele te perguntar onde você quer colocar o seu espaço de trabalho. Vamos colocá-lo em c: \ java \ workspace porque a questão espaços serão um problema se ele vai para c: \ Documents and Settings \ David Newcomb \ workspace .
  8. Em seguida vamos instalar o nosso plugin de Primavera IDE , instruções completas sobre como fazer isso estão na minha página do blog, intitulada Eclipse 3.4 Ganymede e Spring IDE 2.0.6 .
  9. Após a instalação ele diz que É altamente recomendável que você reiniciar seu sistema para que as alterações tenham efeito. .. Reiniciar agora? , quando ele diz que sistema significa que a bancada eclipse e não todo o seu computador, então clique em Sim .

Configure Tomcat dentro do Eclipse
Em seguida nós precisamos dizer Eclipse sobre o qual estamos usando Tomcat e configurar a integração.

  1. A partir da barra de menus selecione Janela> Preferências- .
  2. A Preferências janela será aberta. Expandir servidor .
  3. Destaque Runtime Environment . Este é o lugar onde você pode dizer sobre o Eclipse onde você coloca a sua instalação do Tomcat.
  4. Clique Adicionar .
  5. Expandir Apache e selecione Apache Tomcat v6.0 .
  6. Verifique o Criar um novo servidor local caixa de seleção para criar um novo servidor nos servidores vista.
  7. Clique em Avançar .
  8. Deixe o nome do servidor definido para Apache Tomcat v6.0 .
  9. Eclipse dá a opção de baixar uma versão do Tomcat, mas geralmente não tem a última versão (que é por isso que nós baixado separadamente). Clique Procurar e navegue até c: \ java \ tomcat e clique em Ok .
  10. Deixe o JRE suspensa definido para Workbench JRE padrão .
  11. Clique em Concluir .
  12. Você é levado de volta para o Server Runtime Environmentspágina de preferências então clique OK .
  13. Um novo projeto terá sido criado e se você entrar noServidores view (no conjunto de fundo de guias), você verá um novo servidor Apache Tomcat v6.0 em localhost .

Criar projeto
Existem vários diferentes tipos de projeto no Eclipse e precisamos o que nos permitirá integrar todas as coisas que precisamos.

  1. Selecione File-> New-> Project Web Dinâmico
  2. Digite um Projeto de nome. Embora você pode ter espaços, na minha opinião, é melhor não colocar qualquer polegadas O nome do projeto torna-se o nome do diretório e pela mesma razão acima é uma dor se houver espaços.
  3. O Runtime alvo já deve estar definido para Apache Tomcat v6.0 .
  4. Também manter a configuração definida para padrão de configuração para o Apache Tomcat v6.0 .
  5. Clique em Concluir .
  6. No Project Explorer , clique direito sobre o novo projeto e selecione Primavera Ferramentas-> Adicionar Nature Projeto Primavera .

Spring Web do projeto e do projeto Tomcat associação
Devemos agora associar o projeto com Tomcat.

  1. Certifique-se a servidores vista é visível (no conjunto de fundo de guias). Destaque seu novo projeto da Web da Primavera e arrastá-lo para o servidor Tomcat v6.0 em localhost entrada no Servidores guia.
  2. Queremos usar o servidor Tomcat, quando usamos o nosso novo projeto, para que possamos definir o servidor de projeto a ser uma dependência do nosso novo projeto. Isto significa que quando abrimos o nosso projeto do Servidor do projeto será aberta automaticamente.
  3. Clique direito sobre o nosso projeto e selecione Propriedades .
  4. Selecione o Projeto Referências opção e verificar a servidoresdo projeto.
  5. Clique Ok .