精华内容
参与话题
问答
  • GlassFish

    2019-03-21 01:48:20
    该文档是在macOS环境下使用glassfish编写,其他环境可能有些许出入,可以查看官方文档,非常详细。 一、介绍 1、什么是GlassFish GlassFish 是一款免费开源的应用服务器,既是WEB容器,也是EJB容器。 2、...

    官网:https://javaee.github.io/glassfish

    该文档是在macOS环境下使用glassfish编写,其他环境可能有些许出入,可以查看官方文档,非常详细。

     

    一、介绍

    1、什么是GlassFish

    GlassFish 是一款免费开源的应用服务器,既是WEB容器,也是EJB容器。

    2、GlassFish默认值

    Domain name

    domain1

    Master password

    changeit

    asadmin command-line utility

    as-install/bin

    Configuration files

    domain-dir/config

    Log files

    domain-dir/logs

    Administration server port

    4848

    HTTP port

    8080

    HTTPS port

    8181

    Pure JMX clients port

    8686

    Message Queue port

    7676

    IIOP port

    3700

    IIOP/SSL port

    3820

    IIOP/SSL port with mutual authentication

    3920

    3、domain

         domain是GlassFish中很重要的一个核心;它拥有独立端口以及多个可管理的资源(如web应用);但是一个可管理的资源只能属于一个域。默认GlassFish就有一个domain1域。

     

    二、安装与简单使用

    1、直接下载Full Platform, 然后解压到目录

         目录结构如下:

         

       所有的domain都存放在domains文件夹下

    2、启动、停止

        直接启动:

             ./asadmin start-domain 或者 ./asadmin start-domain domain1

        停止:

            ./asadmin stop-domain 或者 ./asadmin stop-domain domain1   

    3、查看domain

           ./asadmin list-domain 该命令可以查看有哪些domain以及当前状态

    4、管理页面

          http://localhost:4848

     

    三、部署与卸载

    官网有提供war包,https://javaee.github.io/glassfish/downloads/quickstart/hello.war,可以下载部署。

    (-)部署

    1、管理页面部署

         登录http://localhost:4848,在Applications中deploy这个war包。

    2、命令行部署

         ./asadmin deploy /Users/wuzhengya/Documents/HimerManage.war

    3、自动部署

         war包直接丢入指定domain下的autodeploy目录

     

    (二)卸载

    查看有哪些application,./asadmin list-applications

    1、页面卸载

    2、命令行卸载

         ./asadmin undeploy HimerManage

         注意,后面没有.war

    3、直接卸载

          进入对应domain下的autodeploy目录,删除对应war包

     

    四、asadmin命令

    GlassFish的核心命令就是asadmin, 所有的操作都是基于该命令,可以直接:./asadmin 进入控制台,此后的操作就不需要再加asadmin.

     

    五、domain管理

    域包含一组共同管理的GlassFish服务器实例。每个域都有一个域管理服务器(DAS),它承载管理应用程序。

    任何域的每个实例都在自己的JVM中运行!

    官网定义:

    A domain contains a group of GlassFish Server instances that are administered together. Each domain has a domain administration server (DAS) that hosts administrative applications.

    A GlassFish Server instance is a single Virtual Machine for the Java platform (Java Virtual Machine or JVM machine) on a single node in which GlassFish Server is running. A node defines the host where the GlassFish Server instance resides. 

    1、创建domain

    ./asadmin create-domain --adminport 4849 domain2 创建名为domain2,admin port为4849的domain

    可以为domain指定目录,默认是在domains下

    2、删除domain

    ./asadmin delete-domain --domaindir ..\domains domain1

     

    六、其他管理

    1、JVM管理

         多个参数之间用 : 来隔断

          create-jvm-options 创建

          list-jvm-options 列出所有的jvm项

          delete-jvm-options 删除

         generate-jvm-report 生成jvm的report

          

     

    管理文档:GlassFish 管理配置

    展开全文
  • Glassfish support

    2020-11-29 00:54:27
    <div><p>Glassfish is based on OSGI. <p>Currently it does not start at all - error <code>java.lang.NoClassDefFoundError: org/hotswap/agent/PluginManager</code>. This is because of OSGI bundle mechanism...
  • /home/glassfish/glassfish5/glassfish/modules/endorsed:/home/glassfish/glassfish5/glassfish/lib/endorsed -Djava.security.policy=/home/glassfish/glassfish5/glassfish/domains/domain1/config/server....
  • glassfish.rar

    2020-12-01 17:31:52
    GlassFish 是用于构建 Java EE 5应用服务器的开源开发项目的名称。它基于 Sun Microsystems 提供的 Sun Java System Application Server PE 9 的源代码以及 Oracle 贡献的 TopLink 持久性代码。该项目提供了开发高...
  • Fix GLASSFISH-19317

    2020-11-22 11:07:02
    <div><p>It seems that the problems of <a href="https://java.net/jira/browse/GLASSFISH-19317">GLASSFISH-19317</a> still occurs. <a href="https://wiki.java.net/forum/topic/glassfish/glassfish/...
  • Glassfish 4 JaxRS support

    2020-11-26 08:26:58
    m starting to use HAPI FHR JaxRS Server for a project, but I need to use Glassfish 4. Basically because of how the constructor is coded Glassfish 4 doesn't start up my Patient resource provider ...
  • glassfish-5.0.1.zip

    2020-04-08 10:24:42
    GlassFish 是一款强健的商业兼容应用服务器,达到产品级质量,可免费用于开发、部署和重新分发。开发者可以免费获得源代码,还可以对代码进行更改。 GlassFish 是用于构建 Java EE 5应用服务器的开源开发项目的名称...
  • m trying to use a rails 4 application warified in glassfish, but it doesn't seem to work. <pre><code> Exception loading extension `JopensslService`: java.lang.IllegalStateException: Stream...
  • Glassfish 4 deployment

    2020-12-02 02:45:09
    t deploy the sample jsf application on glassfish 4. <p>Is is possible ? <p>When I re-package the engine jar als osgi bundle the ejbs are not recognized by glassfish 4. Is an osgi bundle available ?...
  • <div><p>This is a very nice start to a framework. But although it is ...s <code>Condition.method(Method)</code> method requires a <code>Method</code> parameter, but the <code>org.glassfish.grizzly....
  • 2. Add a datasource to glassfish TYPE: javax.sql.ConnectionPoolDataSource classname: com.ibm.as400.access.AS400JDBCConnectionPoolDataSource (jt400.jar) What is the expected output? What do you see ...
  • <div><p>https://java.net/jira/browse/GLASSFISH-21007</p> <p>This is not a tyrus issue as noted in https://java.net/jira/browse/TYRUS-306</p> <p>The TyrusHttpUpgradeHandler.init(..) is called twice ...
  • m needing to run it on Glassfish and in this case, after some adjustments so that it would compile when I run the GET verb it returns me a 500 error, this error does not is reported in the Glassfish ...
  • <div><p>The GlassFish HASSOFactory is hardcoded to use replicated as its persistence type this needs to become configurable so that hazelcast can be specified. <p>...
  • at org.glassfish.tyrus.servlet.TyrusServletWriter.write(TyrusServletWriter.java:140) at org.glassfish.tyrus.core.ProtocolHandler.write(ProtocolHandler.java:486) at org.glassfish.tyrus.core.Protocol...
  • So, we are continuing with BV 1.1 APIs, but when the glassfish binary is generated we use BV 2.0.0.CR2 and hibernate validator 6.0.0.CR2.</li><li>Adding a simple quick look test case for using BV 2.0...
  • WARNING: The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.message.internal.DataSourceProvider] with an exception: MultiException stack 1 of ...
  • <div><p><a href="http://stackoverflow.com/questions/35411854/glassfish-4-scans-for-postconstruct-with-cdi-disabled/35428512#35428512">A question on SO</a> describes this issue: Glassfish validates ...
  • <p>After extensive debugging with the sources for Glassfish 4.1.1, I found that there are two competing methods inside of appserver/web/war-util/src/main/java/org/glassfish/web/loader/...
  • The glassfish maven repository server is not reachable, ideally there should not be any additional repositories in the javamelody POM in central, otherwise there should be the OpenNMS one instead, ...
  • GLASSFISH安装

    2019-11-15 06:17:34
    NULL 博文链接:https://snowelf.iteye.com/blog/605012
  • fuggles:/payara/payara-4.1.1.162/glassfish/bin$ ./asadmin --host localhost --port 4848 enable-secure-admin You must restart all running servers for the change in secure admin to take effect. Command ...
  • <div><p>Fixes #22135</p><p>该提问来源于开源项目:javaee/glassfish</p></div>
  • <div><p>When upgrading our internal servers we decided to upgrade from glassfish 4.0 to payara 4.1 as we plan to aquire support for the application support and so glassfish is not an option anymore. ...
  • <div><p>From a <a href="http://mailman.cs.umn.edu/archives/lenskit/2013q4/000243.html">mailing list bug report</a>: when deploying LensKit in a Glassfish 4 app, the Glassfish CDI tries to instantiate ...
  • glassfish-3.1.2-web 错误位置: at org.nutz.resource.Scans.makeResourceLocation(Scans.java:127) 错误原因; java.lang.IllegalArgumentException: URI scheme is not "file" INFO: Nutz: Fail to ...
  • glassfish_GlassFish减少至

    2020-06-05 01:55:21
    在昨天的GlassFish和Java EE路线图更新中,透露了未来将不再有流行的Oracle GlassFish Server的商业主要版本。 Oracle迎来了那些正在寻找WebLogic Server替代方案的人-但是,它坚持认为GlassFish绝不会死。 就...

    glassfish

    在昨天的GlassFish和Java EE路线图更新中,它显示,今后将不会再有流行的Oracle GlassFish Server的商业主要版本。  

    Oracle迎来了那些正在寻找WebLogic Server替代方案的人们-但是,它坚持认为GlassFish绝不会死。

    就实用性而言,在一家公司中拥有两台商用服务器从来没有道理。 最终,人们不得不离开了。不幸的是,对于GlassFish的社区,他们的产品尘土飞扬。

    目前,GlassFish Server的计划是继续在将来的版本中支持Java EE参考实现-但是,由于它已被淘汰出Oracle商业市场,因此服务器将如何蓬勃发展还有待观察。

    当然,GlassFish周围的社区并不相信。 Java EE专家Markus Eisele在他的博客中感叹“如今我们所知的GlassFish Server已从完整的产品转为玩具产品”。 他补充说,由于缺乏商业支持,整体质量和可靠性势必受到损害。 更不用说以下事实:开发将大大减慢,并且用户期望从现在开始更新的频率会大大降低。

    曾经有传言说拉里·埃里森的帝国正在发生什么。 两周前,忠实的Java EE和GlassFish推广者Arun Gupta突然离开了软件开源公司Red Hat。

    尽管他无法告诉JAXenter是否知道这一举动即将到来,但Gupta清楚地表明,由于没有商业支持,GlassFish根本不是过去曾经是Java EE的可行选择。

    他告诉我们,“既然Oracle尚未计划任何商业支持,WildFly无疑将成为该领域的领导者。 因此,尽管所有快速创新将继续在WildFly中进行,但开发人员/客户可以确信,其部署将得到JBoss EAP的商业支持。

    近年来,当Java管理员离开他们的家属时,Red Hat为弥补这种懈怠开了先例。 今年春天,当Oracle抛弃Java 6时,Trilby团队加强了对OpenJDK 6的支持 ,并与Arun和他的众多追随者一起,在未来几个月中,它很可能会获得大量新的WildFly拥护者。








    翻译自: https://jaxenter.com/glassfish-reduced-to-toy-product-as-commercial-offering-axed-107058.html

    glassfish

    展开全文
  • [2019-11-25T09:30:15.599+0800] [glassfish 5.0] [WARNING] [] [org.glassfish.grizzly.filterchain.DefaultFilterChain] [tid: _ThreadID=36 _ThreadName=http-listener-2(5)] [timeMillis: 1574645415599] [level...
  • <p>Another thing that I noticed is that <a href="https://github.com/payara/Payara/blob/master/appserver/deployment/dtds/src/main/resources/glassfish/lib/dtds/glassfish-web-app_3_0-1.dtd">the glassfish...
  • <p>Even though the Glassfish implementation is the reference implementation, it may have some concrete implementations that is not in the specification that your library may inadvertently depend on in...

空空如也

1 2 3 4 5 ... 20
收藏数 4,400
精华内容 1,760
关键字:

glassfish