|
Re: doPost doGet not generated [message #221240 is a reply to message #221232] |
Thu, 11 September 2008 16:46 |
|
John Bailo wrote:
> I created a Web/Servlet class, and checked doPost() and doGet() but the
> stub methods and imports were not generated.
>
> All I got was a blank file.
>
There's not enough information for me to tell exactly what's not
happening for you. If you're new to WTP and haven't followed a tutorial,
I'd suggest starting there. Perhaps this fairly recent one:
http://www.windofkeltia.com/j2ee/wtp-tutorial.html
I don't mean you have to do the tutorial, but read through the bits that
correspond to what you were doing and see if something doesn't dawn on
you like the type of project you created, etc.
Hope this helps,
Russ Bateman
|
|
|
|
|
|
|
|
Re: doPost doGet not generated [message #221561 is a reply to message #221521] |
Thu, 18 September 2008 11:26 |
Kaloyan Raev Messages: 201 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Yaroslav,
It seems you have found a bug. It will be very much appreciated if you open
a bug in Eclipse Bugzilla:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Ja va%20EE%20Tools
If possible, please attach in the bug an example workspace which the problem
can be reproduced with.
Greetings, Kaloyan
"Yaroslav " <yarosla@gmail.com> wrote in message
news:dee99d47fcdb4e7cc07b144aae25ea46$1@www.eclipse.org...
> Hi Kaloyan!
>
> Your solution helped. Thank you very much!
>
> Before upgrading to 3.0.1 I had 3.0.0 (I installed brand new Ganymede
> release and imported my projects into it). And servlet generation worked
> in it (I made many servlets in Ganymede before upgrading to 3.0.1).
>
> Regards,
> Yaroslav
>
> Kaloyan Raev wrote:
>
>> Yaroslav,
>
>> What was the WTP version before upgrading to 3.0.1?
>
>> It seems that you had the .JETEmitter already available before the
>> upgrade and after the upgrade it still refers to some old jars...
>> The workaround is to delete the .JETEmitter project from your workspace.
>> Next time you generate a Servlet, it will be recreated and everything
>> should be fine.
>
>> Greetings,
>> Kaloyan
>
>> "Yaroslav " <yarosla@gmail.com> wrote in message
>> news:6ef6ae02fc704bf8fec23d242d1b23d9$1@www.eclipse.org...
>>>I have the same problem. But the workaround presented in bug report did
>>>not help. I had compiler compliance level 1.6. Switching to 1.5 did not
>>>help.
>>>
>>> As I made .JETEmitters project visible I can see many errors in its
>>> source code:
>>>
>>> The method removeFlags(int) is undefined for the type
>>> CreateServletTemplateModel ServletTemplate.java
>>> .JETEmitters/src/org/eclipse/jst/j2ee/web line 89 Java Problem
>>>
>>> and lots of similar errors for other methods of the same class.
>>>
>>> It worth mentioning that I did not have any problems with servlet code
>>> generation until I updated to 3.0.1 version of JST, WTP, etc.
>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds