Skip to main content

Deployment problems: Eclipse -> SJSAS 8.2

5 replies [Last post]
daniel0001
Offline
Joined: 2006-08-16

I have successfully installed the GlassFish Plugin (glassfish-eclipse-plugin_0_3) for Eclipse 3.2 to deploy my J2EE web applications to my Sun Java Systems Application Server 8.2. I have registered the server successfully within Eclipse, I am able to start it from Eclipse and to use it in my web project. But unfortunately when trying to deploy my web app from eclipse (-> Run on server) I get an error. It may origin from the fact that my user name on Windows XP contains a German special char for "ae", resulting in a path containing "...\Daniel Pf?nder\..." (see below). Does anyone know how to solve the problem or at least how to change the path where the .war-file seems to be build temporarily for deploying?

To avoid misunderstanding: My SJSAS is up und running.

I am an Eclipse newbie but have some experience with J2EE development on Netbeans.

Here's the error message:

------------------------------------------
Buildfile: C:\eclipse\workspace\.metadata\.plugins\org.eclipse.jst.server.generic.core\serverdef\sunappsrv-ant.xml
deploy.j2ee.web:
[echo] C:/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/MyWebApp1
tools:
deploy:
[exec] CLI171 Command deploy failed : Deploying application in domain failed; Unknown deployable object type specified: File source to be deployed does not exist: C:\Dokumente und Einstellungen\Daniel Pf?nder\Lokale Einstellungen\Temp\s1astempdomain1server1142715591\MyWebApp1.war
[exec] ; requested operation cannot be completed
deploy-url-message:
[echo] Application Deployed at: http://127.0.0.1:8080/MyWebApp1
BUILD SUCCESSFUL
----------------------------------

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
leotodeschini
Offline
Joined: 2008-09-15

Ludo,

Your tip is Fantastic, I use WindowsXP in Brazilian Portuguese and my temp/tmp user environment variables contained special chars so as you suggest I changed this to x:\Windows\temp and everything worked just fine.

You saved my day... tks for this precious help.

Count on me dude.

klinge
Offline
Joined: 2005-07-04

Hi,
I'm using Glassfish plugin 0.3 and SJSAS 9.0 and encounter almost the same problem as daniel. See error message below.

I am able to avoid this error by changing the enviroment variable for my temp directory containing the foreign character. So this seems to the root of the problem. But beeing on a corporate pc I can do this only temporarily.

If this problem with foreign chars is an appserver bug - does anyone know if it's been reported? And if not where would be the correct place for reporing it?

Regards, /Johan Klinge

-----------------------------------------------------
Buildfile: C:\WS\eclipse_ws\.metadata\.plugins\org.eclipse.jst.server.generic.core\serverdef\sunappsrv-ant.xml
deploy.j2ee.web:
[echo] C:/WS/eclipse_ws/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/LowFareAir
tools:
deploy:
[exec] CLI171 Command deploy failed : Deploying application in domain failed; Cannot determine the Java EE module type for C:\Documents and Settings\KFPF\Lokala inst?llningar\Temp\s1astempdomain1server1063498318\LowFareAir.war
deploy-url-message:
[echo] Application Deployed at: http://127.0.0.1:8080/LowFareAir
BUILD SUCCESSFUL
Total time: 5 seconds

griback
Offline
Joined: 2004-03-04

Hi Daniel.
You get one solution for this problem?

ludo
Offline
Joined: 2003-06-10

I think you are right, and if I remember correclty, this is a bug in the app server side itself with 'foreign chars'. Same issue was found with NetBeans.

Can you change the location of the Windows temp (or tmp) directory?
I am not sure if this is a registry entry of an env variable, but this might solve this backend error.

Thanks,
Ludo

daniel0001
Offline
Joined: 2006-08-16

Thanks ludo, you were right. I changed my user environment variables in Windows and it works!

I changed the following *user* environment variables:
TEMP: from "%USERPROFILE%\Lokale Einstellungen\Temp" to "C:\WINDOWS\TEMP"
TMP: "from %USERPROFILE%\Lokale Einstellungen\Temp" to "C:\WINDOWS\TEMP"
(any other existing target folder will work too)

Reboot Windows and done.

How to change variables: See http://support.microsoft.com/kb/310519