Pessoal blz? eu baixei o glassfish porque estou começando a estudar JSF e resolvi baixá-lo para usar nas aplicações que farei ao longo do estudo usarei para rodar os exemplos do livro. Mas ele dá erro, o arquivo JAR não roda nem por linha de comando dá vários erros alguém já teve esse problema?
Glassfish
5 Respostas
eu baixei o glassfish porque estou começando a estudar JSFPara que o Glassfish p/ executar o JSF vc. pode usar o Tomcat.
Qual o erro ??? e qual o livro??? e qual a IDE.???.
provavelmente você não deve estar setando a memoria disponivel… de uma olhada aqui.
https://glassfish.dev.java.net/public/alldownloads.html
Instructions to unbundle and configure GlassFish
To install and configure GlassFish you need to have JDK 5 installed on your system. The configuration processing depends on Ant (1.6.5). The bundle includes an Ant distribution that has been extended with tasks to facilitate developing Java EE 5 applications for the application server.
-
Download one of the bundles to disk, set JAVA_HOME to JDK 5.
-
Run:
% java -Xmx256m -jar filename.jar
This command will unbundle GlassFish and create a new directory structure rooted under a directory named ‘glassfish’.
% cd glassfish
-
If you are using a machine with an operating system that is a derivative of UNIX™, set the execute permission for the Ant binaries that are included with the GlassFish bundle.
% chmod -R +x lib/ant/bin
% lib/ant/bin/ant -f setup.xml
OR for Windows:
% lib\ant\bin\ant -f setup.xml
For GlassFish V2 with Clustering supported installation, just change step 4 from the above installation
% lib/ant/bin/ant -f setup-cluster.xml
OR for Windows:
% lib\ant\bin\ant -f setup-cluster.xml
See the GlassFish Quick Start Guide for basic steps to start the server and deploy an application.
See Configuring the Cluster/Load Balancer with GlassFish V2 for how to do the load balancing after creating Clusters on GlassFish V2.
Java Persistence Standalone bundle
Implementation for Java Persistence API standalone bundle is generated from the GlassFish code base. Only promoted builds of the Java Persistence API bundle are available.
Eu acho que existe uma certa confusão.:
Porquê não usar o “Sun Java System Application Server Platform Edition 9.0” em detrimento ao Glassfish é o mesmo produto só que embalado para presente.
http://www.sun.com/software/products/appsrvr_pe/
O glassfish é otimo mais a sua instalação vai exigir de vc. um certo conhecimento.
Uma outra opção é baixa-lo junto c/ o NetBeans 6.0.1 ou 6;1 e pronto.
Agora se for somente para desenvolver JSF 1.2 vc. pode usar de pronto o Tomcat 6.0.16.
Só tome cuidado com o TomCat, ao se utilizar DataTables…
Eu só aprendi a instalar o glassfish devido a isso, o Tomcat tem um Bug que não compila os datatables…
Abraço!
ae cara, to com uma bronca e se vc pudesse ajudar seria ótimo:
instalei o glassfish no linux slackware, blz , a pagina inicial ta aparecendo blz http://200.249.69.1:8080, só que quando insiro a minha pagina que fiz no netbeans, aparece o seguinte erro:
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /web/Page1.jsp(10,60) PWC6317: The attributes for a standard action or an uninterpreted tag cannot be deferred expressions
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_02 logs.
se tento executar outro que usei o jmaki da outro erro:
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /web/Loja5.jsp(1,51) PWC6188: The absolute uri: http://jmaki/v1.0/jsp cannot be resolved in either web.xml or the jar files deployed with this application
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_02 logs
tem ideia do que pode ser amigo?
valeu pela ajuda