geeta gonchala

Greenhorn
+ Follow
since Jul 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by geeta gonchala

Hi friends,
I am new to jung frame work.i am not able run these applications my self.
can any body help me how to approch it.

Thank you in advance.
Hi
Thank you for your reply.
Actually it is generating by internal code iused iReport for designing and using directly in java.So cant modify that.
Thank you
Hi friends,
I am trying to display image in html format using jasper reports.image not displaying in the report.In the browser i'm getting http://localhost:8080/image?image=img_0_0_4
Not available.

here is my code
PrintWriter printWriter = response.getWriter();
JRHtmlExporter htmlExporter = new JRHtmlExporter();
response.setContentType("text/html");
request.getSession().setAttribute(
ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
jasperPrint);
htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT,
jasperPrint);
htmlExporter.setParameter(JRExporterParameter.OUTPUT_WRITER,
printWriter);
htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
Boolean.FALSE);
Map imagesMap = new HashMap();
request.getSession().setAttribute("IMAGES_MAP", imagesMap);
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP,
imagesMap);
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
request.getContextPath()
+ "image?image=/images/japser/Sample.html_files/");
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"image?image=");
htmlExporter.setParameter(
JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
Boolean.FALSE);
htmlExporter.setParameter(
JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,
Boolean.FALSE);
htmlExporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT, "px");
htmlExporter.exportReport();


htmlExporter.exportReport();

can any body help me.whats the problem with this code.
Thanks in advance
geeta.
Hi friends,
I am trying to display image in html format using jasper reports.image not displaying in the report.In the browser i'm getting http://localhost:8080/image?image=img_0_0_4
Not available.

here is my code
PrintWriter printWriter = response.getWriter();
JRHtmlExporter htmlExporter = new JRHtmlExporter();
response.setContentType("text/html");
request.getSession().setAttribute(
ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
jasperPrint);
htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT,
jasperPrint);
htmlExporter.setParameter(JRExporterParameter.OUTPUT_WRITER,
printWriter);
htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
Boolean.FALSE);
Map imagesMap = new HashMap();
request.getSession().setAttribute("IMAGES_MAP", imagesMap);
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP,
imagesMap);
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,
request.getContextPath()
+ "image?image=/images/japser/Sample.html_files/");
htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"image?image=");
htmlExporter.setParameter(
JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,
Boolean.FALSE);
htmlExporter.setParameter(
JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,
Boolean.FALSE);
htmlExporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT, "px");
htmlExporter.exportReport();


htmlExporter.exportReport();

can any body help me.whats the problem with this code.
Thanks in advance
geeta.
Hi friends,
I am new to struts test case.I am using this code in my action.
public void setUp() throws Exception {
super.setUp();
setConfigFile("E:/workspace/PrivoHibernateSep29//struts-config.xml");
// setInitParameter("validating","false");
}
public void testSuccessfulLogin() {


addRequestParameter("username","jprivo");
addRequestParameter("password","tayloe");
setRequestPathInfo("/login");
actionPerform();
verifyForward("success");
verifyForwardPath("/pages/success.jsp");
assertEquals("jprivo",getSession().getAttribute("authentication"));
verifyNoActionErrors();
[junit] Running com.privo.hdomain.dao.impl.test.TestLoginAction
[junit] Testsuite: com.privo.hdomain.dao.impl.test.TestLoginAction
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.344 sec
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.344 sec
[junit] ------------- Standard Output ---------------
[junit] - The /WEB-INF/web.xml was not found.
[junit] - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
[junit] javax.servlet.ServletException: The /WEB-INF/web.xml was not found.
[junit] at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1138)
[junit] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:328)
[junit] at javax.servlet.GenericServlet.init(GenericServlet.java:211)
[junit] at servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:226)
[junit] at servletunit.struts.MockStrutsTestCase.tearDown(MockStrutsTestCase.java:126)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] - Error initializing action servlet
[junit] javax.servlet.UnavailableException: The /WEB-INF/web.xml was not found.
[junit] at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
[junit] at javax.servlet.GenericServlet.init(GenericServlet.java:211)
[junit] at servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:226)
[junit] at servletunit.struts.MockStrutsTestCase.tearDown(MockStrutsTestCase.java:126)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
[junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] ------------- ---------------- ---------------
[junit] Testcase: testSuccessfulLogin(com.privo.hdomain.dao.impl.test.TestLoginAction):FAILED
[junit] The /WEB-INF/web.xml was not found.
[junit] junit.framework.AssertionFailedError: The /WEB-INF/web.xml was not found.
[junit] at servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:244)
[junit] at servletunit.struts.MockStrutsTestCase.tearDown(MockStrutsTestCase.java:126)
[junit] Test com.privo.hdomain.dao.impl.test.TestLoginAction FAILED

