jakarta-ee

glassfish: while deploying the app IOException: invalid zip file

妖精的绣舞 提交于 2020-02-15 10:10:14
问题 In deploying the EAR through the CLI, this error occurs: Exception while deploying the app [EnterpriseLegacy] : java.io.IOException: invalid zip file: file:/home/thufir/glassfish-4.1/glassfish/domains/domain1/application /EnterpriseLegacy/lib/RemoteEJB.jar and yet, Netbeans deploys the same EAR fine from within the IDE. I think the problem is that the EJB module depends on a remote interface, RemoteEJB which builds as a JAR. This JAR is included with the EAR, but I don't believe that's

h:commandbutton, how to redirect to external site?(JSF 2) [duplicate]

家住魔仙堡 提交于 2020-02-08 08:49:40
问题 This question already has an answer here : Redirect to external URL in JSF (1 answer) Closed 4 years ago . When i use command button to redirect to pages, inside my project, u just need to give the name of the page with no extention, followed by ?faces-redirect=true in the action attribute and i will get redirected. But what if i want to get redirected to an external page(example:www.google.com)? I tried in many ways: www.google.com, google.com, http://google.com but i failed. This is what i

Wildfly: Error getting reflective information for class

杀马特。学长 韩版系。学妹 提交于 2020-02-06 07:44:34
问题 I am dealing with two Eclipse Project. The former includes some Session Beans that I manage to deploy on Wildfly Servr. The Latter includes a Servlet I need to inject and use the bean. This is the structure of the projects containing the session bean. Projects is the session bean I want to use as Session Facade to interact with the Project JPA entity. This is the servlet Injecting the Session bean. ProjectsLocal is its Local interface. @EJB private ProjectsLocal projects; /** * @see

Wildfly: Error getting reflective information for class

孤者浪人 提交于 2020-02-06 07:44:32
问题 I am dealing with two Eclipse Project. The former includes some Session Beans that I manage to deploy on Wildfly Servr. The Latter includes a Servlet I need to inject and use the bean. This is the structure of the projects containing the session bean. Projects is the session bean I want to use as Session Facade to interact with the Project JPA entity. This is the servlet Injecting the Session bean. ProjectsLocal is its Local interface. @EJB private ProjectsLocal projects; /** * @see

Creating file upload request using Java code

元气小坏坏 提交于 2020-02-05 08:58:33
问题 I want to implement a chat application in android.In my application I want to upload a file on server so I am using this code for listening file request on server side. protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); // Create path components to save the file final String path = "/home/vibhor/vibhor"; final Part filePart = request.getPart("file"); final String

Creating file upload request using Java code

。_饼干妹妹 提交于 2020-02-05 08:58:30
问题 I want to implement a chat application in android.In my application I want to upload a file on server so I am using this code for listening file request on server side. protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); // Create path components to save the file final String path = "/home/vibhor/vibhor"; final Part filePart = request.getPart("file"); final String

slf4j in library seems to ignore my log4j2 configuration

牧云@^-^@ 提交于 2020-02-05 03:49:09
问题 We use Log4j2 in our java-ee application. We use a library, where logging is programmed against SLF4J. In this library is a class, which logs a lot of stuff I do not want -> so I want to set LogLevel of this Logger to OFF. My log4j2.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <Configuration status="trace" shutdownHook="disable"> <Appenders> <Console name="ConsoleAppender" target="SYSTEM_OUT" ignoreExceptions="false" > <PatternLayout pattern="%d{ISO8601} %d{HH:mm:ss.SSS} [%t] %

Invalidate specific jsf bean session

岁酱吖の 提交于 2020-02-04 23:10:33
问题 How I invalidate a specific bean in a session? I have this example code. I test with ExternalContext.invalidateSession(); but it destroy all beans in the session in the application since it destroys the full session. @Named @SessionScoped class Managed implements Serializable { public void invalidate (){ // lines // externalContext.invalidateSession(); } } but, with invalidateSession all beans in the session are destroyed, I want to invalidate only the one specific "Managed" bean, how I do

Invalidate specific jsf bean session

☆樱花仙子☆ 提交于 2020-02-04 23:03:52
问题 How I invalidate a specific bean in a session? I have this example code. I test with ExternalContext.invalidateSession(); but it destroy all beans in the session in the application since it destroys the full session. @Named @SessionScoped class Managed implements Serializable { public void invalidate (){ // lines // externalContext.invalidateSession(); } } but, with invalidateSession all beans in the session are destroyed, I want to invalidate only the one specific "Managed" bean, how I do

WebServiceTransportException: Unauthorized [401] in Spring-WS

蹲街弑〆低调 提交于 2020-02-03 09:43:07
问题 We are struggling to configure our web app to be able to connect with web services via Spring WS. We have tried to use the example from the documentation of client-side Spring-WS, but we end up with a WebServiceTransportException. The XML config looks like this: <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate"> <constructor-arg ref="messageFactory"/> <property name="messageSender"> <bean class="org.springframework.ws.transport.http