glassfish « Glassfish « JSF Q&A





1. Mask URL in JSF    stackoverflow.com

I have an enterprise application written in JAVA with JSF (using RichFaces 3.3). Currently my URL looks like this: http://localhost/WebApplication/faces/folder1/page.jsp Question is how do I mask my url to make it ...

2. Performance issue with marshalling/unmarshalling in Glassfish/Unix    stackoverflow.com

I've recently deployed my application on a glassfish installation running on Unix and I'm having serious performance issues with a section of the code. My application has to communicate with another system ...

3. What implementation version of JSF that bundle with Glassfish 3.0.1    stackoverflow.com

I am trying to find out what implementation version of JSF that bundle with Glassfish 3.0.1. Is it Mojarra 2.0.2 or 2.0.3 Here http://glassfish.java.net/downloads/3.0.1-final.html, it only tell me that it ...

4. JDBC Flexible Real and GlassFish    stackoverflow.com

I'm trying to use JDBC Flexible realms in simple webapp but I have problem add realm to server lib as instruction said and configur realm as fallow: jaas.context: jdbcFlexibleRealm password.digest: PLAIN sql.passwor: SELECT userpassword ...

5. Target Unreachable, identifier resolved to null    stackoverflow.com

I'm trying to run j2EE project on external server. Project was made in NetBeans (6.7.1) and when I run it from there, everything's going fine (I run it on GlassFish v3 ...

6. Convert inputText to byte[] in JSF    stackoverflow.com

I'm writing a web application which has a JSF page with a bean behind it. I am having trouble with it and I think it's because the bean is expecting a ...

7. Glassfish 3: cannot set javax.faces.PROJECT_STAGE to "production"    stackoverflow.com

I', trying to set the javax.faces.PROJECT_STAGE to "production" in my web.xml, but in runtime I see, that the value is always "development". Debugging shows very strange things, cannot get ...

8. How to upload files to glassfish with JSF    stackoverflow.com

I want to upload a file to my glassfish v3.0, but when i use richfaces and prime faces, i get problems. Is there any compatibility issue with file uploading in glassfishV3.0? ...

9. JSF ViewScope calls constructor on every ajax request?    stackoverflow.com

This doesn't seem right. I was doing some cleaup of my code and I just noticed this. Every primefaces ajax request is firing the constructor and @PostConstruct. Even ...





10. Glassfish context-root issue    stackoverflow.com

I'm trying to deploy a JSF-2 application in the root of my glassfish server so that http://localhost:8080/ leads to my welcome page. For some reason when trying to configure this, ...

11. GlassFish 3.1 problem with /faces/*    stackoverflow.com

I read that a facelet can be accessed, with GF 3.1, directly by:

  1. http://localhost:8080/myapp/page.faces;
  2. http://localhost:8080/myapp/page.jsf;
  3. http://localhost:8080/myapp/faces/page.xhtml.
because that mapping is made automatically by the server. However the last mapping doesn't ...

12. @SessionScoped does not work when adding @Named    stackoverflow.com

Consider the following backing bean:

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class Counter {

    int counter;

    public Counter() {
        this.counter = 0;
 ...

13. JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari    stackoverflow.com

I have a JSF 2.0 web application running on glassfish 3.1 that is working fine on IE, FF, Safari and Chrome. When I added the url of my website inside a iframe ...

14. How do I fix a Thread Leak in a JSF application?    stackoverflow.com

I have an ApplicationScoped bean that fires up a separate Thread to do some background work. The Thread has a method for cleanly terminating it called terminate(). If not ...

15. JSF 2 issues with Glassfish    coderanch.com





17. JSF 2.0 GlassFish 3.0.1 problem    coderanch.com

Thank you again. May be it's not a bug but it still looks for me like a JSF 2.0 limitation. Because this worked fine in JSF 1.2 with a4j but now it doesn't(with RF 4.0 it doesn't work either). So I guess that you answered my question but it seems I don't like it. It's normal. Thank you again. Regards, Ilya. ...

18. problem jsf2 in glassfish 3.1.1    coderanch.com

19. migrating from glassfish v2.x to glassfish v 3.0    coderanch.com

HI to All, i am trying to migrate from glassfish v2,x to glassfish v 3.0. its not purely migrating but the thing is my application was built in glassfish v2.x (jsf 1.2). now this application should be deployed in glassfish v3.0 (jsf 2.0). big deal is that most of the pages (new and edit) were built dynamically in my application.When i ...

20. callflow glassfish V3    coderanch.com

Hi, May be it isn't the right forum. My problem is that I would like to know wich functions are called by the application. I don not know if it is called the callflow. I'm developing with glassfish V3. For exemple: I have a form with a selectonemenu with the property "onchange=submit()". When I change its value some functions of the ...

21. Custom Boolean Converted worked fine with GF3.0.1+JSF1.2 and now it doesn't with GF3.1+JSF2    java.net

thanks, Martin Gainty ______________________________________________ Jogi s Bizalmassgi kinyilatkoztats/Verzicht und Vertraulichkeitanmerkung/Note de dni et de confidentialit Ez az zenet bizalmas. Ha nem n az akinek sznva volt, akkor krjk, hogy jelentse azt neknk vissza. Semmifle tovbbtsa vagy msolatnak ksztse nem megengedett. Ez az zenet csak ismeret csert szolgl s semmifle jogi alkalmazhatsga sincs. Mivel az electronikus zenetek knnyen megvltoztathatak, ezrt minket semmi ...

22. Forwarding to JSF from JAX-RS    java.net

23. Glassfish V3.2 b-05 corrupt webui-jsf-4.0.2.6.jar    java.net

Symptom: while starting the admin console the server.log indicates, that the above mentioned jsf-file is corrup, checksum error (error logs below.) Impact: The admin console stops loading. I have monitored this on earlier version even on some of Sun's V2, V2.1, V2.1.1 variing between platforms, sparc / x86 Solution: the fastes course of action in this instance I took was copying ...

25. JSF 1.2 on Glassfish 3.1    java.net

Hi I've been to a land of pain and horror trying to port my application that is using JSF1.2/Icefaces1.8 from Glassfish 3.0 to Glassfish 3.1 First I tried to update it to JSF2.0/Icefaces2.0 but it's not viable, as the application was heavily realing on some deprecated features, and I don't want to spend weeks rewriten core features. So I decide to ...

26. JSF 1.2 on Glassfish 3.1    java.net

27. JSF 1.2 in glassfish v3    java.net

28. JSF 2.0 in GF 3.1.1-*    java.net

29. JSF 2.0 GlassFish 3.0.1 problem    java.net

I'm getting the following problem: When I rerender the form inside some element and this form was not rendered before h:commandButton and h:commandLink inside this form stop working. I should press a button twice and just then it calls an action from a jsf bean. Could anyone tell my why commandButton does not work at once after rerendering? The sample of ...

30. JSF in Glassfish    java.net

31. JSF2 on GlassFishV3 always send 304, how to resolve?    java.net

Hi! "I use outputStylesheet and outputScript for some resources. But when I've made changes to the development project and want to redeploy in the production environment, the response code for the resources are 304 (not modified) which means that the browser wont pickup the changes before the caches are reset. Any ideas? I use JSF2 and Glassfish v3"

34. remove jsf from glassfish 3.0.1    java.net

36. looking for jsf-api.jar    java.net

37. looking for jsf-api.jar (cont)    java.net

38. What debugger do you use for JSF/EE apps    java.net

After hearing all the NetBeans buzz at Java One, I finally tried it out on a JSF app. I fired up the debugger without much hope, but I was pleasantly surprised. Breakpoints in JSF pages are too confusing to be useful for the average developer, but breakpoints in managed beans or renderers work beautifully.

41. jsf & inheritance    java.net

42. JSF Question    java.net

44. JSF PhaseListeners added twice when using DynaFaces "PARTIAL" lifecyle    java.net

Boiled down: the Shale Remoting PhaseListener is being called twice, which results in the server sending a double-response to the client. (why .responseComplete doesn't kill the second one, I don't know) I've traced the servlet startup and responses exhaustively, and found that FacesServlet is adding all my PhaseListeners twice: once to the "DEFAULT" Lifecycle instance, and once to the "PARTIAL" instance. ...

45. JSF and authorization    java.net

46. How do I use JSF 1.2 with Glassfish?    java.net

StandardWrapperValve[faces]: PWC1406: Servlet.service() for servlet faces threw exception org.apache.jasper.JasperException: /register.jspx(15,77) PWC6131: Attribute label invalid for tag inputText according to TLD at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:49) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:334) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:162) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1118) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:820) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1469) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2244) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2294) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1469) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2244) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2294) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1469) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2244) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2294) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:750) at org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1205) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2244) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2294) at ...

48. JSF - what am I doing wrong??    java.net

49. JSF questions    java.net

Hello, I'm trying to develop a very simple JSF application using NetBeans visual web feature. NetBeans says it should run under Glassfish V1 and that's correct, I ran it successfully on V1 without a problem. I tried V2 buy I failed. My question is what is the difference between V1 and V2 in the JSF part? Sorry, I could be obvious, ...

50. Getting JSF 1.2 to work    java.net

[#|2007-01-10T15:52:43.575-0500|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=20ddffd2-6f46-411e-809d-d00a0458e841;|WebModule[/sales]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener java.lang.NoSuchMethodError: com.sun.faces.config.GlassFishConfigureListener.scanWebXml(Z)V at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(GlassFishConfigureListener.java:46) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4414) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5069) at com.sun.enterprise.web.WebModule.start(WebModule.java:299) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:925) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:909) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1549) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1192) at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules(WebContainer.java:1117) at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:128) at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:208) at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:204) at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332) at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112) at com.sun.enterprise.server.PEMain.run(PEMain.java:326) at com.sun.enterprise.server.PEMain.main(PEMain.java:260) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)

51. JSF,Tiles and Glassfish    java.net

52. JSF, navigation case, redirect, url rewriting    java.net

If cookies are enabled, everything works fine. The session is preserved. If cookies are disabled in the browser, the session get lost (no jsessionid appended). State preservation for JSF is on default settings. What can I do to enable url rewriting for such a redirect? Shouldn't this be done by the faces servlet. Perhaps it is a bug? I need this ...

53. ZipException when running the jsf-glassfish-updater-1.2_03-FCS.jar    java.net

--Todd ----------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

54. Data Grouping Display in JSF    java.net

56. JSF - getting FacesConfigBean    java.net

I am programming a JSF web application, which should support plug-ins. The plug-in should be some jar file. It can have jsf page and appropriate backing-bean. I need, that the plug-in can "register" its backing-beans (similar as if they have been written in faces-config.xml). I found in JSF some class called FacesConfigBean, which should have informations from faces-config.xml and with which ...

57. JSF URL Pattern in web.xml    java.net

58. JSF commandLink    java.net

Basically, the pe bean reads people's names and IDs from a database and lists them on the page as links. Clicking on a name should open a new page displaying further details about the person. Basically, I'm trying to pass the person's ID as a parameter to the next page - the pi bean. The pi bean creates a new Person ...

59. JSF update    java.net

60. JSF Questions    java.net

I have run through the Netbeans tutorial for JSF framework introduction plus the validation and conversion tutorial. It was a pretty useful tutorial, but it left me wanting. To be fair, it exposed me to: - Managed Beans and how to reference them in a JSP. - Configuring Navigation in the Faces-config.xml. - Validation. - Conversion. - Some of the convenience ...

62. Problems with JSF-Extension    java.net

ApplicationDispatcher[/RialtoPlayground] PWC1231: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at rialto.faces.taglib.ViewTag.doStartTag(ViewTag.java:31) at org.apache.jsp.login_jsp._jspx_meth_rialto_view_0(login_jsp.java from :127) at org.apache.jsp.login_jsp._jspService(login_jsp.java from :100) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) ...

64. Glassfish Classloader for JSF    java.net

65. Glassfish V2, Tiles 2 and JSF    java.net

66. JSF 1.1 on GlassFish?    java.net

I'm migrating an existing JSF 1.1 application from Tomcat 5.5 to GlassFish v2ru2. The trouble I'm having is that while I can get the application to deploy successfully, it appears that the JSF framework is not initializing or functional when I log into my application. For now, I need to stay on JSF 1.1.

69. A lot of warning message using JSF in glassfish    java.net

Thanks! I read this article. I set the request encoding at the servlet filter. I think that the servlet filter is the most earliest stage for the web application. The warning message is produced after call servlet filter. I use apache shale, I guess the issue may be the glassfish or the apache tile framework try to change the character encoding, ...

70. Uploading files with JSF    java.net

Hello, I need code that can perform a file upload with Glassfish, but I am having lots of problems. I know that JSF does not directly support file uploads, and third party software is required. I've been spending several days trying to get this to work, but so far it's been very frustrating.

71. upgrading jsf in glassfish.    java.net

Im facing the same problem, but i didn't upgraded my JSF. My problem's context is that i configured a cluster enviroment whith Load Balancing using Sun Java System Web Server 7 and Glassfish V2. My application is an Enterprise Application (EAR) and it works just fine in a stand-alone application server. Just in cluster it get some errors regarding to JSF. ...

72. Issues in JSF    java.net

I have an .ear application.which i have developed on NetBeans.and it is sucessfully deployed on Glassfish.when i deployed same application on jboss.i am getting JSF errors i kept all the jsf libs in jboss/server/lib.if i put all the libs in my application it is throwing an error.can any one please help me on this.

73. jsf css cache for glassfish 9.1    java.net

76. Enity dependencies in JSF    java.net

78. JSF 1.2_13 on glassfish 2.1    java.net

What is also weird, is that when I put the jsf-impl back to the lib dir of the server (and it prints 1.2_04 again) and I remove the jsf-impl from my WAR, it gives a ClassNotfoundException FacesContext, right after printing the version (1.2_04) . Why would this be, since its using the jsf-impl from the lib dir of the server ...and ...

79. Include later version of JSF in my WAR file?    java.net

> the https://glassfish.dev.java.net/issues/show_bug.cgi?id=6577 says it's > ported to glassfish v2.1 > > useBundledJsf should be used in conjunction with classloader's delegate set > to false. explanation of delegate mode is given at > http://docs.sun.com/app/docs/doc/820-4496/beagb?a=view > > with this setup you force server to load your jsf implementation from > applications WEB-INF/lib folder. errors with xerces and/or other libs are to > ...

80. Glassfish JSF 1.2_14    java.net

83. JSF 2.0 code generation    java.net

Special thanks to Alexander Berry and also great thanks to Alexis Moussine for their help. Though I was developing in NetBeans 6.8 but I was careless about its sophisticated futures. It is really great and also meaningful when they say 'The only IDE you need'. I think by know it is the best IDE to develop in JEE6. I also wanted ...

84. Problema con JSF    java.net

85. JSF Table with filter implementation    java.net

I have create a simple application using visual jsf framework in netbeans 6.1 in my application, I have created a frame with date fields, drop down box and table to display data I used java persistance API for table . I want to filter the table data according to date and drop down box, how to achieve the above filter in ...

87. JSF bug in Glassfish 3.1?    java.net

It seams to me that it is JSF2 problem and not GlassFish. I tried to use JSF2.1.0-b06 and I got the same massage as you, but I use Tomcat6. The same message appears when using 2.1.0-b04. After I switched to stable release JSF2.0.3, the message is gone. Probably GlassFish 3.1 (beta) uses JSF2.1.0 (beta) and that is the reason of this ...