Servlet « Glassfish « JSP-Servlet Q&A





1. How do I handle a callback in java    stackoverflow.com

I have a servlet that request a geolocation from another server using an http get. The response is received via a callback from the other server and ends up in another ...

2. localhost 4848, 8080 problem    stackoverflow.com

this might sound like a stupid question, but i want to clarify a concept: using netbeans 6.9, ive successfully completed a web application project using a glassfish container (locally). when i run ...

3. How do I alias domains using servlets?    stackoverflow.com

I'm looking to create a local domain mytest.com and have it point to my glassfish application server's web.xml I'm coming from a php background where I'd edit my /etc/hosts file and ...

4. Simple Servlet Problem    stackoverflow.com

I'm using Eclipse and Glassfish to run a simple servlet. When I'm running it from Eclipse a browser is being open from within the eclipse. The browser goes to

5. How to write a long init in a webapp    stackoverflow.com

I use glassfish to run a webapp. I work with netbeans. My webapp need a very long init. I write that in a ServletContextListener.contextInitialized method. I put in my code some logs. If I write ...

6. Can I create servlets at runtime?    stackoverflow.com

I have a website with several servlets. Each page like index, about, FAQ, contact us and so on, have a servlet connected to them. I am also planning to make it ...

7. Access Java EE monitoring data inside a servlet    stackoverflow.com

I'm trying to access the monitoring data that glassfish v3 is collecting after i switched on monitoring service on and mbean service on. I would like to show data like ProcessingTime or ...

8. Re: running servlet in felix OSGi    java.net

On Wednesday 07 September 2011 03:36 PM, Shai Amar wrote: > Thanks! > You have no idea how you helped :) > Thanks again. > > BTW > Is this fact mentioned anywhere? > If it is not, I'm sure other people would love to know about it. > > Regards > Shai Amar > > On Wed, Sep 7, 2011 ...





11. ProgrammaticLogin in a servlets init()    java.net

No replies ProgrammaticLogin in a servlets init() December 5, 2006 - 04:25 phenderson Offline Joined: 2005-02-16 Points: 0 I am trying to call a session bean from the init() method of a servlet. So I can perform server startup initialization. Before I call the session bean I try to use ProgrammaticLogin to establish credentials. Is there a better way to call ...

14. RunAs on servlet being ignored    java.net

I'm getting a bit stuck here and was hoping someone could point me in the right direction. I'm using Glassfish (glassfish-installer-v1_ur1-p01-b02.jar) and putting together an EAR to prototype some things, and getting stuck on a RunAs/RolesAllowed situation. As far as I can tell from all the doco I've read I'm doing the right thing in terms of supplying mappings in all ...

16. "Hello, World Servlet"    java.net





18. Servlet problem    java.net

21. servlets - total noob    java.net

glassfish@javadesktop.org wrote: > hi everyone. > > i'm a total noob to glassfish and servlets, but not to java. i'm trying to make a simple html page that posts to a servlet which returns a response. nothing fancy, just to learn. i currently have a war file that i am dropping into autodeploy that looks like this: > > servletTest/ > ...

22. Interrupting a running Servlet    java.net

24. Possible bug in servlet    java.net

25. Support for Servlet 3.0    java.net

26. simple servlet throttling    java.net

27. Strange servlet behaviour !!!!!!!    java.net

Well if the servlet were processing the previous requests the second request would already result in value to be "value1"? Could it be that you are using instance members to store the request parameters? Generally there exists only one servlet per servlet definition in the web.xml. Thus instance members are rarely appropriate for servlets.

30. Which Servlet spec?    java.net

I'm getting a message during application deployment saying there's something wrong with my "metadata-complete" attribute on the web-app element. However I think there are other things wrong with the web.xml (this app was modified from a 2.3-compliant app). I'm working on it and I should know very soon if this is correct.

32. adopting servlet 3 ?    java.net

33. glassfish + servlet    java.net

Thank you very much, I found it. I still have one question. How do I set up my ant to recognize the path to my glassfish module folder? My current ant does recognize my glassfish path, but it keeps automatically append /lib to the end of the path. How can I change this /lib to /modules? Thank you

34. Jersey or Servlet ?    java.net

>> Just leverage a simple lookup pattern in your code. Later, when we >> get injection, you can update your lookup code to simply return the >> injected resources. Simple. > > yes, I will wait and pray for that.. I am having a great joy in the > server side coding personal projects like cejug-classifieds: > http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces/index.faces > I am ...

35. Jersey or Servlet ?    java.net

40. How to access fileName in javax.servlet.http.Part    java.net

I want to get the original file name, as it is named on the clients system. org.apache.catalina.fileupload.PartItem has the property fileName but thats not accessible to me as I only have the interface Part which has a getName method, but that one points to the name of the part and not the filename.

41. servlet 3.0 async, gfv3    java.net

42. servlet 3.0@glassfish v3 - fileUpload completely broken?    java.net

[#|2010-04-12T18:35:17.304+0200|WARNING|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=24;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[uploadDocumentServlet]: PWC1406: Servlet.service() for servlet uploadDocumentServlet threw exception java.io.FileNotFoundException: /home/domdorn/skriptum/upload/upload_42ae4017_127f2c57e98__7ffb_00000004.tmp (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:137) at org.apache.catalina.fileupload.PartItem.write(PartItem.java:436) at org.apache.catalina.fileupload.PartItem.write(PartItem.java:470) at com.dominikdorn.sk.servlets.UploadDocumentServlet.doPost(UploadDocumentServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:116) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.dominikdorn.dc.filters.UserAgentCompatibleFilter.doFilter(UserAgentCompatibleFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at net.balusc.http.multipart.MultipartFilter.doFilter(MultipartFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.dominikdorn.sk.service.UserRoleFilter.doFilter(UserRoleFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at ...

43. servlet 3.0 async, gvf3    java.net

44. Dynamic Reloading , only add new servlet    java.net

I have a rather large app running on GF V3. I'd like to be able to add a new servlet to the Web.xml file without causing issues / or redeploying the ejbs / web services that are running (When I re-deploy the ejb's I often find issues with the many running clients).

45. calling Groovy class from existing servlet...    java.net

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut tre ...

47. any open source code for a minamal servlet available ?    java.net

On 5/13/10 11:50 AM, emiddio-verizon wrote: > i am not looking for servlet examples --- i am familiar with servlets. > > i am looking for a "smallest" self contained servlet - all the stuff a > servlet "needs" to run - and its > supporting classes. > > even jetty is much larger than i am thinking of , and ...

49. To access different type of Servlet?    java.net

Hi, I assume a scenario below 1.To deploy a web service to different type of servlet such as glassfish, axis and dotnet. 2.To create web service client project which refer wsdl file from glassfish with OpenESB 3.To use this automatic generation of jax-ws code to invoke web service in different type of servlet 4. To dynamic invoke successfully!