geronimo

Apache/Tomcat/JBOSS/Jetty/Nginx/WebLogic/WebSphere之间的区别区别

拟墨画扇 提交于 2021-01-30 04:41:23
总结:Apache/Tomcat/JBOSS/Nginx区别 . 1、Apache是Web服务器,Tomcat是应用(Java)服务器。Tomcat在中小型系统和并发访问用户不是很多的场合下被普遍使用。Apache支持静态页,Tomcat支持动态的。 2、Jetty:Tomcat内核作为其Servlet容器引擎,并加以审核和调优.大中型系统可以应用。能够提供数据库连接池服务,还支持其他 Web 技术的集成,譬如PHP、.NET 两大阵营. 3、JBoss是一个管理EJB的容器和服务器,但JBoss核心服务不包括支持servlet/JSP的WEB容器,一般与Tomcat或Jetty绑定使用。 4、Nginx是目前性能最高的HTTP服务器。其特点是占有内存少,并发能力强。Nginx代码完全用C语言从头写成。 所以:Apache--Nginx;Tomcat--Jetty;JBoss。这三组可以组合了。 具体描述: 一、Apache+Tomcat Apache支持静态页,Tomcat支持动态的,比如Servlet等,   一般使用Apache+Tomcat的话,Apache只是作为一个转发,对JSP的处理是由Tomcat来处理的。 Apche可以支持PHPcgiperl,但是要使用Java的话,你需要Tomcat在Apache后台支撑,将Java请求由Apache转发给Tomcat处理。

[activiti]activiti6.x调用RESTful服务例子

给你一囗甜甜゛ 提交于 2020-03-12 22:27:55
package com.activiti6.demo; import org.activiti.spring.boot.SecurityAutoConfiguration; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @SpringBootApplication(exclude = SecurityAutoConfiguration.class) public class Activiti6DemoApplication { public static void main(String[] args) { SpringApplication.run(Activiti6DemoApplication.class, args); } @RequestMapping("/hello") String home() {

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

人盡茶涼 提交于 2019-12-28 05:45:28
问题 I am trying to create a simple JSF web application using MyFaces v 2.1 with WebSphere Application Server Community Edition v3.0.0.1 and Eclipse Juno but when I try to run the application the following error is returned java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener org.apache.geronimo.common.DeploymentException: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder

如何使用JSP / Servlet将文件上传到服务器?

故事扮演 提交于 2019-12-25 18:17:38
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 如何使用JSP / Servlet将文件上传到服务器? 我尝试了这个: <form action="upload" method="post"> <input type="text" name="description" /> <input type="file" name="file" /> <input type="submit" /> </form> 但是,我只得到文件名,而不得到文件内容。 当我将 enctype="multipart/form-data" 到 <form> ,然后 request.getParameter() 返回 null 。 在研究期间,我偶然发现了 Apache Common FileUpload 。 我尝试了这个: FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); List items = upload.parseRequest(request); // This line is where it died. 不幸的是,该servlet抛出了一个异常,没有明确的消息和原因。 这是堆栈跟踪: SEVERE:

Nullable Date column merge problem

醉酒当歌 提交于 2019-12-21 19:47:42
问题 I am using JPA with openjpa implementation beneath, on a Geronimo application server. I am also using MySQL database. I have a problem with updating object with nullable Date property. When I'm trying to merge entity with Date property set to null, no sql update script is generated (or when other fields are modified, sql update script is generated, but date field is ommited from it). If date field is set to some other not null value, update script is properly generated. Did anyone have

war file using Struts2 can not be deployed to Geronimo 2.2.1

半腔热情 提交于 2019-12-13 07:04:19
问题 I use MyEclipse 10 to build an empty web with adding Struts 2.1 capability. In MyEclipse 10, I only add Struts 2 Core Libraries, which contain below libraries in WEB-INF/lib: antlr-2.7.2.jar aopalliance-1.0.jar classworlds-1.1.jar commons-beanutils-1.7.0.jar commons-chain-1.2.jar commons-collections-3.2.jar commons-digester-2.0.jar commons-fileupload-1.2.1.jar commons-io-1.3.2.jar commons-lang-2.3.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.1.jar freemarker

Spring under Geronimo v2.1 with Jetty

这一生的挚爱 提交于 2019-12-11 15:36:14
问题 I trying to deploy Java EE web application on Geronimo container with Jetty web server. Unfortunately I have some troubles, I'm getting NoSuchMethod error. I saw that somebody had similar problem, and the solution was to remove redundant spring-framework library from classpath. But it doesn't work for me, my classpath is correctly constructed. Here's contents of WEB-INF/lib directory: aopalliance-1.0.jar commons-collections-3.2.1.jar commons-logging-1.1.1.jar dom4j-1.6.1.jar h2-1.3.164.jar

Classloader problem with EJB

允我心安 提交于 2019-12-11 07:09:03
问题 I'm working on a project which includes persistence library (JPA 1.2), EJB 3 and Web presentation layer (JSF). I develop application using Eclipse and application is published on Websphere Application Server Community Edition (Geronimo 2.1.4) through eclipse plugin (but the same thing happens if I publish manually). When publishing to server I get the following error: java.lang.NoClassDefFoundError: Could not fully load class: manager.administration.vehicles.VehicleTypeAdminBean due to

Nullable Date column merge problem

怎甘沉沦 提交于 2019-12-04 12:32:14
I am using JPA with openjpa implementation beneath, on a Geronimo application server. I am also using MySQL database. I have a problem with updating object with nullable Date property. When I'm trying to merge entity with Date property set to null, no sql update script is generated (or when other fields are modified, sql update script is generated, but date field is ommited from it). If date field is set to some other not null value, update script is properly generated. Did anyone have problem like that? OpenJPA makes certain assumptions when you've detached (and presumably serialized) an

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

时光毁灭记忆、已成空白 提交于 2019-11-27 20:35:00
I am trying to create a simple JSF web application using MyFaces v 2.1 with WebSphere Application Server Community Edition v3.0.0.1 and Eclipse Juno but when I try to run the application the following error is returned java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener org.apache.geronimo.common.DeploymentException: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createWebAppClassFinder(AbstractWebModuleBuilder.java:665) at org.apache.geronimo.web25.deployment