home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 May / CMCD0505.ISO / Software / Shareware / Programare / bugzero / WEB-INF / faq.txt next >
Text File  |  2004-07-08  |  21KB  |  426 lines

  1.         Bugzero Frequently Asked Questions
  2.  
  3. General Questions:
  4.  
  5. Q: What are the system requirements?
  6. A: Bugzero utilizes your existing hardware and software, and can be integrated seamlessly
  7.    with your current Java/J2EE and database systems. It is cross-platform and can be 
  8.    installed on Windows, Unix (Linux), IBM iSeries (AS/400), and Mac operating systems.
  9.    The server requires:
  10.      1. J2SE (JDK 1.3+)
  11.      2. A Java Servlet engine or J2EE application server.
  12.      3. A database.
  13.      4  A SMTP mail account (optional).
  14.  
  15.    Bugzero has to be installed on the same computer where the Servlet engine
  16.    and JDK is installed. On the other hand, the database and SMTP server can be
  17.    anywhere (either on the same computer or not).
  18.  
  19.    Bugzero is web-based, and so for end users, only a browser is required.
  20.  
  21. Q: What are the supported database systems?
  22. A: Theoretically, Bugzero should run on all the available database systems.
  23.    Bugzero has been tested and deployed in production environment on MySQL 3.23+,
  24.    PostgreSql 7.1, Access 97/2000, SQL Server 7/2000, Oracle 8i, IBM DB2 7.2,
  25.    IBM DB2 on AS 400, and Sybase ASE 12.0.
  26.  
  27.    If you use IBM iSeries (IBM AS/400) DB2, you have to enable journaling for
  28.    the database. You can do that with CRTJRNRCV (Create Journal Receiver),
  29.    CRTJRN (Create Journal), and STRJRNPF (Start Journal Physical File).
  30.  
  31. Q: What are the supported J2EE or servlet containers?
  32. A: Theoretically, Bugzero should run on all the available J2EE or Servlet engines.
  33.    Bugzero has been tested and deployed in production environment on 
  34.    Tomcat 3.x and 4.x, JBoss 2.x and 3.0, WebLogic 6.x and 7.0, WebSphere 4.x and 5.0,
  35.    Oracle 9iAS, iPlanet Web Server 6.0 and Application Server 6.5 (SunOne),
  36.    Orion Server 1.5.2, JRun 4, Resin 2.1.4, and 
  37.    Novell exteNd Application Server 5.0 (SilverStream).
  38.    
  39.    Bugzero needs only a servlet container, an EJB container is not required.
  40.  
  41. Q: What are the supported Web browsers?
  42. A: Bugzero does not use Java Applet, Microsoft ActiveX, or any other Plugins.
  43.    Bugzero does need Javascript. It has been tested on the following browsers:
  44.    IE 5.x, IE 6.x, Mozilla 1.x, Firebird (Phoenix) 0.4+, Netscape 4.7+,
  45.    Opera 6.0+, Apple Safari 1.x, and Konqueror. 
  46.    Other browsers should also work, but they have not been officially tested.
  47.  
  48.    Please note that, when attaching a file, if the browser encoded the multipart
  49.    form data incorrectly, Bugzero will reject the data and you will see an error
  50.    message. This may occur for the following browsers:
  51.  
  52.      MSIE 5.01; Windows NT 5.0
  53.      Konqueror/3; Linux
  54.      Konqueror/3.0.0-10; Linux
  55.  
  56.    The following problems have been reported, but normally they cannot be
  57.    reproduced and they may never happen to you:
  58.  
  59.      With Netscape 4.79 on Solaris, the attachment page and the reports result
  60.      pages do not display correctly. Version 7.0 apparently works fine. 
  61.  
  62.      With Netscape 7.0, the graphic reports cannot be displayed if the Cache
  63.      property is set to "Every time I view the page", set it to "When the page
  64.      is out of date" solves the problem.
  65.  
  66.      With IE6, if the Bugzero host computer does not have a DOMAIN (i.e.,
  67.      WORKGROUP setup), then you may need use its IP address, instead of the
  68.      hostname, in the url.  Otherwise, IE6 may not allow cookies.
  69.  
  70. Q: Where to get the SQL Server 2000 JDBC driver?
  71. A: Because of licensing issues, we cannot package the driver. However, you 
  72.    can download it free from <a href="http://www.microsoft.com/sql/downloads/">www.microsoft.com</a>.
  73.  
  74.    Install it to any directory and find out where these 3 jar files: msbase.jar,
  75.    mssqlserver.jar and msutil.jar are located.
  76.    During Bugzero's setup process, it will ask you the folder where they are located,
  77.    and the setup program will copy them to the Bugzero lib folder.
  78.  
  79. Q: Where to get the Oracle JDBC driver?
  80. A: Oracle JDBC driver comes with Oracle, the file is classes12.zip for Oracle 8i
  81.    and ojdbc14.jar for Oracle 9i (and JDK 1.4). You can also download the drivers
  82.    from the oracle website. Please note that, for oracle 8.16 or ealier, you must
  83.    download a updated version of classes12.zip. The ojdbc14.jar driver works
  84.    only for JDK1.4 or later.
  85.  
  86. Q: What jdbc driver should I use for DB2?
  87. A: The DB2 driver comes with the database, the file is db2java.zip under the
  88.    folder /SQLLIB/java. 
  89.    Note that, even if the database is on the same local machine, it is better
  90.    to use COM.ibm.db2.jdbc.net.DB2Driver, not COM.ibm.db2.jdbc.app.DB2Driver 
  91.    The url is jdbc:db2://database_hostname/bugzero_db, where database_hostname
  92.    can be localhost.
  93.  
  94. Q: Can Bugzero be installed in a virtual host environment?
  95. A: Yes. Bugzero is completely self-contained and can be installed in a virtual host
  96.    environment within a hosting company that supports Java servlet/jsp and database
  97.    access. You may want manually configure the database properties and upload the
  98.    entire bugzero package to your virtual host's application directory. You need
  99.    then run 'bugzero -admin passwd' to create the base tables. 
  100.  
  101. Q: Can I run Tomcat as an NT service for Bugzero (on windows)?
  102. A: Yes, you can. Bugzero is now completely self contained and does not
  103.    require any modifications of the classpath. So, to Bugzero, there is no
  104.    difference whether you launch tomcat with the NT service or with the command.
  105.  
  106. Q: What is the HTTP port number of my application server?
  107. A: The HTTP port number of an application server is configurable. Below is the 
  108.    default HTTP port numbers of some application servers:
  109.      Tomcat (JBoss): 8080 (see server.xml)
  110.      WebLogic: 7001 (see config.xml)
  111.      WebSphere: 9080 (server-cfg.xml)
  112.      Oracle 9iAS: 8888 (see default-web-site.xml)
  113.      iPlanet: 80 (see server.xml)
  114.      Orion Server: 80 (see default-web-site.xml)
  115.      JRun: admin (8000), default (8100), samples (8200) (see jrun.xml) 
  116.      Resin: 8080 (see resin.conf)
  117.  
  118. Q: How to deploy Bugzero on IBM WebSphere 4/5?
  119. A: You can deploy Bugzero with the WebSphere administration console. 
  120.    First, cd to the bugzero directory and type 'jar ../bugzero.war .'.
  121.    And then move the resulted bugzero.war to WebSphere's installableApps
  122.    directory and use the administration console to deploy bugzero.war.
  123.    
  124. Feature Related:
  125.  
  126. Q: How can I add more user groups?
  127. A: You can add/remove groups by using the GROUP administration page.
  128.    Note that, groups admin and guest are preloaded. 
  129.  
  130. Q: Can Bugzero cc email to people?
  131. A: Yes, there is a cc email field on the create and edit bug page. One can cc multiple
  132.    people. The email addresses should be seperated with ";".
  133.  
  134. Q: The hype-link in the bug notification email does not work.
  135. A: The default email template is created based on the file /data/template/email_body.
  136.    You need modify the template by replacing 'http://localhost:8080' to the real url 
  137.    for each project using the EMAIL adminstration page.
  138.  
  139. Q: How can I always send notification email to the original submitter?
  140. A: You need modify _issueform.jspf by restoring the submitter email block in the file
  141.    (it was commented out by default).
  142.    For most of the cases, restart servlet container is not needed, but you need
  143.    change the timestamp of the file edit.jsp so that it can be re-compiled.
  144.  
  145. Q: I do not have a smtp mail server, can I disable sending email?
  146. A: Yes, you can disable Bugzero sending email by setting (in the file mail.properties):
  147.    mail.mailer.disabled=true
  148.  
  149.    Please note that, by default, email notification is enabled and if you do not either
  150.    disable it or set up the mail account, you will notice some exceptions in the log
  151.    file. 
  152.  
  153. Q: Can I change the project name of an existing project?
  154. A: Yes. The project name that is actually seen by the end users is now different from
  155.    the project ID. While the ID of an existing project can not be changed, the name can
  156.    be changed at runtime by using the administration interface. The change will be seen
  157.    immediately to the end users.
  158.  
  159. Q: Does Bugzero accept bug reports submitted through email?
  160. A: Yes. Bugzero has an advanced parsing capability for inbound emails. Email bug 
  161.    submission can either modify an existing bug(s) or create a new bug. It has
  162.    a spam-filter and can also handle email attachment. 
  163.  
  164. Q: Can Bugzero be integrated with CVS source control system? 
  165. A: Yes. Bugzero can be integrated with CVS version control system through our email API.
  166.    You need configure your CVS such that the loginfo will be sent to an email address set
  167.    up for this purpose. Detail instruction is available under WEB-INF/misc/email/.
  168.  
  169. Q: Can Bugzero be integrated with Perforce? 
  170. A: Yes. Bugzero can be integrated with Perforce through the email API.
  171.    You need run the Change Review Maemon on the p4 server, and create a p4 user
  172.    for the project you want receive email. You need add the dir/files in this user's
  173.    Review.
  174.  
  175. Q: Does Bugzero support internationalization?
  176. A: Yes, internationalization is now fully supported for Servlet 2.3 containers and
  177.    databases that either directly support UTF-8 character set or their JDBC driver
  178.    can encode the unicode in the front.
  179.  
  180.    Bugzero with UFT8 has been tested on Oracle 8i databases with UTF8 character set,
  181.    and on MySQL 3.23 with the jdbc driver useUnicode set to true.    
  182.    MySQL 4.1.1, yet to be released, shall support UTF8 character set directly. 
  183.  
  184.    If you use Asian languages such as Chinese, Japanese, and Korea, you may
  185.    consider using UTF8, that can be switched on with system.charset=UTF-8 in the
  186.    file system.properties.
  187.  
  188.    If you do not have a proper database that supports UTF, then you should not
  189.    use UTF setting. Bugzero still works fine on the browser by saving the data in
  190.    unicode numbers and displaying the characters correctly. In the email notification,
  191.    however, mail clients such like outlook will show undesirably the unicode numbers,
  192.    not the corresponding characters.
  193.  
  194.  
  195. Runtime Errors:
  196.  
  197. Q: The graphic report failed to be displayed and exceptions occurred.
  198. A: On Linux or Unix OS, an exception is thrown by the Java AWT toolkit when it
  199.    can not make a connection to an X11 server. The exception can be something like
  200.    "Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable".
  201.    
  202.    If your OS has graphics support, you need make sure that the local X11 is running,
  203.    and the DISPLAY variable is correctly set. 
  204.  
  205.    If you are on a unix server that does not provide a graphical user environment,
  206.    there are three alternatives:
  207.  
  208.    1. Sun JDK 1.4 Headless mode
  209.       If you are using JDK 1.4, then you can use the Headless graphics mode to launch 
  210.       the server, ie, you can add a java argument of -Djava.awt.headless=true.
  211.       For example, with Tomcat, add the following line in cataline.sh (or setclasspath.sh):
  212.  
  213.       JAVA_OPTS=-Djava.awt.headless=true
  214.  
  215.       Note that, it seems the presense of X11 runtime libraries is still needed, that
  216.       is, an X11 environment must be installed into the system, but the X11 server 
  217.       itself need not be started. For example, for RedHat Linux, the minimum set
  218.       of X11 packages needed is:
  219.         * XFree86
  220.         * XFree86-libs
  221.  
  222.    2. Virtual X11 Frame Buffer (Xvfb)
  223.       For JDK 1.3, the headless mode is not available. If you do not have X11 sever,
  224.       you can install a lightweight Xvfb (XFree86-Xvfb package).
  225.       In your server launch script (such as tomcat.sh), add the following lines:
  226.  
  227.        if [ -f /usr/X11R6/bin/Xvfb ]; then
  228.           /usr/X11R6/bin/Xvfb :1 -screen 0 1x1x8 > /dev/null 2>&1 &
  229.        fi
  230.        export DISPLAY=:1.0
  231.  
  232.    3. Pure Java AWT (PJA) 
  233.       Another alternative is PJA. For more detail and to download the software, go to
  234.       http://www.eteks.com/pja/en/. 
  235.  
  236. Q: After I login, it takes me to the same page, what is going on?
  237. A: Bugzero uses session to store temporary data, you need enable 
  238.    'Allow per-session cookies (not stored)' for Bugzero to work.
  239.      For IE5, the Cookies section is under 
  240.             Tools menu - Internet Options - Security - Custom Level.
  241.      For IE6, it is under 
  242.             Tools menu - Internet Options - Privacy
  243.      For Netscape, it is under
  244.             Edit - Preferences - Advanced
  245.      For Mozilla, it is under
  246.             Edit - Preferences - Privacy & Security - Cookies
  247.  
  248.    Note that, for later versions of Bugzero, it should explicitly inform you so.
  249.  
  250. Q: When I switch project, it always fall back to the HOME page and display the
  251.    bug list of the previous project.
  252. A: This is a browser caching problem, check your browser's caching status.
  253.    For IE 5.5 or later: Tools - Internet Options - General - 
  254.                 Temporary Internet files - Settings
  255.                 and select "Automatically" or "Every visit to the page"
  256.    
  257.    For Netscape Versions 4 or later or Mozilla 1.x: 
  258.                 Edit - Preferences - Advanced - Cache,
  259.                 and select "When the page is out of date" or 
  260.                            "Every time ...".
  261.  
  262. Q: What is this COM.ibm.db2.jdbc.DB2Exception?
  263.    [IBM][JDBC Driver] CLI0616E  Error opening socket. SQLSTATE=08S01
  264. A: This happens if the DB2 JDBC Applet Server is not running. You need start
  265.    this service.
  266.  
  267. Q: What is this COM.ibm.db2.jdbc.DB2Exception?
  268.    [IBM][JDBC Driver] CLI0637E  QUERY cannot be found
  269. A: This is a known bug in the JDBC driver in DB2 PF5, it occurs when a SQL
  270.    statement contains TAB or new-line characters. You need upgrade the
  271.    JDBC driver.
  272.  
  273. Q: With MySQL, when attaching a file, I got 
  274.    java.lang.IllegalArgumentException:
  275.    Packet is larger than max_allowed_packet from server configuration of 1048576 bytes
  276. A: This happens when the file you are trying to attach has a size larger than the 
  277.    max packet size of your mysql server (the default is 1M). To solve this problem,
  278.    in mysql's configuration file (my.cnf), under [mysqld], add   
  279.    set-variable  = max_allowed_packet=12M 
  280.  
  281.    Note that, after the modification, you need restart mysqld as well as your
  282.    servlet engine.
  283.  
  284. Q: Sybase, error when creating tables:
  285.    The column default_project in table person does not allow null values.
  286. A: With Sybase, by default, it may not allow null values in string columns 
  287.    (like VARCHAR, TEXT, etc). In that case, you will have the above error. The
  288.    solution is to change this default value for a database using "isql" by issuing
  289.    the following command:
  290.  
  291.    sp_dboption db_name, "allow nulls by default", true
  292.  
  293.    Here, "db_name" is your database name.
  294.  
  295. Q: Sybase, error when dropping tables:
  296.    ... command not allowed within multi-statement transaction. 
  297. A: If you encounter this error, issue the following commands at the Sybase command
  298.    line:
  299.  
  300.    use db_name
  301.    go
  302.    sp_dboption db, "ddl in tran", true
  303.    go
  304.  
  305.    Or, use "isql" to issue the following command:
  306.  
  307.    sp_dboption db_name, "ddl in tran", true
  308.  
  309.    Here, "db_name" is your database name.
  310.  
  311. Q: I am using Tomcat 4.1.14, when run Bugzero, sometimes I got a blank page.
  312.    What happened?
  313. A: This is an issue with Tomcat 4.1+ using the CoyoteConnector. The problem
  314.    can be fixed by replacing CoyoteConnector to HttpConnector. Specifically, in
  315.    tomcat's conf/server.xml file, you alter   
  316.    
  317.    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  318.    ...
  319.    to
  320.    <Connector className="org.apache.catalina.connector.http.HttpConnector"
  321.    ...
  322.    You need restart Tomcat for the change to take effect.
  323.  
  324. Q: Is there a potential zip file classloading problem with Tomcat?
  325. A: Yes, if you add a zip file in the WEB-INF/lib folder, Tomcat may not load this zip
  326.    file into the classpath. The problem can be solved by renaming the zip extention to
  327.    jar (you do not need unzip and jar the file, just need rename it).
  328.  
  329.    The above could cause problems if you use Oracle or DB2 databases since both their
  330.    jdbc drivers are packaged into a zip file. If such a problem occurs, please rename
  331.    classes12.zip to classes12.jar or db2java.zip to db2java.jar.
  332.  
  333. Q: With Tomcat, when login, I got an error: 
  334.    Unable to compile class for JSP ... package com.websina.bean does not exist
  335.  
  336. A: This is probably caused by a bug in certain Tomcat versions. It seems that,
  337.    when there is a blank space the directory path where Tomcat is installed, 
  338.    the jsp compiler cannot find the java classes under the WEB-INF/lib.
  339.  
  340.    When you install tomcat on windows, the default directory path is 
  341.    C:\Program Files\Apache Group\tomcat_xxx,  you should change it to, 
  342.    C:\tomcat_xxx instead.
  343.  
  344.    Another possible solution is to move bugzero.jar under bugzero\WEB-INF\lib
  345.    to tomcat's common\lib directory. That also seems solve the problem.
  346.  
  347. Q: When login, I got the following exception (Unix file permission):
  348.    java.lang.NoClassDefFoundError
  349.    at com.websina.bean.Person.login(Person.java)
  350. A: This is a very misleading error. The real cause of this is the log file 
  351.    bugzero.log is not writable (.../bugzero/WEB-INF/classes/log/bugzero.log).
  352.    This happens only on Unix/Linux OS where the owner of the application server
  353.    process is different from the log file owner. You need make this file writable to
  354.    this process owner and probably restart server.
  355.  
  356.    Before you get this error, when you first time log on to Bugzero from the
  357.    browser, you should get something like:
  358.    java.lang.ExceptionInInitializerError: java.lang.RuntimeException: 
  359.    .....log/bugzero.log (Access is denied)
  360.    at com.websina.util.log.Log.(Log.java) .....
  361.  
  362.    and subsequent login results NoClassDefFoundError. 
  363.  
  364. Q: When login, I got
  365.    Cannot create connection pool, check log for detail.
  366. A: This will happen if the application server (or the servlet engine) can not
  367.    find the JDBC driver and failed to create the connection pool. The driver
  368.    jar file(s) should be automatically copied into bugzero/WEB-INF/lib during
  369.    Bugzero setup. If they are indeed there, then, restart the server will solve
  370.    the problem.
  371.  
  372. Q: When login, I got
  373.    Failed to read sql file: login_person
  374. A: In certain application servers and servlet engines, the ContextClassLoader
  375.    is not implemented properly. And because of that, files in the WEB-INF/classes
  376.    are not found. To solve this problem, you need edit the file system.properties
  377.    (under WEB-INF/classes/conf) by setting system.data.dir to the directory path
  378.    of bugzero/WEB-INF/classes (see inline comments in the file). After that, you
  379.    need restart the server.
  380.  
  381. Q: Why email notification is not sent, and what are these JavaMail Exceptions?
  382.    (SecurityException, NoSuchProviderException, NoClassDefFoundError)
  383. A: Email notification is not sent because of these exceptions:
  384.    javax.mail.NoSuchProviderException: smtp
  385.    or
  386.    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
  387.  
  388.    These error messages are produced by JavaMail and are completely misleading. 
  389.    The root cause of the error is a mis-matched or a duplicate pair of mail.jar and
  390.    activation.jar. Bugzero packaged mail.jar and activation.jar under WEB-INF/lib,
  391.    and if your servlet engine have its own pair of jars in its common or shared lib,
  392.    problem may arise. A simple solution is to remove one pair of mail.jar and
  393.    activation.jar either from Bugzero's WEB-INF/lib directory, or from servlet engine's
  394.    common/share lib directory. 
  395.  
  396.    You may also see 
  397.      java.lang.SecurityException: Access to default session denied
  398.    and/or subsequent
  399.      java.lang.NoClassDefFoundError
  400.    The cause of the error is the same as above, and so removing one pair of mail.jar
  401.    and actovation.jar shall solve the problem.
  402.  
  403. Miscellaneous:
  404.  
  405. Q: Which PostgreSQL binary data type can Bugzero use? 
  406. A: PostgreSQL has two binary data types, OID and bytea.
  407.    By default, Bugzero uses PostgreSQL bytea for its binary columns. This works only
  408.    for PostgreSQL 7.2 or later. For Version 7.1, you need modify the file db.properties
  409.    by setting postgresql.LONGBINARY to OID instead of bytea.
  410.  
  411. Q: Can the Microsoft SQL Server 2000 JDBC driver be used on SQL Server 7?
  412. A: The SQL Server 2000 JDBC driver downloaded from Microsoft supports only the
  413.    SQL Server 2000. If you use it on the SQL Server 7, you will get something like:
  414.    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]This version of
  415.    the JDBC driver only supports Microsoft SQL Server 2000.  You can either upgrade
  416.    to SQL Server 2000 or possibly locate another version of the driver.
  417.  
  418.    If you cannot find a free JDBC driver for SQL Server 7, you can create a data source
  419.    (DSN) that points to your SQL Server 7 and then use the jdbc-odbc driver for the
  420.    DSN. But before you launch the Bugzero setup program, you need modify the file
  421.    db.properties. See comments inside the file.
  422.  
  423. -------------------------------------------------
  424. Bugzero homepage: http://www.websina.com/bugzero/
  425. For questions:    mailto: dev@websina.com
  426.