This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 140767 - Can't run Web application with GlassFish V3
Summary: Can't run Web application with GlassFish V3
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 15:44 UTC by Rashid Urusov
Modified: 2008-09-05 14:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server log (17.73 KB, text/plain)
2008-07-21 13:45 UTC, Rashid Urusov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rashid Urusov 2008-07-18 15:44:30 UTC
Product Version: NetBeans IDE Dev (Build 200807170007)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Userdir: C:\Documents and Settings\user\.netbeans\dev

I've created empty Web Application with server and settings value : GlassFish V3 , Java EE Version : Java EE 5
After run application I've got Deployment error.

See output log below: 


init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\build\web\WEB-INF\classes
Created dir: C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\build\web\META-INF
Copying 1 file to C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\build\web\META-INF
Copying 3 files to C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\build\web
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Created dir: C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\dist
Building jar: C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\dist\WebApplication3.war
In-place deployment at C:\Documents and Settings\user\Мои документы\NetBeansProjects\WebApplication3\build\web
deploy?path=C:\Documents and Settings\user\Мои
документы\NetBeansProjects\WebApplication3\build\web?name=WebApplication3?force=true running on GlassFish V3
Unexpected end of file from server
Deployment error:
The module has not been deployed.
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:193)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:485)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187)
        ... 16 more
BUILD FAILED (total time: 24 seconds)
Comment 1 _ pcw 2008-07-18 19:08:08 UTC
Please attach server log.
Comment 2 _ pcw 2008-07-19 04:19:07 UTC
Works fine here, not a P1, dropping to P3.  Please attach server.log when you get a chance.

I noticed the Russian characters in the folder name, so this could be an I18N bug.
Comment 3 Rashid Urusov 2008-07-21 13:45:02 UTC
Created attachment 65123 [details]
server log
Comment 4 Rashid Urusov 2008-07-21 13:46:09 UTC
Yes , it is really concerned using Russian characters in the folder name.
I successfully run application with Latin characters location.
No new recors was added in server log during failed application run.
Anyway I attached server log with successfull running application
Comment 5 _ pcw 2008-08-20 03:03:27 UTC
I'm pretty sure this is entirely a serverside problem.  Additionally, I've reproduced some server problems in this area
that I need to follow up.  In the meantime, can you test deploying this (or any other) web application from the command
line (asadmin) or via a browser request such as 
  
http://localhost:8080/__asadmin/deploy?path=C:\Documents%20and%20Settings\user\Мои%20документы\NetBeansProjects\WebApplication3\build\web?name=WebApplication3?force=true

and see if it produces the same (or otherwise bad) result?  If so, please file an issue in the glassfish issue tracker
(https://glassfish.dev.java.net/servlets/ProjectIssues) with the appropriate description.  Please also add a comment to
this issue including the glassfish issue so we have a cross reference.

And finally, can you try all this on the latest V3 server bits available here:
http://download.java.net/glassfish/v3/promoted/
Comment 6 Rashid Urusov 2008-08-22 15:39:03 UTC
After browser request
http://localhost:8080/__asadmin/deploy?path=C:\Documents%20and%20Settings\user\Мои%20документы\NetBeansProjects\WebApplication3\build\web?name=WebApplication3?force=true

I've got:

GlassFish deploy AdminCommand command report
Exit Code : FAILURE
File not found : C:\Documents and Settings\user\??? ????????\NetBeansProjects\WebApplication3\build\web


I filed issue against glassfish
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5592
Comment 7 _ pcw 2008-08-22 16:24:47 UTC
Thanks.  I cc'd myself to that issue so I can track it as well.

I'm going to close this one as INVALID. (If it turns out there are plugin changes required, we can reopen it, but I
don't think there will be any).
Comment 8 _ pcw 2008-08-22 17:26:23 UTC
*** Issue 144877 has been marked as a duplicate of this issue. ***
Comment 9 _ pcw 2008-09-03 20:29:16 UTC
Ok, this was totally valid -- Needed UTF8 encoding support in the HTTP command infrastructure.
Comment 10 _ pcw 2008-09-03 20:35:06 UTC
I implemented proper UTF8 encoding for all server commands.  This should be completely resolved.  Please file a new
issue  with specific details if there are further problems with projects using non-latin characters.

Fixed by http://hg.netbeans.org/main/rev/cfd00a02413e
Comment 11 Vince Kraemer 2008-09-03 22:45:49 UTC
setting resolution
Comment 12 Quality Engineering 2008-09-04 06:13:57 UTC
Integrated into 'main-golden', will be available in build *200809040201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cfd00a02413e
User: pcw@netbeans.org
Log: #140767 UTF8 support for HTTP api required to deploy and manage projects using non-latin characters.
Comment 13 Rashid Urusov 2008-09-05 14:38:09 UTC
VERIFIED in build 200809040201