Servlet « Glassfish « JSP-Servlet Q&A

1. How do I handle a callback in java

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

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?

I'm looking to create a local domain 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

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

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?

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

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

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

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

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"

18. Servlet problem

21. servlets - total noob 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

24. Possible bug in servlet

25. Support for Servlet 3.0

26. simple servlet throttling

27. Strange servlet behaviour !!!!!!!

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?

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 ?

33. glassfish + servlet

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 ?

>> 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: > > I am ...

35. Jersey or Servlet ?

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

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

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

[#|2010-04-12T18:35:17.304+0200|WARNING|glassfishv3.0||_ThreadID=24;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[uploadDocumentServlet]: PWC1406: Servlet.service() for servlet uploadDocumentServlet threw exception /home/domdorn/skriptum/upload/upload_42ae4017_127f2c57e98__7ffb_00000004.tmp (No such file or directory) at Method) at at org.apache.catalina.fileupload.PartItem.write( at org.apache.catalina.fileupload.PartItem.write( at at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.StandardWrapper.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at com.ocpsoft.pretty.PrettyFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at com.dominikdorn.dc.filters.UserAgentCompatibleFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at net.balusc.http.multipart.MultipartFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at ...

43. servlet 3.0 async, gvf3

44. Dynamic Reloading , only add new servlet

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

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 ?

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?

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!