glassfish « Glassfish « JSF Q&A

1. Mask URL in JSF

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

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

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, it only tell me that it ...

4. JDBC Flexible Real and GlassFish

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

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

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"

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

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?

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

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/*

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

Consider the following backing bean:

import javax.faces.bean.ManagedBean;
import javax.faces.bean.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

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?

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

17. JSF 2.0 GlassFish 3.0.1 problem

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

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

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

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

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

23. Glassfish V3.2 b-05 corrupt webui-jsf-

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

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

27. JSF 1.2 in glassfish v3

28. JSF 2.0 in GF 3.1.1-*

29. JSF 2.0 GlassFish 3.0.1 problem

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

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

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

36. looking for jsf-api.jar

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

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

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

42. JSF Question

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

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

46. How do I use JSF 1.2 with Glassfish?

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( at org.apache.jasper.compiler.ErrorDispatcher.dispatch( at org.apache.jasper.compiler.ErrorDispatcher.jspError( at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes( at org.apache.jasper.compiler.Validator$ValidateVisitor.visit( at org.apache.jasper.compiler.Node$CustomTag.accept( at org.apache.jasper.compiler.Node$Nodes.visit( at org.apache.jasper.compiler.Node$Visitor.visitBody( at org.apache.jasper.compiler.Validator$ValidateVisitor.visit( at org.apache.jasper.compiler.Node$CustomTag.accept( at org.apache.jasper.compiler.Node$Nodes.visit( at org.apache.jasper.compiler.Node$Visitor.visitBody( at org.apache.jasper.compiler.Validator$ValidateVisitor.visit( at org.apache.jasper.compiler.Node$CustomTag.accept( at org.apache.jasper.compiler.Node$Nodes.visit( at org.apache.jasper.compiler.Node$Visitor.visitBody( at org.apache.jasper.compiler.Validator$ValidateVisitor.visit( at org.apache.jasper.compiler.Node$UninterpretedTag.accept( at org.apache.jasper.compiler.Node$Nodes.visit( at org.apache.jasper.compiler.Node$Visitor.visitBody( at ...

48. JSF - what am I doing wrong??

49. JSF questions

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

[#|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( at org.apache.catalina.core.StandardContext.listenerStart( at org.apache.catalina.core.StandardContext.start( at com.sun.enterprise.web.WebModule.start( at org.apache.catalina.core.ContainerBase.addChildInternal( at org.apache.catalina.core.ContainerBase.addChild( at org.apache.catalina.core.StandardHost.addChild( at com.sun.enterprise.web.WebContainer.loadWebModule( at com.sun.enterprise.web.WebContainer.loadWebModule( at com.sun.enterprise.web.WebContainer.loadJ2EEApplicationWebModules( at com.sun.enterprise.server.TomcatApplicationLoader.load( at com.sun.enterprise.server.AbstractManager.load( at com.sun.enterprise.server.ApplicationLifecycle.onStartup( at com.sun.enterprise.server.ApplicationServer.onStartup( at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup( at at com.sun.enterprise.server.PEMain.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at com.sun.enterprise.server.PELaunch.main(

51. JSF,Tiles and Glassfish

52. JSF, navigation case, redirect, url rewriting

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

--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

56. JSF - getting FacesConfigBean

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

58. JSF commandLink

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

60. JSF Questions

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

ApplicationDispatcher[/RialtoPlayground] PWC1231: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at rialto.faces.taglib.ViewTag.doStartTag( at org.apache.jsp.login_jsp._jspx_meth_rialto_view_0( from :127) at org.apache.jsp.login_jsp._jspService( from :100) at org.apache.jasper.runtime.HttpJspBase.service( at javax.servlet.http.HttpServlet.service( at org.apache.jasper.servlet.JspServletWrapper.service( at org.apache.jasper.servlet.JspServlet.serviceJspFile( at org.apache.jasper.servlet.JspServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.servletService( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.ApplicationDispatcher.doInvoke( at org.apache.catalina.core.ApplicationDispatcher.invoke( at org.apache.catalina.core.ApplicationDispatcher.processRequest( at org.apache.catalina.core.ApplicationDispatcher.doForward( at org.apache.catalina.core.ApplicationDispatcher.forward( at com.sun.faces.context.ExternalContextImpl.dispatch( at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView( at com.sun.faces.application.ViewHandlerImpl.renderView( at com.sun.faces.lifecycle.RenderResponsePhase.execute( ...

64. Glassfish Classloader for JSF

65. Glassfish V2, Tiles 2 and JSF

66. JSF 1.1 on GlassFish?

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

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

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.

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

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

76. Enity dependencies in JSF

78. JSF 1.2_13 on glassfish 2.1

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?

> the 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 > > > 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

83. JSF 2.0 code generation

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

85. JSF Table with filter implementation

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?

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 ...