Labels

Wednesday, July 23, 2014

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

2014-07-24T10:48:55.420+0530] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=21 _ThreadName=http-listener-1(3)] [timeMillis: 1406179135420] [levelValue: 900] [[
  StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac.  A full JDK (not just JRE) is required
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:119)
at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:208)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Unknown Source)
]]

Friday, June 13, 2014

If the host names or IP addresses of ALM server and database server are changed.

Recently our ALM POC server DB got changed from one server to other server. Inorder to point to new server we followed below steps to point to the new server.

Solution :

Step 1: Change siteadmin.xml
            
           Login to the ALM server where ALM is installed and navigate to the below path 
           
           "C:\ProgramData\HP\ALM\jboss\server\default\deploy\20qcbin.war\WEB-INF\siteadmin.xml".

           We need to change the content inside the tag "<DbUrl>DbUrl>", which will change the IP address of the DB server that contains siteadmin DB.


Step 2: Change DBSERVERS table

           Access to DB server. Open siteadmin DB, then modify the IP address or hostname of DB server under the table "DBSERVERS"

Step 3: Change PROJECTS table

           Access to DB server. Open siteadmin DB, then modify the IP address and hostname of DB server under the table "PROJECTS"

Step 4: Restart ALM service.

Now the ALM will points to New DB Server


Tuesday, June 10, 2014

What are the 3rd party software products we can integrate with ALM/QC?

IBM ReqPro
BM Rational Team Concert
IBM Rational Req. Composer
IBM DOORS
Atlassian JIRA
Atlassian GreenHopper
Selenium
Rally
Serena
Version One
BugZilla
TeamForge
IRIS
Microsoft TFS
ARIS
BluePrint
Caliber Requirements Manager
Remedy
Proprietary

Monday, June 9, 2014

JVM appears hung: Timed out waiting for signal from JVM. error in Jetty server

ERROR  | wrapper  | 2014/06/04 15:53:55.147 | JVM appears hung: Timed out waiting for signal from JVM.
ERROR  | wrapper  | 2014/06/04 15:53:55.585 | JVM did not exit on request, terminated STATUS | wrapper  | 2014/06/04 15:54:01.163 | Launching a JVM...


Wednesday, May 21, 2014

fromDate and toDate piker html source code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />  
    <title>Untitled Document</title>
    <link

href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/j

query-ui.css" rel="stylesheet" type="text/css"/>
    <script

src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"><

/script>
    <script

src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-

ui.min.js"></script>

<script type="text/javascript">
    $(function() {
        var dates = $( "#from, #to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            numberOfMonths: 2,
            onSelect: function( selectedDate ) {
                var option = this.id == "from" ? "minDate" :

"maxDate",
                    instance = $( this ).data( "datepicker" ),
                    date = $.datepicker.parseDate(
                        instance.settings.dateFormat ||
                        $.datepicker._defaults.dateFormat,
                        selectedDate, instance.settings );
                dates.not( this ).datepicker( "option", option, date

);
            }
        });
    });
    </script>
  </head>

<body>
<div class="date">

<label for="from">From</label>
<input type="text" id="from" name="from"/>
<label for="to">to</label>
<input type="text" id="to" name="to"/>

</div><!-- End demo -->

</html>

Tuesday, May 20, 2014

org.apache.jk.common.MsgAjp cpBytes SEVERE: Overflow

May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Buffer overflow: buffer.len=8192 pos=8188 data=9
May 16, 2014 6:54:01 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Overflow
java.lang.Throwable
        at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:196)
        at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:170)
        at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:155)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:311)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:302)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.finish(Response.java:305)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

        at java.lang.Thread.run(Thread.java:662)

Solution:- While running perl scripts thourgh web application we got above error .we did below change to work.
we need to default packetSize like this in mod_jk file:

<Connector ... packetSize="16384" />

Make sure you set the max_packet_size in mod_jk TO BE THE SAME VALUE,
otherwise everything will go to problem. You can go up to 65536 bytes for
the packet size if you really need to. Note that larger packet sizes may
have a performance impact.

Tuesday, April 22, 2014

Source code for Text Output from a Dropdown Select

<!DOCTYPE HTML>

  <html>

    <head>

    <meta charset="utf-8">

    <title>Display phone number on select</title>

  </head>


  <body>

    <label for="storeSelect">Nearest Store</label>

    <select id="nearestStore">

      <option value="noSelection">Please Select</option>

      <option value="Lowestoft">Lowestoft</option>

      <option value="GtYarmouth">Gt Yarmouth</option>

      <option value="Norwich">Norwich</option>

      <option value="Diss">Diss</option>

    </select>

    

    <div id="phoneNumber"></div>

    

    <script>

      var nearestStore = document.getElementById("nearestStore"),

          phoneNumber = document.getElementById("phoneNumber"),

          stores = {

            noSelection: "",

            Lowestoft: "12345678",

            GtYarmouth: "222 444 666",

            Norwich: "999 999 999",

            Diss: "0000000000000"

          }

          

      nearestStore.onchange = function(){

        phoneNumber.innerHTML = stores[this.value];

      }

    </script>

  </body>

</html>