[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problems with jcvsweb 1.3.6  XML
Forum Index » JCVS Web
Author Message
Anonymous



I've installed jcvsweb on jboss3.2.5 and tomcat 5.0.26 (this is the default
package which you can download from the jboss site). (I'm running jboss for
itracker).

I'm getting the following errors:

- Edit config page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/EditConfig.jsp]
/WEB-INF/tiles/EditConfig.jsp(56,40) The end tag "</html:checkbox" is>
unbalanced'

- Edit user page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/UserSelect.jsp]
/WEB-INF/tiles/UserSelect.jsp(6,2) The value for the useBean class attribute
java.util.Set is invalid.'

- My Home page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/MyHome.jsp] /WEB-INF/tiles/MyHome.jsp(7,0)
The value for the useBean class attribute java.util.Set is invalid.'

- Projects page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/SummaryList.jsp]
/WEB-INF/tiles/SummaryList.jsp(7,0) The value for the useBean class attribute
java.util.List is invalid.'

Btw. edit config dir works.

Regards,
Andrej
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Thank you for this bug report. I will look into those errors.
[Email] [WWW]
Anonymous



I am also getting the same errors on Tomcat 5.0.19.
Anonymous



Anonymous wrote:I am also getting the same errors on Tomcat 5.0.19.


I was getting the same errors on Tomcat 5.0.27.
After replacing java.util.Map with java.util.HashMap, java.util.Set with
java.util.HashSet and java.util.List with java.util.ArrayList in appropriate jsp
pages, those errors dissapeared.

<html:checkbox tags end with /> but </html:checkbox> tags exist,
removing / before > in opening tag, solved html:checkbox tag problems.

After that, I encountered following errors:
[ServletException in:/WEB-INF/tiles/MyHome.jsp] null'

Similar error exist in Edit User and Users.

Second error, when I changed Config Directory, I was not able to login, not even
using default admin account.
When I copied the content of WEB-INF/conf/permission, WEB-INF/users.xml, and
WEB-INF/projects the problem was solved. Looks like configuration is not copied
over to the new Config Directory.
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

I don't understand why those bean declarations have to be made into the
subclasses. Is that in the JSP spec?! What is the point of subclassing if I
cannot reference the super class?

And why does this all work fine for me under Tomcat 4.1?

It sounds like some change in the JSP specification. Does anyone know?

As for the configuration change, there is no copying of the configuration. In
most cases the configuration will already exist in the new location, so we do
not want to overwrite that. However, I guess I must add code to check for a
non-existant configuration and copy the default in that case.
[Email] [WWW]
Anonymous



Actually, I had to replace all useBean declarations as follows:

java.util.List -> java.util.ArrayList
java.util.Map -> java.util.TreeMap
java.util.Set -> java.util.TreeSet

They have to match what is in the Java source code otherwise you get
ClassCastExceptions...

As for your question time, you can't specify an interface class in a useBean
declaration for obvious reasons... if you look at the generated JSP code, it
has to know how to instantiate the bean... an interface is not a bean, and of
course interfaces cannot be instantiated.

At any rate, after fixing the compile and HTML errors, I was able to get the
thing running, however I couldn't figure out how to get it to perform the
initial "checkout" on my HEAD view... I had to manually perform the checkout,
after which it works fine. Not sure how updating is handled either (do I have
to write a batch process that updates every so often?).

Speaking of views, is there a page that allows me to create views. I had to
manually edit the project file to create the view.

Thanks.
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Thank you very much for following up on this and clearing up my misconceptions.
As you can see, I am no JSP expert.

Views are created in the "Edit Project" page. You will see a link for "Create
New View".

Once you create a view, it will be displayed in the Edit Project page, and there
you will see a little green circle with a checkmark inside. This is the link to
perform the checkout.

Updates will be added soon, as well as "cron" like features to update
periodically per your configuration.
[Email] [WWW]
mlennox



Joined: 04/08/2004 12:09:28
Messages: 5
Offline

Thanks Time...

Looking forward to 1.3.8...
[Email]
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

I am sorry to say that I did not get these fixes into the 1.3.8 upload.

I am simply too busy to get it done now. I will integrate these fixes in the
next release, but that will not be until the end of september.
[Email] [WWW]
Anonymous



Is this bug is fixed in jboss3.2.5?
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

I do not think it is a "bug" in JBoss.

I think it is simply that JBoss was "updated" to "enforce" the rule that says I
cannot have useBean statements that reference interfaces. It is something that I
need to fix in the next release of jCVSWeb.
[Email] [WWW]
Anonymous



Anonymous wrote:I've installed jcvsweb on jboss3.2.5 and tomcat 5.0.26 (this
is the default package which you can download from the jboss site). (I'm running
jboss for itracker).

I'm getting the following errors:

- Edit config page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/EditConfig.jsp]
/WEB-INF/tiles/EditConfig.jsp(56,40) The end tag "</html:checkbox" is>
unbalanced'

- Edit user page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/UserSelect.jsp]
/WEB-INF/tiles/UserSelect.jsp(6,2) The value for the useBean class attribute
java.util.Set is invalid.'

- My Home page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/MyHome.jsp] /WEB-INF/tiles/MyHome.jsp(7,0)
The value for the useBean class attribute java.util.Set is invalid.'

- Projects page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/SummaryList.jsp]
/WEB-INF/tiles/SummaryList.jsp(7,0) The value for the useBean class attribute
java.util.List is invalid.'

Btw. edit config dir works.

Regards,
Andrej

time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Thank you for the report. I will try to get all of these problems in the next
release.
[Email] [WWW]
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

Release 1.4.1 is now available, and should correct the bugs identified in this
thread. See http://www.jcvs.org/jcvsforum/posts/list/1514.page
[Email] [WWW]
Anonymous



Anonymous wrote:I've installed jcvsweb on jboss3.2.5 and tomcat 5.0.26 (this is the default
package which you can download from the jboss site). (I'm running jboss for
itracker).

I'm getting the following errors:

- Edit config page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/EditConfig.jsp]
/WEB-INF/tiles/EditConfig.jsp(56,40) The end tag "</html:checkbox" is
unbalanced'

- Edit user page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/UserSelect.jsp]
/WEB-INF/tiles/UserSelect.jsp(6,2) The value for the useBean class attribute
java.util.Set is invalid.'

- My Home page:

[admin] MyHome
[ServletException in:/WEB-INF/tiles/MyHome.jsp] /WEB-INF/tiles/MyHome.jsp(7,0)
The value for the useBean class attribute java.util.Set is invalid.'

- Projects page:

[admin] Projects
[ServletException in:/WEB-INF/tiles/SummaryList.jsp]
/WEB-INF/tiles/SummaryList.jsp(7,0) The value for the useBean class attribute
java.util.List is invalid.'

Btw. edit config dir works.

Regards,
Andrej
>
 
Forum Index » JCVS Web
Go to:   
Powered by JForum 2.1.9 © JForum Team