Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Deploying a servlet from powerj

0 views
Skip to first unread message

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 11:25:23 AM2/22/02
to
I created a simple servlet (in notepad), compiled, manually deployed it to
Jaguar. It runs as expected.

Now I'm trying to use PowerJ to automate this task. I created the same
class (but renamed it), compiled and saved it in PowerJ. I'm sure it is a
simple task, but I can't figure out how to deploy my class to Jaguar. The
"Run and Deploy Options" force me to enter a package and component name???
Then when I deploy I get a java.lang.ClassNotFoundException on the
package/component. Of course it is not found - the package/component has
nothing to do with deploying a servlet.

Can PowerJ be used to deploy a servlet? If so, how?

Like always, any reference to specific examples in the manuals would be
welcome...
I'm never smart enough to figure out how to find what I need in the 10 paper
manuals or the many dynatext manuals or the html based manuals (with no
index/search ability) or the sybase site (which always returns 0 useful
links on given search criteria). :(

--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 11:29:51 AM2/22/02
to
I should have mentioned that Im running winnt, Jag 3.6.1, PJ 3.5 build 1798.


--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

"Pete Byer" <pete_byer @fujisawa.com> wrote in message
news:w9GHL67...@forums.sybase.com...

Daniel Coppersmith

unread,
Feb 22, 2002, 11:49:47 AM2/22/02
to
Try adding

%JAGUAR%\html\classes

to PowerJ's Global Classpath tab on the Properties page (from Deploy
Options -> Configure).

It's been quite a while since I've used PowerJ, but I remember having to do
that for something.

D

"Pete Byer" <pete_byer @fujisawa.com> wrote in message
news:w9GHL67...@forums.sybase.com...

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 12:19:05 PM2/22/02
to
Daniel,
Thanks for the tip. I added %JAGUAR%\html\classes and %JAGUAR%\java\classes
since the later is where servlet class files should reside. Adding these
should help me when I get a little further in my deployment process. But, I
still can't deploy a servlet. PowerJ seems to only allow the deployment of
a component. As long as PJ forces me to enter a package/component name, I'm
screwed.

Pete


--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

"Daniel Coppersmith" <dan...@N.0.S.P.A.M_infrontsoftware.com> wrote in
message news:0$NT8G8u...@forums.sybase.com...

Mark_Maslow

unread,
Feb 22, 2002, 3:06:36 PM2/22/02
to
I guess I'm not clear on what you want PJ to do for you. The "Deploy to
Jaguar" option applies to Java classes targets that you want to deploy as
Jaguar components - which do require a package/component name to deploy.
Servlet targets do not have that option. I usually just configure the
build options for my servlets to put the output where the server can find
it in its classpath, and do a build. You can deploy entire Web
Applications from PJ using Web App targets, but I haven't yet figured out
how to deploy just pieces of it - so for incremental changes, I just build
class files when they change, and that works fine.

Daniel Coppersmith

unread,
Feb 22, 2002, 3:39:57 PM2/22/02
to
Are you deploying a JSP page? If so, it's likely you have some syntactical
problem. I have noticed the errors produced from a simple semi-colon
missing are not very descriptive.

Want to post the exact error message you are receiving?

D


"Pete Byer" <pete_byer @fujisawa.com> wrote in message

news:nl1lLY8...@forums.sybase.com...

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 3:56:09 PM2/22/02
to
Mark
From what you are saying, there is no such thing as a "servlet
deployment"???

Building to the directory I specify will give me half of what I want.
The other half would be deploying servlet properties and refreshing the
servlet in jaguar.
I guess I was looking for a "servlet deployment" that works similar to a
"component deployment".

Thanks for the help.

--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

<Mark_Maslow> wrote in message
news:12FEC8327414AE99006E77A285256B68.0064DA9885256B68@webforums...

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 4:16:03 PM2/22/02
to
Daniel,
I want to deploy a standard servlet. I get a classnotfoundexception on the
package/component because the "deploy component" option forces me to enter a
package/component name. I don't have a valid package/component name. What I
want is a "deploy servlet" option or a way to give the wizard a different
deployment type. I want the servlet installed in "Installed Servlets", not
"Installed Packages".
Pete

ps. My servlet runs fine as long as I use jagman to do everything manually.


--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

"Daniel Coppersmith" <dan...@N.0.S.P.A.M_infrontsoftware.com> wrote in

message news:0#Q1jH#uBHA...@forums.sybase.com...

Mark_Maslow

unread,
Feb 22, 2002, 5:02:12 PM2/22/02
to
The only kind of "servlet deployment" that I am aware of is as part of
deploying an entire web app target. Personally, I configure properties and
refresh using Jag Manager.

Isn't it great that we have these wonderful labor-saving IDEs?

Personally, I use PJ as basically a convenient compiler. As with most Java
IDEs, other than that, it provides little more than training wheels or a
crutch. And then you spend more time fighting quirks and bugs than you
would if you just figured out what you were doing and did it all by hand in
a good editor.

Perhaps someone else would like to tell us all why PJ is a great thing, but
I don't see it as adding a whole lot of value. We've heard some hype about
PJ4 for a while now, but I still haven't actually seen it, and am not
holding my breath.

@fujisawa.com Pete Byer

unread,
Feb 22, 2002, 5:13:52 PM2/22/02
to
... what you said.
The only reason I loaded PJ was to simplify my compiles and to deploy.
I thought it was going to deploy my servlets (and their jag properties) the
same as pb 8 deploys/refreshes components. My bad.

--
current email: pete_byer @fujisawa.com
permanent email: pete_byer @byerconsulting.com
http://www.nowalking.com/

<Mark_Maslow> wrote in message
news:E38F7D469BFE5A6E00790D0A85256B68.0078B8A785256B68@webforums...

Jonathan Baker [Sybase]

unread,
Feb 24, 2002, 9:53:02 AM2/24/02
to
Pete,

Here is a great J2EE trick. Use the "copy to folder" option in PowerJ to
copy the servlet in to place, and then refresh using the Jaguar Manager (or
an ANT script, even easier). Takes about 3 seconds.


Jonathan

--
Jonathan Baker
eBusiness Division
Sybase, Inc.


"Pete Byer" <pete_byer @fujisawa.com> wrote in message

news:nDtmnc#uBHA...@forums.sybase.com...

0 new messages