Hi,
I have an s:fileUpload control that i use to upload an image file to a directory in my application under the name "img".
However when i try to save the uploaded file to that folder i get a FileNotFoundException. I know this is not Seam specific, but i still get the same error even if i use the FacesContext i.e. i use it to get access to the ExternalContext and subsequently to the request path of the folder i want to write to. I even tried to use the org.jboss.seam.util.Resources getResource method, which gets me a URL, but i still am not able to write to that URL.
Can anybody whip up some code on how exactly i can write the byte data i upload to the folder. I'll be very grateful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068638#4068638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068638
Hi,
I've tried the @Observer annotation on an application scope seam compnonent, and i realise that it is still not being called after startup.
I've done a search through the seam code and i seam not to find any event being raised by the name "org.jboss.seam.postInitilization" which my method would then observe.
Is there any other way to do this or am i missing something. Debugging shows that my annotated method is not called at all.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068636#4068636
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068636
anonymous wrote :
|
| The AvailableConnections is actually the number of permits available to enter the pool.
| Its not necessarily the same thing as the checked out connections
| though it should be pretty similar and only transiently different.
|
|
Noted.
Next time the problem hits again, I will try to enable the traces. I hope that will be helpful. Regarding the weakhashmap, i might not change at it as its a prod system. Also the first connection that system made (from the initializer servlet) is still present in it. Just getting a clue would be fine enough.
Thanks,
Suds
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068631#4068631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068631