Actually, after looking at deployment log, I found that if I have a
line of code which initializes sqlsessionfactory inside of context
listener, then project fails deployment
In-place deployment at C:\DEV\Projects_Java\uSamplePlatform
\usServiceServer\build\web
Initializing...
deploy?path=C:\DEV\Projects_Java\Platform\usServiceServer\build
\web&name=usServiceServer&force=true failed on GlassFish Server 3
C:\DEV\Projects_Java\Platform\usServiceServer\nbproject\build-impl.xml:
711: The module has not been deployed.
BUILD FAILED (total time: 7 seconds)
if I comment this line out :
MySessionFactory = new SqlSessionFactoryBuilder().build(reader,
"Development_Environment");
Deployment works ...
and the buld-impl.xml: 7711 line looks like this
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false"
forceRedeploy="${forceRedeploy}"/>
</target>