when i'm trying to run this i'm getting this in my console,i added all the jars specified by the examples given.

can any body help me.
Thank's in advance
16 years ago
Hi friends,
I am working with cruisecontrol using vss.I am getting problem like this
and if i create the same file which it is expecting then i'm able to access this but again its deleteting the tmp file automatically and its giving same error how can i create this tmp file before it is going to build.
here is my code

<vss vsspath="//build//cruisecontrol-bin-2.5//projects//${project.name}" <br /> login="geeta,Geeta@123" <br /> serverpath="C:\Program Files\Microsoft Visual Studio\VSS"/>

and here is output in console
[cc]Sep-26 19:18:40 Vss - Vss: getting modifications for $//build//cruisecontrol-bin-2.5//projects//
privo4thSep
[cc]Sep-26 19:18:41 Project - Project privo4thSep: idle
[cc]Sep-26 19:18:46 jectController- privo4thSep Controller: build progress event: idle
[cc]Sep-26 19:18:46 Project - Project privo4thSep: next build in 30 seconds
[cc]Sep-26 19:18:46 Project - Project privo4thSep: waiting for next time to build
java.lang.RuntimeException: build__cruisecontrol-bin-2.5__projects__privo4thSep.tmp (The system cannot find th
e file specified)
at net.sourceforge.cruisecontrol.sourcecontrols.Vss.getModifications(Vss.java:205)
at net.sourceforge.cruisecontrol.ModificationSet.getModifications(ModificationSet.java:192)
at net.sourceforge.cruisecontrol.Project.getModifications(Project.java:374)
at net.sourceforge.cruisecontrol.Project.build(Project.java:178)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:138)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
at java.lang.Thread.run(Thread.java:534)
[cc]Sep-26 19:18:47 jectController- privo4thSep Controller: build progress event: waiting for next time to bui

