users@glassfish.java.net

Re: [Fwd: iiop over http] createTempFile when deploying WAR - failure

From: David Harrigan <dharrigan_at_gmail.com>
Date: Mon, 26 Feb 2007 03:46:13 -0800 (PST)

HI Everyone,

This has now been fixed for b37...

-=david=-


David Harrigan wrote:
>
> Hi,
>
> Actually, I've discovered, it's a bug.
>
> I've logged it:
>
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=2477
>
> -=david=-
>
>
> David Harrigan wrote:
>>
>> Hi,
>>
>> GF v2 b36.
>>
>> Trying to deploy a WAR that contains a very simple webservice on Ubuntu
>> 6.10 x86. I'm getting this error:
>>
>> [#|2007-02-23T10:05:09.513+0000|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=20;_ThreadName=httpWorkerThread-4848-5;_RequestID=a2e3d
>> b5c-b5a3-4d08-a2d3-6117955fd604;|
>> java.lang.IllegalArgumentException: Prefix string too short
>> at java.io.File.createTempFile(File.java:1782)
>> at java.io.File.createTempFile(File.java:1830)
>> at
>> com.sun.enterprise.tools.admingui.handlers.FileUploadHandler.uploadFileToTempDir(FileUploadHandler.java:113)
>> 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:597)
>> at
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:342)
>> at
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:441)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:342)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:316)
>> at
>> com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)
>> at
>> com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)
>> at
>> javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
>> at
>> javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
>> at javax.faces.component.UICommand.broadcast(UICommand.java:368)
>> at
>> com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
>> at
>> javax.faces.component.UIViewRootCopy.broadcastEvents(UIViewRootCopy.java:452)
>> at
>> com.sun.faces.extensions.avatar.components.PartialTraversalViewRoot.broadcastEvents(PartialTraversalViewRoot.java:408)
>> at
>> javax.faces.component.UIViewRootCopy.processApplication(UIViewRootCopy.java:764)
>> at
>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>> at
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:229)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>> at
>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
>> |#]
>>
>>
>>
>> And the WAR fails to deploy. Here's the web.xml and sun-jaxws.xml that
>> I'm using:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>> <display-name>calc</display-name>
>> <listener>
>>
>> <listener-class>com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener</listener-class>
>> </listener>
>> <servlet>
>> <servlet-name>calc</servlet-name>
>>
>> <servlet-class>com.sun.xml.ws.transport.http.servlet.JAXRPCServlet</servlet-class>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>> <servlet-mapping>
>> <servlet-name>calc</servlet-name>
>> <url-pattern>/calc</url-pattern>
>> </servlet-mapping>
>> <session-config>
>> <session-timeout>60</session-timeout>
>> </session-config>
>> </web-app>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime'
>> version='2.0'>
>> <endpoint name='calc' implementation='com.stellestia.Calculator'
>> url-pattern='/calc' />
>> </endpoints>
>>
>>
>>
>> Anyone with any idea?
>>
>>
>> -=david=-
>>
>
>

-- 
View this message in context: http://www.nabble.com/createTempFile-when-deploying-WAR---failure-tf3278036.html#a9157446
Sent from the java.net - glassfish users mailing list archive at Nabble.com.