Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

WorkSpace NOT publishing web application

8 posts in General Discussion Last posting was on 2007-03-06 19:01:11.0Z
JA Posted on 2007-01-30 21:37:52.0Z
Sender: 1f2d.45be1275.1804289383@sybase.com
From: JA
Newsgroups: sybase.public.workspace.general
Subject: WorkSpace NOT publishing web application
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45bfc8c0.3ec9.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 30 Jan 2007 14:37:52 -0700
X-Trace: forums-1-dub 1170196672 10.22.241.41 (30 Jan 2007 14:37:52 -0700)
X-Original-Trace: 30 Jan 2007 14:37:52 -0700, 10.22.241.41
Lines: 36
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:299
Article PK: 1087944

Hi All-

Here's the situation: if I try to Run a web application
project which was closed at the time WorkSpace was opened,
WorkSpace does not publish the project on the server.

Workaround: Open the web app project and restart WorkSpace;
the next time the web application is run, it is successfully
run/published.

Question: is this a bug, a normal behavior or am I missing
something here??

Repro:

1. Using Web Application Dev perspective, create a new web
application project

2. Run/publish the newly created web application on my app
server (works Ok)

3. Close the web application project

4. Close WorkSpace, and open it again, later

5. Open the newly created web application

6. Make some modification (ie. update a JSP page)

7. Run/publish the web application on the app server

8. The server still shows the *unmodified* JSP !!

Thanks a lot!

Juan


Samir Nigam Posted on 2007-01-31 05:44:37.0Z
From: "Samir Nigam" <samir_dot_nigam@sybase.com>
Newsgroups: sybase.public.workspace.general
References: <45bfc8c0.3ec9.1681692777@sybase.com>
Subject: Re: WorkSpace NOT publishing web application
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: c-24-5-212-34.hsd1.ca.comcast.net
X-Original-NNTP-Posting-Host: c-24-5-212-34.hsd1.ca.comcast.net
Message-ID: <45c03ad5$1@forums-1-dub>
Date: 30 Jan 2007 22:44:37 -0700
X-Trace: forums-1-dub 1170225877 24.5.212.34 (30 Jan 2007 22:44:37 -0700)
X-Original-Trace: 30 Jan 2007 22:44:37 -0700, c-24-5-212-34.hsd1.ca.comcast.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:301
Article PK: 1087946

Juan,

I am not seeing the same behavior. I followed your repro steps against
Tomcat server and couldn't reproduce it. Make sure Project->Build
Automatically option is enabled.

Regards,
Samir

<JA> wrote in message news:45bfc8c0.3ec9.1681692777@sybase.com...
> Hi All-
>
> Here's the situation: if I try to Run a web application
> project which was closed at the time WorkSpace was opened,
> WorkSpace does not publish the project on the server.
>
> Workaround: Open the web app project and restart WorkSpace;
> the next time the web application is run, it is successfully
> run/published.
>
> Question: is this a bug, a normal behavior or am I missing
> something here??
>
> Repro:
>
> 1. Using Web Application Dev perspective, create a new web
> application project
>
> 2. Run/publish the newly created web application on my app
> server (works Ok)
>
> 3. Close the web application project
>
> 4. Close WorkSpace, and open it again, later
>
> 5. Open the newly created web application
>
> 6. Make some modification (ie. update a JSP page)
>
> 7. Run/publish the web application on the app server
>
> 8. The server still shows the *unmodified* JSP !!
>
> Thanks a lot!
>
> Juan


Samir Nigam Posted on 2007-01-31 06:54:04.0Z
From: "Samir Nigam" <samir_dot_nigam@sybase.com>
Newsgroups: sybase.public.workspace.general
References: <45bfc8c0.3ec9.1681692777@sybase.com> <45c03ad5$1@forums-1-dub>
Subject: Re: WorkSpace NOT publishing web application
Lines: 189
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C744C7.F033B650"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: c-24-5-212-34.hsd1.ca.comcast.net
X-Original-NNTP-Posting-Host: c-24-5-212-34.hsd1.ca.comcast.net
Message-ID: <45c04b1c$1@forums-1-dub>
Date: 30 Jan 2007 23:54:04 -0700
X-Trace: forums-1-dub 1170230044 24.5.212.34 (30 Jan 2007 23:54:04 -0700)
X-Original-Trace: 30 Jan 2007 23:54:04 -0700, c-24-5-212-34.hsd1.ca.comcast.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:302
Article PK: 1087950

 
Forgot to mention...
 
