[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?

2008-12-21 Thread Michael Slinn
Filed as http://bugs.adobe.com/jira/browse/FB-16422



[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?

2008-12-17 Thread cornelcreanga
I've tested now the button "validate location" from Flex Server - yes
it seems broken, I think you should fill a bug. 



[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?

2008-12-16 Thread Michael Slinn
Cornel,

Thanks for confirming my suspicions.  I realized I was checking the
wrong directory for disk activity.  Flex Builder does not probe the
Root Folder that Flex Builder presents in Project Properties / Flex
Server, it probes the deployment folder, which resides in the workspace.

My test setup is:
Root folder:
C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoServer\WebContent
Root URL: http://localhost:8080/echoServer/  (this works ... serves up
content properly)
Context Root: /echoServer

The server project folder is of course:
C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoServer
The BlazeDS client folder is
C:\sites\slinnbooks.com\www\production\webapps\ROOT\books\serverSide\examples\blazeDS\echoTest\echoClient
The Eclipse workspace is: C:\work\eclipseWorkspaces\Europa2
This directory is the deployment folder, and has the necessary Flex
xml files in it:
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex

Pressing the Validate Location button generates this error message:
Cannot access the web server. The server may not be running, or the
web root folder or root URL may be invalid.

FileMon shows a hundreds of disk accesses after I click on Validate
Location.  Here is some of the activity:
10:02:39 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}:$DATA
   NOT FOUNDOptions: Open  Access: Read   
10:02:39 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\:SummaryInformation:$DATA
   NOT FOUNDOptions: Open  Access: Read   
10:02:46 AMexplorer.exe:3864DIRECTORY   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\
   SUCCESSFileBothDirectoryInformation: services-config.xml   
10:02:46 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml
   SUCCESSOptions: Open  Access: Read   
10:02:46 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml:Raec25ph4sudbf0hAaq5ehw3Nf:$DATA
   NOT FOUNDOptions: Open  Access: Read   
10:02:46 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml\:Docf_SummaryInformation:$DATA
   NOT FOUNDOptions: Open  Access: Read   
10:02:47 AMexplorer.exe:3864QUERY INFORMATION   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml
   SUCCESSAttributes: A   
10:02:47 AMexplorer.exe:3864CLOSE  
10:02:46 AMexplorer.exe:3864OPEN   
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml\:Docf_SummaryInformation:$DATA
   NOT FOUNDOptions: Open  Access: Read
C:\work\eclipseWorkspaces\Europa2\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\echoServer\WEB-INF\flex\services-config.xml
   SUCCESS   

The attempts to write random data to the $DATA forks all fail, yet the
necessary files are all there.  I'm running Windows XP SP3.  Is this a
bug?  I can reproduce this problem on several Windows systems.

Mike



[flexcoders] Re: How does Flex Builder validate a BlazeDS/LCDS J2EE project?

2008-12-16 Thread cornelcreanga
The code does the following things:

1)Check if the server root exists
2)Check if services.xml or flex-config.xml exists
3)Creates a temporary file and checks for it with a GET command on the
server port.