View Single Post
  #14 (permalink)  
Old 02-14-2007, 08:08 AM
JoshuaPrismon JoshuaPrismon is offline
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by agunturu View Post
I found the issue with https relating to the Tomcat native dll. After reinstalling tomcat without the native dll the problem seem to disappear.

Now I run into the same problem that you are facing with samplecontacts.xml. (I think, I didn't have the issue before reinstalling, but I am may be wrong).

I wonder what is the solution to the samplecontacts.xml issue.

Cheers,

-Anil
Edit the build.xml and edit the inject task so that it doesn't fail on error:
See the failonerror="false" below:
Code:
	<target name="inject" depends="compile">
		<echo>Inserting default contacts: user1@${zimbra.server.hostname}</echo>
		<java classname="com.zimbra.soap.SoapTestHarness" fork="true" classpathref="class.path" failonerror="false">
			<arg line="-f data/soap/samplecontacts.xml" />
		</java>
		<echo>Creating default search folders: user1@${zimbra.server.hostname}</echo>
		<java classname="com.zimbra.soap.SoapTestHarness" fork="true" classpathref="class.path" failonerror="false">
			<arg line="-f data/soap/samplesearchfolders.xml" />
		</java>
		<echo message="Wait for lmtp host=${lmtp.host} port=${lmtp.port}" />
		<waitfor checkevery="1" checkeveryunit="second" maxwait="60" maxwaitunit="second">
			<socket server="${lmtp.host}" port="${lmtp.port}" />
		</waitfor>
		<echo>LmtpInject messages</echo>
		<java classname="com.zimbra.cs.lmtpserver.utils.LmtpInject" fork="true" classpathref="class.path" failonerror="false">
			<arg line="-t ${lmtpinject.numthreads} -a ${lmtp.host} -p ${lmtp.port} -r user1@${zimbra.server.hostname} -s ho@example.zimbra.com -d" />
			<arg path="data/TestMailRaw" />
		</java>
		<echo>Importing Wiki documents for user1</echo>
		<java classname="com.zimbra.cs.account.ProvUtil" fork="true" classpathref="class.path" failonerror="true">
			<arg line="-l impn user1@${zimbra.server.hostname} test123 data/wiki/user1 /" />
		</java>
	</target>

	<target name="inject-npscontacts" depends="compile">
		<echo>Inserting NPS contacts: user4@${zimbra.server.hostname}</echo>
		<java classname="com.zimbra.soap.SoapTestHarness" fork="true" classpathref="class.path" failonerror="true">
			<arg line="-f data/soap/nps-contacts-orig.xml" />
		</java>
	</target>
This works like a champ. I haven't yet hooked it up to a debugger (I particularly care about getting the servlet's under a debugger - proxy servlet in particular so I can monitor connections to/from zimlets)
Reply With Quote