I have seen similar behavior with Tomcat. The reason is tomcat's default check interval for modified jsp and its compilation is 5 minutes - too long for developers who test like you are doing. So two options - restart Tomcat or reduce its check interval configuration property in server.xml file.
 
For EAServer, default is 1 second which should be good for development. However, there may be another factor preventing the loading of the new jsp here.. WorkSpace has by default automatic webapp publishing (deployment) enabled for Tomcat but not for EAServer. What that means is - in your case using EAServer, webapp publishing happens when you run the jsp but the old compiled class for jsp is served before jsp change is detected and it is recompiled by the server. A browser reload should help or you can setup automatic webapp publishing behavior for EAServer as well and give enough time before running the jsp. Try it out..
 
You can modify the server publishing behavior in the server's properties editor page (open via Servers view, Server name right-click Open)
 
Regards,
Samir
 
"Samir Nigam" <samir_dot_nigam@sybase.com> wrote in message news:45c03ad5$1@forums-1-dub...
> Juan,
>
> I am not seeing the same behavior. I followed your repro steps against
> Tomcat server and couldn't reproduce it. Make sure Project->Build
> Automatically option is enabled.
>
> Regards,
> Samir
>
>
> <JA> wrote in message news:45bfc8c0.3ec9.1681692777@sybase.com...
>> Hi All-
>>
>> Here's the situation: if I try to Run a web application
>> project which was closed at the time WorkSpace was opened,
>> WorkSpace does not publish the project on the server.
>>
>> Workaround: Open the web app project and restart WorkSpace;
>> the next time the web application is run, it is successfully
>> run/published.
>>
>> Question: is this a bug, a normal behavior or am I missing
>> something here??
>>
>> Repro:
>>
>> 1. Using Web Application Dev perspective, create a new web
>> application project
>>
>> 2. Run/publish the newly created web application on my app
>> server (works Ok)
>>
>> 3. Close the web application project
>>
>> 4. Close WorkSpace, and open it again, later
>>
>> 5. Open the newly created web application
>>
>> 6. Make some modification (ie. update a JSP page)
>>
>> 7. Run/publish the web application on the app server
>>
>> 8. The server still shows the *unmodified* JSP !!
>>
>> Thanks a lot!
>>
>> Juan
>
>


JA Posted on 2007-02-01 15:09:45.0Z
Sender: 1f2d.45be1275.1804289383@sybase.com
From: JA
Newsgroups: sybase.public.workspace.general
Subject: Re: WorkSpace NOT publishing web application
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45c210c9.6334.1681692777@sybase.com>
References: <45c04b1c$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 1 Feb 2007 08:09:45 -0700
X-Trace: forums-1-dub 1170346185 10.22.241.41 (1 Feb 2007 08:09:45 -0700)
X-Original-Trace: 1 Feb 2007 08:09:45 -0700, 10.22.241.41
Lines: 119
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:306
Article PK: 1087953

Hi Samir,

Well, I tried changing the "Automatic Publishing Settings",
setting the "Publishing Interval" to 60 seconds, but I'm
still observing the same behavior:

Open a previously closed web app project; when I hit the Run
button, or right click on the Web App folder or JSP, and
then select "Run As" --> "Run on server", the browser window
appears and shows the JSP almost immediately, so I can tell
the the web app is not being published at that time; also,
the server state goes from "Republish" to "Publishing..."
and back to "Republish" in less than a second (usually it
takes more than a few seconds to publish a typical web app).

I've also monitored my server's log and there's no activity
at all.

After restarting WorksSpace (without closing my web app),
publishing of the web app takes about 4-5 seconds, and when
the browser window opens it takes about 2-3 seconds to
display the JSP, which is consistent with the app server
having to compile the recently deployed JSP.

My server log also shows messages indicating that the web
app is being published and refreshed:

Feb 01 10:49:02 2007: 210005-Putting
D:\Sybase\EAServer\tmp\Jaguar\29377\productos_wa.war
Feb 01 10:49:02 2007: 180438-Jaguar/Management refresh
WebApplication productos_wa

Just as a reminder, I'm using WorkSpace Version: 1.5, Build
id: 2006051914 on Windows XP Pro, and my app server is
EAServer 5.x on a Windows 2003 server.

Thanks a lot for your help!

Juan

