glassfish

Tomcat服务器的下载与安装。并配置到 idear中

强颜欢笑 提交于 2021-02-02 10:33:02
文章目录 前言 一、Tomcat服务器(重点) 软件架构 常见的web服务器 二、下载步骤 注意: 二、将Tomcat配置到 idear中 三、新建一个web项目(重要) 四、IDEA中热部署【重点掌握】 总结 前言   Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选。对于一个初学者来说,可以这样认为,当在一台机器上配置好Apache 服务器,可利用它响应HTML(标准通用标记语言下的一个应用)页面的访问请求。实际上Tomcat是Apache 服务器的扩展,但运行时它是独立运行的,所以当你运行tomcat 时,它实际上作为一个与Apache 独立的进程单独运行的。 一、Tomcat服务器(重点) 软件架构   1).C/S(Client/Server)(客户端/服务器)结构:桌面、网络版应用程序。例如:QQ,暴风,百度网盘,各种游戏的客户端 特点:在客户端电脑需要安装后才能使用,启动后都有自己的“界面”,运行时,需要要联网。 缺点:制作困难(至少要有客户端程序、服务器程序)、客户端使用麻烦(需要下载安装程序,安装)、后期维护,更新困难(尤其是客户端)。 优点:可以充分的利用客户端硬件资源(CPU、显卡…)可以在界面上显示非常酷炫的效果。   2).B/S

Glassfish 5.1.0 error when adding resources from web console

时光毁灭记忆、已成空白 提交于 2021-01-29 13:26:12
问题 Glassfish server up and running. I want to add some data source, and do it from web console->Resources. Click button "Add Resources" then choose file from my computer (same to the file from server) and click OK. GUI gives me error: An error has occurred The system cannot find the path specified: In log I get: [2019-11-20T12:26:23.149+0300] [glassfish 5.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=69 _ThreadName=admin-listener(3)] [timeMillis: 1574241983149] [levelValue: 800] [[ GUI

Not able to connect to MySQL - Glassfish and Hibernate

ぃ、小莉子 提交于 2021-01-29 02:50:40
问题 I have the below persistence file - <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="unit" > <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> <property name=

Not able to connect to MySQL - Glassfish and Hibernate

早过忘川 提交于 2021-01-29 02:47:26
问题 I have the below persistence file - <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="unit" > <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> <property name=

How to fix: “Parameter index out of range (2 > number of parameters, which is 1).”

旧时模样 提交于 2021-01-28 07:47:31
问题 If i try to get the timeStamps (Date object) from my mySql database via Java (jdbc) i get the error: "Parameter index out of range (2 > number of parameters, which is 1)." I can´t find a solution on the internet that works for me, because (i think) the sql-query is correct and i placed the exact number of '?' needed. PreparedStatement st = conn.prepareStatement("SELECT * FROM timestamp WHERE stampTime BETWEEN '?/0/? 00:00:00.00' AND '?/31/? 23:59:59.999' AND userid = ? "); st.setInt(1, month)

NetBeans: No suitable Deployment Server is defined for the project or globally

北慕城南 提交于 2021-01-28 00:27:14
问题 When I try to deploy my Glassfish project in Netbeans (right-click -> run), I get: No suitable Deployment Server is defined for the project or globally SOLUTION: As it turned out, this was due to the fact that I had multiple Glassfish processes running. I deleted all the extras and my project deployment worked. 来源: https://stackoverflow.com/questions/57914196/netbeans-no-suitable-deployment-server-is-defined-for-the-project-or-globally

my GlassFish Server, deploy, null, false

。_饼干妹妹 提交于 2021-01-28 00:15:13
问题 In my GlassFish Server, I got this error message: In-place deployment at D:\simpers\simpers\simpers-war\build\web<br> GlassFish Server, deploy, null, false<br> D:\simpers\simpers\simpers-war\nbproject\build-impl.xml:1118: The module has not been deployed.<br> See the server log for details.<br> BUILD FAILED (total time: 5 seconds)<br> 回答1: I got the same problem. Check you log and verify if it throws a missing Jar exception, that was my problem. For example, this was the log file Caused by:

Payara5 Server will not deploy: Unknown Protocol RFB

放肆的年华 提交于 2021-01-27 14:41:23
问题 In a clean eclipse environment payara5 will not deploy. I have downloaded the correct version of the server, using java 1.8 and simply added it with new server to start it. I cannot get rid of this error. The payara landing page works, however administrative console timeouts. Any help aprreciated. 2019-10-23T13:13:32.432+0200|INFORMATION: Running Payara Version: Payara Server 5.193.1 #badassfish (build 275) 2019-10-23T13:13:32.438+0200|INFORMATION: Server log file is using Formatter class:

How to deploy Spring boot application on Glassfish 4.1.1

纵饮孤独 提交于 2021-01-27 06:58:20
问题 Am trying to deploy a Spring Boot application on GlassFish 4.1.1, but unable to do so. I have seen and read many posts here about similar problem, but none of them seem to post a workaround that works for me. My pom looks like this <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0<

异常处理:java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext

て烟熏妆下的殇ゞ 提交于 2021-01-27 03:01:09
异常来源: 笔者在使用Java11开发 springcloud项目时,通过模块依赖运行eureka-server strater类,出现异常 Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext at java.base /jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~ [na:na] at java.base /jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~ [na:na] at java.base /java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~ [na:na] at java.base /java.lang.Class.forName0(Native Method) ~ [na:na] at java.base /java.lang.Class.forName(Class.java:398) ~ [na:na] at java.base /sun.reflect.generics.factory