can any body help me.
Thanks in adavnce.
Hi All,
I am working with cruisecontrol.I have to configure cc with vss.Here this is my code
<vss ssdir="C:\Program Files\Microsoft Visual Studio\VSS\netsetup.x86\VSS\win32"<br /> vsspath="D:\build\cruisecontrol-bin-2.5\projects\${project.name}"<br /> login="geeta,Geeta@123"<br /> serverpath="C:\Program Files\Microsoft Visual Studio\VSS" />
and i'm getting out put like this
[cc]Sep-26 17:01:00 HttpServer - Version Jetty/5.1.3
[cc]Sep-26 17:01:01 Main - CruiseControl Version 2.5 Compiled on April 27 2006 2236
[cc]Sep-26 17:01:01 Credential - Checking Resource aliases
[cc]Sep-26 17:01:03 LConfigManager- reading settings from config file [D:\build\cruisecontrol-bin-2.5\config.x
[cc]Sep-26 17:01:03 trolController- projectName = [privo4thSep]
[cc]Sep-26 17:01:03 trolController- No previously serialized project found [D:\build\cruisecontrol-bin-2.5\pri
[cc]Sep-26 17:01:03 LConfigManager- using settings from config file [D:\build\cruisecontrol-bin-2.5\config.xml
[cc]Sep-26 17:01:03 Project - Project privo4thSep starting
[cc]Sep-26 17:01:03 Project - Project privo4thSep: idle
[cc]Sep-26 17:01:05 Project - Project privo4thSep started
[cc]Sep-26 17:01:05 Project - Project privo4thSep: in build queue
[cc]Sep-26 17:01:05 Container - Started org.mortbay.jetty.servlet.WebApplicationHandler@137d090
[cc]Sep-26 17:01:07 Container - Started WebApplicationContext[/,CruiseControl Reporting App]
Created MBeanServer with ID: ba5bdb:1154195a49a:-8000:spws-109:1
[cc]Sep-26 17:01:07 ontrollerAgent- Starting HttpAdaptor with CC-Stylesheets
[cc]Sep-26 17:01:07 ontrollerAgent- starting httpAdaptor
HttpAdaptor version 3.0.1 started on port 8000
[cc]Sep-26 17:01:07 BuildQueue - BuildQueue started
[cc]Sep-26 17:01:07 BuildQueue - now adding to the thread queue: privo4thSep
[cc]Sep-26 17:01:08 Container - Started org.mortbay.jetty.servlet.WebApplicationHandler@1e903d5
[cc]Sep-26 17:01:08 Container - Started WebApplicationContext[/cruisecontrol,CruiseControl Reporting App]
[cc]Sep-26 17:01:08 SocketListener- Started SocketListener on 0.0.0.0:8080
[cc]Sep-26 17:01:08 Container - Started org.mortbay.jetty.Server@3eca90
[cc]Sep-26 17:01:08 Project - Project privo4thSep: bootstrapping
[cc]Sep-26 17:01:09 jectController- privo4thSep Controller: build progress event: bootstrapping
[cc]Sep-26 17:01:09 Project - Project privo4thSep: checking for modifications
[cc]Sep-26 17:01:09 jectController- privo4thSep Controller: build progress event: checking for modifications
[cc]Sep-26 17:01:09 Vss - Vss: getting modifications for $D:\build\cruisecontrol-bin-2.5\projects\pr

It is stopping at mofications tag only.Not going to build.WHat is te problem in my code.
can any body help me.
Thanks in advance.
Hi Gian,
Yaa i solved this problem thank you.I just added cvs.exe in my current diectory.
Its working nice now.

Thank you.
hi,
I changed cruisecontrol version to 2.5.my cvs version is 2.1.11-17.now i'm able to work with local copy.
cc running fine when i'm using set up in local system and if i get my working copy manually.I am not able to connect to cvs form my system through this pserver command
server:ashwaq:ashwaq@192.168.1.95:/cvsroot
In console i am able to connect to cvs by using this same command.
where i'm geting problem i'm not able to know.
Is this with version prb other than this i dont know.
welcome any help.
Thanks in advance.
Hi,
I tried this also i'm getting same problem.I am not able to find out what is problem here in config.xml.

<bootstrappers>
<currentbuildstatusbootstrapper file="cruise/logs/privo_hibernate/buildstatus.txt"/>
<cvsbootstrapper cvsroot=" server:suneeta:suneeta@192.168.1.95:/cvsroot/privo_hibernate" file="privo_hibernate/privo/WEB-INF/build.xml"/>
</bootstrappers>
< !-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="10">
<cvs cvsroot=" server:suneeta:suneeta@192.168.1.95:/cvsroot/privo_hibernate" localworkingcopy="E:\build\cruise\checkout\privo_hibernate"/>
<buildstatus logdir="cruise/logs/privo_hibernate"/>

</modificationset>

Thanks in avdavnce.
hi,
in below code i'm not giving password to connect cvs.i'm using only user name.shall i give any password here in this.If yes where should i add in this.
<bootstrappers>
<currentbuildstatusbootstrapper file="cruise/logs/privo/buildstatus.txt"/>
<cvsbootstrapper cvsroot=" server:ashwaq@192.168.1.95:/cvsroot/privo" file="privo/privo/WEB-INF/build.xml"/>
</bootstrappers>
< !-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="10">
<cvs cvsroot=" server:ashwaq@192.168.1.95:/cvsroot" localworkingcopy="E:/build/cruise/checkout/privo"/>
<buildstatus logdir="cruise/logs/privo"/>
</modificationset>
Thanks in avance.
Hi

here we are using cvs-1.11.2-17.i386.rpm.and i can't change it now.which cruisecontrol version i can use here with this.

thanks in avance.
hi Gian,

Thank for your reponse.I am using cruisecontrol 2.2.1 and jdk1.5 in my system.and i deleted .ser file from home directory.

Thanks in advance.
hi Gian,

Thank for your reponse.I am using cruisecontrol 2.2.1 and jdk1.5 in my system.and i deleted .ser file from home directory.

Thanks in advance.