> Forgot to mention...
>
> I have seen similar behavior with Tomcat. The reason is
> tomcat's default check interval for modified jsp and its
> compilation is 5 minutes - too long for developers who
> test like you are doing. So two options - restart Tomcat
> or reduce its check interval configuration property in
> server.xml file.
>
> For EAServer, default is 1 second which should be good for
> development. However, there may be another factor
> preventing the loading of the new jsp here.. WorkSpace has
> by default automatic webapp publishing (deployment)
> enabled for Tomcat but not for EAServer. What that means
> is - in your case using EAServer, webapp publishing
> happens when you run the jsp but the old compiled class
> for jsp is served before jsp change is detected and it is
> recompiled by the server. A browser reload should help or
> you can setup automatic webapp publishing behavior for
> EAServer as well and give enough time before running the
> jsp. Try it out..
>
> You can modify the server publishing behavior in the
> server's properties editor page (open via Servers view,
> Server name right-click Open)
>
> Regards,
> Samir
>
> "Samir Nigam" <samir_dot_nigam@sybase.com> wrote in
> > message news:45c03ad5$1@forums-1-dub... Juan,
> >
> > I am not seeing the same behavior. I followed your repro
> > steps against Tomcat server and couldn't reproduce it.
> > Make sure Project->Build Automatically option is
> > enabled.
> > Regards,
> > Samir
> >
> >
> > <JA> wrote in message
> news:45bfc8c0.3ec9.1681692777@sybase.com... >> Hi All-
> >>
> >> Here's the situation: if I try to Run a web application
> >> project which was closed at the time WorkSpace was
> opened, >> WorkSpace does not publish the project on the
> server. >>
> >> Workaround: Open the web app project and restart
> WorkSpace; >> the next time the web application is run, it
> is successfully >> run/published.
> >>
> >> Question: is this a bug, a normal behavior or am I
> missing >> something here??
> >>
> >> Repro:
> >>
> >> 1. Using Web Application Dev perspective, create a new
> web >> application project
> >>
> >> 2. Run/publish the newly created web application on my
> app >> server (works Ok)
> >>
> >> 3. Close the web application project
> >>
> >> 4. Close WorkSpace, and open it again, later
> >>
> >> 5. Open the newly created web application
> >>
> >> 6. Make some modification (ie. update a JSP page)
> >>
> >> 7. Run/publish the web application on the app server
> >>
> >> 8. The server still shows the *unmodified* JSP !!
> >>
> >> Thanks a lot!
> >>
> >> Juan
> >
> >


JA Posted on 2007-02-01 15:36:08.0Z
Sender: 1f2d.45be1275.1804289383@sybase.com
From: JA
Newsgroups: sybase.public.workspace.general
Subject: Re: WorkSpace NOT publishing web application
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <45c216f8.63c3.1681692777@sybase.com>
References: <45c04b1c$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 1 Feb 2007 08:36:08 -0700
X-Trace: forums-1-dub 1170347768 10.22.241.41 (1 Feb 2007 08:36:08 -0700)
X-Original-Trace: 1 Feb 2007 08:36:08 -0700, 10.22.241.41
Lines: 34
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:307
Article PK: 1087954

Another thing:

I've noticed two other things (suppose, again, I've opened
my web app project after starting WorkSpace):

1. After opening the web app project I select Project -->
Properties --> Server, the windows shows:

"This project cannot be deployed to a server".

2. If I right click on the web app folder and select
"Deploy", after selecting the Connection profile, a pop-up
window shows "Web modules cannot be deployed in this
project".

After restarting WorkSpace (w/o closing the web app
project):

1. Project --> Properties --> Server shows:

Project: xxx (J2EE Module)
Default Server: my server profile

2. Right click on Project --> Deploy:

- Select Server profile
- Asks if I want to overwrite my web app
- It says "Succeed" but, again, I'm not sure if this is
even working! so that's why I've been using "Run" to Publish
my web app.

Thanks.

Juan


Samir Nigam Posted on 2007-02-01 21:12:20.0Z
From: "Samir Nigam" <samir_dot_nigam@sybase.com>
Newsgroups: sybase.public.workspace.general
References: <45c04b1c$1@forums-1-dub> <45c216f8.63c3.1681692777@sybase.com>
Subject: Re: WorkSpace NOT publishing web application
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: snigamxp.sybase.com
X-Original-NNTP-Posting-Host: snigamxp.sybase.com
Message-ID: <45c265c4$1@forums-1-dub>
Date: 1 Feb 2007 14:12:20 -0700
X-Trace: forums-1-dub 1170367940 10.22.85.194 (1 Feb 2007 14:12:20 -0700)
X-Original-Trace: 1 Feb 2007 14:12:20 -0700, snigamxp.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:308
Article PK: 1087951

Juan,

I see "This project cannot be deployed to a server" message when the webapp
project is not open. When I deploy the same project after opening, a message
"210005-Putting
C:\Sybase\WorkSpace\DevRuntimes\EAServer\tmp\Jaguar\62158\test1.war" is
logged in EAServer log. So it appears to be working for me.

But, I am using WS 1.6 though and it may be the reason. Perhaps you may want
to upgrade to WS 1.6 + latest EBF to pick up fixes that might have addressed
the problems you are seeing. I can't say for sure if the problems would go
away though. Just quickly, upgrade to WS 1.6 would require uninstall of WS
1.5 tooling and development edition runtime servers (if you have installed
those) and reinstall of WS 1.6 (tooling + development runtimes). EBF can
simply be copied over on the WS 1.6.

Otherwise, you may want to follow-up on these issues via Sybase support.
They would get necessary information to repro those as bugs so we can fix
them.

Regards,
Samir

<JA> wrote in message news:45c216f8.63c3.1681692777@sybase.com...
> Another thing:
>
> I've noticed two other things (suppose, again, I've opened
> my web app project after starting WorkSpace):
>
> 1. After opening the web app project I select Project -->
> Properties --> Server, the windows shows:
>
> "This project cannot be deployed to a server".
>
> 2. If I right click on the web app folder and select
> "Deploy", after selecting the Connection profile, a pop-up
> window shows "Web modules cannot be deployed in this
> project".
>
> After restarting WorkSpace (w/o closing the web app
> project):
>
> 1. Project --> Properties --> Server shows:
>
> Project: xxx (J2EE Module)
> Default Server: my server profile
>
> 2. Right click on Project --> Deploy:
>
> - Select Server profile
> - Asks if I want to overwrite my web app
> - It says "Succeed" but, again, I'm not sure if this is
> even working! so that's why I've been using "Run" to Publish
> my web app.
>
> Thanks.
>
> Juan


Zhimin Lin Posted on 2007-03-06 19:01:11.0Z
From: "Zhimin Lin" <zlin@sybase.com>
Newsgroups: sybase.public.workspace.general
References: <45bfc8c0.3ec9.1681692777@sybase.com>
Subject: Re: WorkSpace NOT publishing web application
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: zlinxp.sybase.com
X-Original-NNTP-Posting-Host: zlinxp.sybase.com
Message-ID: <45edba77$1@forums-1-dub>
Date: 6 Mar 2007 11:01:11 -0800
X-Trace: forums-1-dub 1173207671 10.22.84.185 (6 Mar 2007 11:01:11 -0800)
X-Original-Trace: 6 Mar 2007 11:01:11 -0800, zlinxp.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.workspace.general:339
Article PK: 1088024

Juan,

Can you try two things:

1. Try to find if the jsp is really got updated in EAServer after the second
deployment: check the file in EAServer\Repository\WebApplications\<your
webapp>\<your jsp file>.
If it was updated, you may try to shutdown EAServer, remove folder
%JAGUAR%\temp\Jaguar\ (containing compiled JSP class) and restart EAServer.

2. After the second deployment, locate the file under your project
workspace directory,
workspace\.metadata\.plugiins\org.eclipse.wst.server.core\tmp0\webapps\<your
webapp.war>, check and see if the jsp file is update in the war file. If it
is not, it is probably be a bug for WorkSpace, I think. You can try to
remove the tmp0 directory and redeploy and see.

<JA> wrote in message news:45bfc8c0.3ec9.1681692777@sybase.com...
> Hi All-
>
> Here's the situation: if I try to Run a web application
> project which was closed at the time WorkSpace was opened,
> WorkSpace does not publish the project on the server.
>
> Workaround: Open the web app project and restart WorkSpace;
> the next time the web application is run, it is successfully
> run/published.
>
> Question: is this a bug, a normal behavior or am I missing
> something here??
>
> Repro:
>
> 1. Using Web Application Dev perspective, create a new web
> application project
>
> 2. Run/publish the newly created web application on my app
> server (works Ok)
>
> 3. Close the web application project
>
> 4. Close WorkSpace, and open it again, later
>
> 5. Open the newly created web application
>
> 6. Make some modification (ie. update a JSP page)
>
> 7. Run/publish the web application on the app server
>
> 8. The server still shows the *unmodified* JSP !!
>
> Thanks a lot!
>
> Juan