Publisher property?
hello,
thanks a lot for the help so far. I have created my webHelp and .chm files, but I have come up with two issues
1- what should I do with the "publisher unknown" when opening the chm file. I have put the file on our ftp server so it can be downloaded to a local PC if needed, but after downloading and trying to run the file you get the
if I just click on open I will get the
Navigation to the webpage was canceled
page, but if I unselect the "Always ask before opening this file" everything will go well. I'm thinking it's because of the unknown publisher certificate so can I do anything about it?
2- Is it possible to change the tab image/icon(favicon) on webhelp?
thanks
ehsan
1] You would get this problem even with a publishers certificate. It is unrelated. This is a security measure implemented by Microsoft for CHMs that have been downloaded.
2] See http://forums.adobe.com/message/2098090#2098090 and note the last post from me.
See www.grainge.org for RoboHelp and Authoring tips
Similar Messages
-
Windows failed to publish property printBinNames - error 8007200d
Just like this old post (http://social.technet.microsoft.com/Forums/windowsserver/en-US/c9a445e2-b28f-4e57-bfef-c1a2f89b8cd6/printers-not-being-published-in-active-directory) I'm noticing some issues with printers being published to AD. However
the error code I'm seeing is 8007200d.
Q:\>err 8007200d
# as an HRESULT: Severity: FAILURE (1), Facility: 0x7, Code 0x200d
# for hex 0x200d / decimal 8205 :
ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS winerror.h
# The specified directory service attribute or value already
# exists.
# 1 matches found for "8007200d"
An example of the event which only has fired for this specific printer. It
IS published in AD however and can be found with the Find Network Printer wizard. It's been on this print server for well over a year too.
Log Name: Microsoft-Windows-PrintService/Admin
Source: Microsoft-Windows-PrintService
Date: 9/13/2013 10:47:07 AM
Event ID: 322
Task Category: Publishing a printer in the Active Directory
Level: Error
Keywords: Active Directory,Classic Spooler Event
User: SYSTEM
Computer: PrintServer.MYDOMAIN.COM
Description:
While attempting to publish the printer to the Active Directory directory service, Windows failed to publish property printBinNames at LDAP://its-ad-a1.MYDOMAIN.COM/CN=PrintServer-AA-BB-4SE-COLOR-FXLSR,CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MYDOMAIN,DC=org. Error: 8007200d
Using ldifde I queried AD to find out what it has about this specific printer:
ldifde -s its-ad-a1.ABC.MyDomain.org -r objectclass=printqueue -d "CN=PrintServer-AA-BB-4SE-COLOR-FXLSR,CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MyDomain,DC=org" -f test2.txt
Oddly enough, there is no printBinNames in the output:
dn: CN=PrintServer-AA-BB-4SE-COLOR-FXLSR,CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MyDomain,DC=org
changetype: add
objectClass: top
objectClass: leaf
objectClass: connectionPoint
objectClass: printQueue
cn: PrintServer-AA-BB-4SE-COLOR-FXLSR
description: 172.28.30.26, HP CM1415fnw
distinguishedName:
CN=PrintServer-AA-BB-4SE-COLOR-FXLSR,CN=PrintServer,OU=Level5,OU=Servers,OU=
ManagedObjects,DC=ABC,DC=MyDomain,DC=org
instanceType: 4
whenCreated: 20130911233154.0Z
whenChanged: 20130911233204.0Z
uSNCreated: 629573861
uSNChanged: 629573861
name: PrintServer-AA-BB-4SE-COLOR-FXLSR
objectGUID:: b51qMLuOCUmGgwWkBWarAg==
flags: 0
uNCName: \\PrintServer.ABC.MyDomain.org\AA-BB-4SE-COLOR-FXLSR
versionNumber: 4
location: XXX
serverName: PrintServer.ABC.MyDomain.org
portName: 172.28.30.26
driverName: HP Universal Printing PCL 6 (v5.6.5)
priority: 1
printStartTime: 60
printEndTime: 60
printMaxResolutionSupported: 600
printOrientationsSupported: LANDSCAPE
printOrientationsSupported: PORTRAIT
printCollate: TRUE
printColor: TRUE
printLanguage: PCLXL
printShareName: AA-BB-4SE-COLOR-FXLSR
printSpooling: PrintAfterSpooled
printKeepPrintedJobs: FALSE
driverVersion: 1025
printMaxXExtent: 4318
printMaxYExtent: 9144
printMinXExtent: 762
printMinYExtent: 1270
printStaplingSupported: FALSE
printMemory: 131072
printRate: 12
printRateUnit: PagesPerMinute
printMediaReady: Letter
printNumberUp: 6
printMediaSupported: Oficio 8.5x13
printMediaSupported: Custom
printMediaSupported: 16K 197x273 mm
printMediaSupported: 16K 184x260 mm
printMediaSupported: 16K 195x270 mm
printMediaSupported: 10x15cm
printMediaSupported: 5x8
printMediaSupported: 4x6
printMediaSupported: Double Japan Postcard Rotated
printMediaSupported: A6
printMediaSupported: Japanese Postcard
printMediaSupported: Envelope Monarch
printMediaSupported: Envelope B5
printMediaSupported: Envelope C5
printMediaSupported: Envelope DL
printMediaSupported: Envelope #10
printMediaSupported: B5 (JIS)
printMediaSupported: A5
printMediaSupported: A4
printMediaSupported: Executive
printMediaSupported: Legal
printMediaSupported: Letter
printerName: AA-BB-4SE-COLOR-FXLSR
printPagesPerMinute: 12
url: http://PrintServer.ABC.MyDomain.org/AA-BB-4SE-COLOR-FXLSR
objectCategory:
CN=Print-Queue,CN=Schema,CN=Configuration,DC=rootad,DC=MyDomain,DC=org
shortServerName: PrintServer
printDuplexSupported: FALSE
dSCorePropagationData: 16010101000000.0Z
Why then would Windows through EventID 322? printBinNames doesnt exist to conflict with per the error code thrown.
Even more odd is that I believe this error was preventing another newly crated printer from being published. A new printer was created on the PrintServer. But the printer would now show up in the Find network printer wizard. Right at the
same time I added this new printer, the Event ID 322 for the unrelated printer (AA-BB-4SE-COLOR-FXLSR) was logged. Odd.
I then unpublished and republished the AA-BB-4SE-COLOR-FXLSR printer. Windows logged both success and the same failure! Also interesting is the published name it used is different
9/13/2013 12:47:19 PM - The printer was successfully removed from the Active Directory directory service. Print queue CN=PrintServer-AA-BB-4SE-COLOR-FXLSR was successfully deleted from container LDAP://its-ad-a1.ABC.MyDomain.org/CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MyDomain,DC=org. The printer can no longer be located by searching Active Directory. No user action is required.
9/13/2013 12:47:19 PM - The printer was successfully published to the Active Directory directory service. The print queue CN=PrintServer-AA-BB-4SE-C0064222313 was successfully created in container LDAP://its-ad-a2.ABC.MyDomain.org/CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MyDomain,DC=org. No user action is required.
9/13/2013 12:47:19 PM - While attempting to publish the printer to the Active Directory directory service, Windows failed to publish property printBinNames at LDAP://its-ad-a2.ABC.MyDomain.org/CN=PrintServer-AA-BB-4SE-C0064222313,CN=PrintServer,OU=Level5,OU=Servers,OU=ManagedObjects,DC=ABC,DC=MyDomain,DC=org. Error: 8007200d...I did install a bunch of printing related hotfixes near the end of 1/2014, which is possibly the reason why it hasn't occurred again.
I'm seeing this too. Win2012r2 server is fully updated till 05/2014. For just newly installed printer and first time listing in AD i got:
EventViewer's PrintService->Operational says:
The printer was successfully published to the Active Directory directory service. The print queue CN=HP1320-XXX was successfully created in container LDAP://DC4.XX.XX/CN=xx,OU=XX,OU=XX,DC=XX,DC=XX. No user action is required.
EventViewer's PrintService->Admin says:
While attempting to publish the printer to the Active Directory directory service,
Windows failed to publish property printBinNames at LDAP://DC4.xx.xx/CN=xx,CN=xx,OU=xx,OU=xx,DC=xx,DC=xx. Error: 8007200d -
How to publish a File Content Item via EDK?
I'm trying to publish a "File Content Item" via the EDK.
CS EXPLORER
Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
EDK
However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
thanks,
MichaelHey there,
Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
Sarah -
Need steps to create ant scripts for publishing and deploying projects.
Need steps to create ant scripts for publishing and deploying projects.
Have got ant, Oracle BPM Enterprise WL edition installed , Need to know what are the other configurations to be done.
Any working example would help me to understand, please do mail me at [email protected]
Thanks in advance.
-SreeSreekant,
Please find the build file to publish and deploy.
<project name="deployProject"
xmlns:fuego="antlib:fuego.tools.ant.enterprise"
xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee" default = "publish">
<property file="./Properties/fuego_deploy.properties"/>
<fuego:passport id="fuego.passport"
directoryid="${fuego.directoryid}"
preset="engine" />
<target name="publish" description="Publish and deploy processes" depends = "takeInputs">
<!-- Open a session to the Oracle BPM directory -->
<fuego:session
passportref="fuego.passport"
verbose="true"
properties="${fuego.basedir}/conf/directory.xml"
haltonerror="true" >
<!-- Publish processes -->
<fuego:publish fpr="${fuego.project.name}"
deploy="true"
engine="${fuego.engineName}"
importdata = "${fuego.importdata}"
automaproles="${fuego.automaproles}"
automapbuspars = "${fuego.automapbuspars}"
automapvars="${fuego.automapvars}"
automapconfigs = "${fuego.automapconfigs}">
</fuego:publish>
</fuego:session>
</target>
<target name= "takeInputs" >
<input
message="Please enter admin-username:"
addproperty="fuego.participant"
/>
<input
message="Please enter admin-password:"
addproperty="fuego.password"
>
</input>
</target>
</project>
and find the properties I have used..
fuego.basedir=C:\OraBPMEnterpriseHome
fuego.directoryid=default
fuego.engineName = bpmengine
fuego.project.name = E:/antExamples/Project/CommonUtilities
# If the below property is true then ant script imports data from the project, as defined in Studio.
# This includes importing:
# •Holiday and Calendar rules
# •Organizational Units
# •Roles
# •Resource configurations
# •External Variables
fuego.importdata = true
#If the below property is true ant script automatically map abstract roles to real ones with the same name.
fuego.automaproles=true
#If the below property is true ant script automatically map business parameter variable names (as defined in the project design) to an business parameter variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapbuspars = true
#If the below property is true ant script automatically map external variable names (as defined in the project design) to an external variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapvars=true
#If the below property is true ant script automatically map External Resources configurations (as defined in the project design) to real Configurations with the same name (as defined in the Fuego Enterprise directory).
fuego.automapconfigs = true -
Publishing Content Types from Hub in Bulk
I am able to publish content types from the hub just fine. However, I am in a migration scenario where over 1500 content types are being migrated to SharePoint Online from SP2013. We have successfully migrated these to the content hub, managed metadata stores,
etc. However, when they are migrated, the publish property does not migrate with it.
On-Premises, we could publish all of these with PowerShell so they could be consumed by the syndicated sites. Is there a way to publish all of these so that we don't have to go into each once via the UI?Depends who you give access too. What I'd consider doing is making a copy of what you consider to be the template for the rest of the content types, save that to a unique category within the list of content types and then build the rest off that. Show the
client how to make changes to JUST that template and in theory you'll be fine.
Or, are the content types in use already?
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Decimal after two digit in RTF
HI,
i want to print decimal after two digit i.e., 44 must be changed to 44.00 in .rtf
I am able to print decimal after three and four digit i.e., 524 --> 524.00 , 6456 -->6456.00
I am using 0.00 format from BI PUBLISHER PROPERTY but not able to get decimal after two digit.
I want output like this :
4 -->4.00
44 --> 44.00
444 --> 444.00
4444 --> 4,444.00
Note : Output is in Excel
I hope u got my point.
please suggest me solution for this.
Edited by: 914936 on Apr 12, 2012 4:06 AM
Edited by: 914936 on Apr 12, 2012 5:33 AMYour requirement is to get two decimal digits for all the numbers right?
This should be possible if you goto the field which you want to have two decimal digits .Right click and goto BIP properties. Here in the properties tab you should see the option to format .Select type as number and choose the necessary format. -
Row limit in declarative list view web part
Hi,
Imagine you are in a scenario where you develop a custom web template or a site definition. Page Layouts with web part zones are being provisioned and out of them, decoratively web part pages are being created and populated with web parts. So something like:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="XXXProjectPages" Url="$Resources:osrvcore,List_Pages_UrlName;" Path="" SetupPath="FEATURES\XXX_Intranet_PMO_PageLayouts\">
<!-- Home -->
<File Url="FullPageLayout\XXXFullPageLayout.aspx" Name="Default.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" ReplaceContent="TRUE" Level="Published">
<Property Name="Title" Value="Team & Collaboration" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_page_name;" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/XXXFullPageLayout.aspx, ~SiteCollection/_catalogs/masterpage/XXXFullPageLayout.aspx" />
<!-- Latest News -->
<View List="Lists/Announcements" BaseViewID="102" WebPartZoneID="wpZone1" WebPartOrder="2">
<![CDATA[
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly>Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ListViewWebPart</TypeName>
<Title>Latest News</Title>
<FrameType>TitleBarOnly</FrameType>
</WebPart>
]]>
</View>
For simplicity, let's assume that we are working with instances of OOB list definitions, such as Announcements or Document Library. So far so good. And now the question...
In my understanding if you want to do something as simple as limiting the number of items returned, or specifying a custom view criteria (filter/sorting/grouping, whatever) or just remove the toolbar, you have to go as far as provisioning an ENTIRE LIST
DEFINITION, defining your custom View in it (which declares the toolbar type, row limit and View) and then reference this new View by its BaseViewID. Is that correct?
Is there really no other, simpler way, of 'provisioning' and referencing a new view, to an existing list instance, along with the
Module -> File -> View element? I see a couple of logical options:
1) I would imagine such metadata could be stored in the web part and not the actual list. i.e. the web parts sends a CAML query to the list, based on the View metadata stored in it.
2) As we know, when you Edit page and configure the View for a List View Web Part on the page, that view is stored as a new hidden view in the actual list (i.e. if you have two list view web parts that reference that list, you will have two additional hidden
views). Then why can't we provision such (hidden) view along with the List View WebPart when we declare it and create the page? It could be created on first access of the page, or during the page
provisioning.
Another option could be the XmlDefinition property of the XsltListViewWebPart, but
apparently it is being ignored. I have also tried using the 'CustomSchema' property of the ListInstance, but it totally makes no sense because:
a) You cannot define more than one view in it, i.e. you have to override the OOB view that comes with the definition (lol?!)
b) You are supposed to overwrite the entire list definition, instead of simply upgrading parts of it
So, let me elaborate: if I want to have a <View> (ListViewWebPart) in my Page and this view to have some custom criteria, I have to provision an entire List Definition, is that correct? This is crazy.Hi Hristo,
According to your description, my understanding is that you want to know if you can use <view> tag in the list view web part to define the row limit of list view web part.
Per my knowledge, you can define rowlimit element in the view element for list view web part directly not necessary to modify the entire list definition.
View Element:
http://msdn.microsoft.com/en-us/library/office/ms438338(v=office.15).aspx
Also, if you want to do more customization, you can still orverride the xslt.
More reference:
http://www.glynblogs.com/2011/04/overriding-the-presentation-of-an-xslt-list-view-web-part.html
http://unorig.com/2012/08/15/format-a-list-web-part-with-xslt/
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
Need help with Hibernate project
Can anyone help me with the errors I'm getting with my code? Here is what I have.
package com.training.hibernate.client; import com.training.hibernate.dao.BookDAO; import com.training.hibernate.dao.PublisherDAO; import com.training.hibernate.domain.Book; import com.training.hibernate.domain.Publisher; public class BookPublisherClient { public static void main(String[] args) { // Create publishers Publisher publisher1 = new Publisher(); publisher1.setId(1); publisher1.setPublisher("Best Publishers"); PublisherDAO.createPublisher(publisher1); Publisher publisher2 = new Publisher(); publisher2.setId(2); publisher2.setPublisher("Smith and Sons Publishing"); PublisherDAO.createPublisher(publisher2); Publisher publisher3 = new Publisher(); publisher3.setId(3); publisher3.setPublisher("Really Good Publishers"); PublisherDAO.createPublisher(publisher3); // Create books Book book1 = new Book(); book1.setId(1); book1.setPublisher("Best Publishers"); book1.setTitle("Learning J2EE"); book1.setAuthor("John Smith"); BookDAO.createBook(book1); Book book2 = new Book(); book2.setId(2); book2.setPublisher("Best Publishers"); book2.setTitle("J2EE Made Easy"); book2.setAuthor("Tom Johnson"); BookDAO.createBook(book2); Book book3 = new Book(); book3.setId(3); book3.setPublisher("Smith and Sons Publishing"); book3.setTitle("J2EE Tutorial"); book3.setAuthor("Jim Van Buren"); BookDAO.createBook(book3); Book book4 = new Book(); book4.setId(4); book4.setPublisher("Smith and Sons Publishing"); book4.setTitle("Java for C++ Programmers"); book4.setAuthor("James McKinley"); BookDAO.createBook(book4); Book book5 = new Book(); book5.setId(5); book5.setPublisher("Smith and Sons Publishing"); book5.setTitle("J2EE"); book5.setAuthor("Tom Adams"); BookDAO.createBook(book5); Book book6 = new Book(); book6.setId(6); book6.setPublisher("Really Good Publishers"); book6.setTitle("So You Wanna Be A Java Programmer!"); book6.setAuthor("William Wilson"); BookDAO.createBook(book6); Book book7 = new Book(); book7.setId(7); book7.setPublisher("Really Good Publishers"); book7.setTitle("Learning J2EE"); book7.setAuthor("John Smith"); BookDAO.createBook(book7); // Test PublisherDAO's ability to list a publisher's books PublisherDAO.listBooksByPublisher("Smith and Sons Publishing"); // Test Book DAO's ability to list a book's publisher BookDAO.getPublisherById(6); } }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Publisher" table="publisher"> <id name="id"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="bookSet" column="bookSet"></property> <many-to-one name="book" column="bookId" update="false" /> <set name="books" table="book" inverse="true" lazy="true" order-by="bookId"> <key column="publisher" /> <one-to-many class="Book" /> </set> </class> </hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Book" table="book"> <id name="bookId"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="message" type="string" column="title"></property> <property name="message" type="string" column="author"></property> </class> </hibernate-mapping>
Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556) at org.hibernate.cfg.Configuration.configure(Configuration.java:1476) at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20) at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15) Caused by: org.hibernate.PropertyNotFoundException: field [bookSet] not found on com.training.hibernate.domain.Publisher at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145) at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137) at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160) at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241) at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:302) at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166) at org.hibernate.cfg.Configuration.add(Configuration.java:716) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551) at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) ... 8 moreI've made some changes to my Publisher.java, which I'd forgotten to post here anyway, but which I do now. Below is the new exception list I'm getting. Can anyone help me?
package com.training.hibernate.domain;
import java.util.Set;
public class Publisher {
private int id;
private String publisher;
private Set<Book> bookSet;
public int getId() {
return id;
public void setId(int id) {
this.id = id;
public String getPublisher() {
return publisher;
public void setPublisher(String publisher) {
this.publisher = publisher;
public Set<Book> getBooks() {
return bookSet;
public void setBooks(Set<Book> bookSet) {
this.bookSet = bookSet;
Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:616)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20)
at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15)
Caused by: org.hibernate.PropertyNotFoundException: field [book] not found on com.training.hibernate.domain.Publisher
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145)
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137)
at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160)
at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241)
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229)
at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:81)
at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
at org.hibernate.cfg.Configuration.add(Configuration.java:716)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:613)
... 8 more -
Content Server News Portlet major design flaw ?!
I ran into a Content Server 6.1 issue which is really frustrating me. I am wondering if I am doing something wrong or if it is a design flaw: 1. I created a content server news portlet "out of the box" and added it to my MyPage.2. I created and published 2 news articles.3. I edited the 1st article and just saved it. I did NOT PUBLISH it.4. I edited the 2nd article and PUBLISHED it. The news index is re-published automatically to reflect the changes of the 2nd article which has been published. But the index now displays the changes of BOTH articles, even the unpublished! Furthermore the 1st article can't be opened from the index anymore if the name property has been changed. As the published file name changes with each version and especially when the name is updated, the news index links to the new published file name - but it has never been created as I didn't publish the 1st article! I understand why this is happening: The index content item holds a list of all article content items and is published whenever an article is published / deleted / expired. But until now I thought that content server is holding the last published version and includes this into the list until a new version is published. That's not the case! Imagine this on a production environment with workflow activated: one article was approved and published while the other still needs to be reviewed, but it's (unreviewed) index data like headline etc. is already displayed in the index?! And in worst case the article can't even be opened. You just get the server error "page not found". Many of my content items for a current big project follow the idea of the news template, e.g. HR Staff Overview (persons = articles, overview = index), so I am kind of stressed by what I found out. Has anybody made similar a experience and found a workaround for this? Perhaps one of the support people could explain how the news portlet is intended to be used with this severe behaviour? Am I expecting too much? Is updating an already published article not possible? But why are version mechanisms included for content items then? I appreciate your comments. Thanks.
Thanks for the quick reply.
We are using Content Server 6.1 with all Hotfixes installed and we are not planning to upgrade to G6 at the moment.
As far as I understood the 'filtered.published' property contains the date the content item was published the last time. So it will always be 'true' if the item has been published in the past, no matter if it's currently published or not.
The index template with the code snippet you sent will display the currently not published (but changed) item properties whenever another item was published. Have you changed the design in 6.2 so that properties of an item in a list property of another item are just copied and not linked?
As a workaround I now compare the 'modified' property with the 'published' property and if it is greater or equal I don't display it in the index. But that's not the way Content Server was designed to behave, is it? With this solution I can suppress the item in the list if it has been modified after the last publishing, but of course I rather want to have the data of the last published version.
Isn't that possible? Is it possible in 6.2? Is there any way to update Content Server to 6.2 without acquiring G6?
RegardsStefan -
Hi Guys,
Our clients is using Citrix to access published application and print server (clustered), both servers
are running WIndows EE 2008 R2 All printers are published through GPO.
Users are complaining that sometimes they are unable to print usually on HP and Ricoh printers. Printer status shows "Error-printing". We have to restart
print spooler or restart the printer itself. Error occurs when they access Citrix and print from the published application.
Also, i check the prinservice logs i found this error.
Log Name: Microsoft-Windows-PrintService/Admin
Source: Microsoft-Windows-PrintService
Date: 22/04/2014 05:48:36 PM
Event ID: 322
Task Category: Publishing a printer in the Active Directory
Level: Error
Keywords: Active Directory,Classic Spooler Event
User:
Computer:
Description:
While attempting to publish the printer to the Active Directory directory service, Windows failed to publish property printMediaReady at LDAP://abc01.summit.local/CN=abc01V-Ricoh,CN=abc01V,CN=Computers,DC=summit,DC=local. Error: 8007200d
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-PrintService" Guid="{747EF6FD-E535-4D16-B510-42C90F6873A1}" />
<EventID>322</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>33</Task>
<Opcode>12</Opcode>
<Keywords>0x8000000000001800</Keywords>
<TimeCreated SystemTime="2014-04-22T09:48:36.938702800Z" />
<EventRecordID>675</EventRecordID>
<Correlation />
<Execution ProcessID="11816" ThreadID="8740" />
<Channel>Microsoft-Windows-PrintService/Admin</Channel>
<Computer>abc01.summit.local</Computer>
<Security UserID="S-1-5-21-1003221922-1059936719-3215705363-2109" />
</System>
<UserData>
<CantPublishProperty xmlns:auto-ns3="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://manifests.microsoft.com/win/2005/08/windows/printing/spooler/core/events">
<Param1>printMediaReady</Param1>
<Param2>LDAP://abc01.summit.local/CN=abc01V-Ricoh,CN=abc01V,CN=Computers,DC=summit,DC=local</Param2>
<Param3>8007200d</Param3>
</CantPublishProperty>
</UserData>
</Event>
Anybody knows how to fix this issue? Thanks.First of, did you pre-installed all printer driver on your xenapp farm ?
Second, as it affect only certain model it's for me a good sign that it's a driver problem, as with isolation it would affect only print queue with that driver. Please check to update the driver if you can.
Check on hp website, they list what driver to use for their printer on a citrix server (http://www8.hp.com/h20195/v2/GetDocument.aspx?docname=4AA0-8465ENW)
Regards, Philippe
Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
Answer an interesting question ? Create a
wiki article about it! -
Folder Approval Status Pending
HI,
I am adding a custom site page using a module in Visual Studio project.
Below is my sample Module Scrip
<Module Name="SampleFolder" Path="SampleFolder" Url="$Resources:osrvcore,List_Pages_UrlName;/SampleFolder" >
<File Path="SamplePage1.aspx" Url="SamplePage1.aspx" IgnoreIfAlreadyExists="TRUE" ReplaceContent="TRUE" Type="GhostableInLibrary" Level="Published" >
<Property Name="Title" Value="Sample Page1" />
After deploying I am able to see a new folder SampleFolder in Pages library and able to see a file named SamplePage1 in that new folder.
The file Approval status is "Approved" but the Folder approval status is still "Pending".
Kindly help me with inputs on how can I make this Folder Approval status as "Approved".
Thanks,
kesari sureshHi kesari,
Glad to hear that you have sovled the issue, and thanks for your sharing!
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Eric Tao
TechNet Community Support -
Download to KOBOereader failed - Event error #2038
We own 2 KOBOereaders and recently purchased the Holy Bible from Borders. It downloaded into 1st KOBO but when we used the Adobe Reader function to drag and download this purchased book into the 2nd KOBO it failed - Message was "H:\DigitalEditions\Holy_Bible_New_International_V.epub Event detail Error #2038. Called Borders and they determined that this was a problem that needed to be addressed by Adobe. Found that we are not able to get phone assistance - please advise as to how to get this download to work. Thank you
Publications purchased from Borders (and others) would be expected to have Digital Rights Management (DRM) applied.
Borders (Kobo Reader) uses Adobe's Content Server for this.
So, what is needed is Adobe's Digital Editions which acts as a 'gateway' to assure the author/publisher property rights are maintained.
Aside for looking over what may be at any Kobo forums out there you might find useful information at the Digital Editions user-to-user forum over at:
http://forums.adobe.com/community/adobe_digital_editions
Of particular use are posts by Jim Lester (an Adobe employee).
Be well... -
Hibernate query...how to connect two databases...
hi i m new to hibernate..
i created two tables..
1st table is catalog:
2nd table is acctinfo
//HBM file is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="hibernate.example.Catalog" table="catalog">
<id name="id" type="integer" column="ID">
<generator class="increment"/>
</id>
<property name="journal" type="string" column="JOURNAL"/>
<property name="publisher" type="string" column="PUBLISHER"/>
<property name="edition" type="string" column="EDITION"/>
<property name="title" type="string" column="TITLE"/>
<property name="author" type="string" column="AUTHOR"/>
<bag name="accinfo" cascade="all" >
<key column="ID"/>
<one-to-many class="hibernate.example.Acctinfo"/>
</bag>
</class>
<class name="hibernate.example.Acctinfo" table="acctinfo">
<id name="id" type="integer" column="ID">
<generator class="increment"/>
</id>
<property name="account" type="string" column="ACCOUNT"/>
<property name="password" type="string" column="PASSWORD"/>
<property name="balance" type="string" column="BALANCE"/>
</class>
</hibernate-mapping>
///******************getter setter file is::****************
package hibernate.example;
public class Acctinfo
int id;
String account;
String password;
String balance;
public Acctinfo()
public void setId(int id)
this.id = id;
public int getId()
return id;
public void setAccount(String account)
this.account = account;
public void setPassword(String password)
this.password = password;
public void setBalance(String balance)
this.balance = balance;
public String getAccount()
return account;
public String getBalance()
return balance;
public String getPassword()
return password;
//********************2nd getter setter file is:***********************
package hibernate.example;
import java.util.List;
public class Catalog
int id;
String journal;
String publisher;
String edition;
String title;
String author;
private List accinfo;
public Catalog()
public void setId(int id)
this.id = id;
public int getId()
return id;
public void setJournal(String journal)
this.journal = journal;
public String getJournal()
return journal;
public void setPublisher(String publisher)
this.publisher = publisher;
public String getPublisher()
return publisher;
public void setEdition(String edition)
this.edition = edition;
public String getEdition()
return edition;
public void setTitle(String title)
this.title = title;
public String getTitle()
return title;
public void setAuthor(String author)
this.author = author;
public String getAuthor()
return author;
public void setAccinfo(List accinfo)
this.accinfo = accinfo;
public List getAccinfo()
return accinfo;
* To change this template, choose Tools | Templates
* and open the template in the editor.
package hibernate.example;
import hibernate.example.Acctinfo;
import hibernate.example.Catalog;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
public class CatalogClient
Session session = null;
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
public static void main(String str[])
CatalogClient clc = new CatalogClient();
//clc.saveData();
//clc.deleteData();
//clc.showData();
clc.updateData();
public void showData()
try
session =sessionFactory.openSession();
String SQL_QUERY ="select id, journal, publisher, edition, title, author from catalog";
// String SQL_QUERY ="select c.ID, c.JOURNAL, c.PUBLISHER, c.EDITION, c.TITLE, c.AUTHOR, a.ACCOUNT, a.PASSWORD,a.BALANCE from catalog c, ACCTINFO a where c.ID = a.ID";
SQLQuery query = session.createSQLQuery(SQL_QUERY);
System.out.println("*** query : *** "+ query);
//for(ListIterator it=query.list().listIterator();it.hasNext();)
for (ListIterator lit = query.list().listIterator(); lit.hasNext();)
Object[] row = (Object[]) lit.next();
/*System.out.println("ID: " + row[0]);
System.out.println("Title: " + row[1]);
System.out.println("Author: " + row[2]);
System.out.println("Isbn: " + row[3]);
System.out.println("Pages: " + row[4]);
System.out.println("Copyright: " + row[5]);
System.out.println("Cost: " + row[6]);
System.out.println("******NEXT****************");
Object[] row = (Object[]) it.next();*/
System.out.println("ID: " + row[0]);
System.out.println("JOURNAL: " + row[1]);
System.out.println("PUBLISHER: " + row[2]);
System.out.println("EDITION: " + row[3]);
System.out.println("TITLE: " + row[4]);
System.out.println("AUTHOR: " + row[5]);
System.out.println("acc: " + row[6]);
System.out.println("pass: " + row[7]);
System.out.println("bal: " + row[8]);
System.out.println("***************************");
session.close();
catch(Exception e)
System.out.println(e.getMessage());
public void saveData()
session =sessionFactory.openSession();
Transaction transaction = null;
transaction = session.beginTransaction();
Catalog catalog = setBean();
//System.out.println("before save");
session.save(catalog);
//System.out.println("after save");
transaction.commit();
session.flush();
session.close();
public void updateData()
session =sessionFactory.openSession();
Catalog catalog = new Catalog();
catalog.setId(2);
catalog.setAuthor("manoj");
catalog.setJournal("java");
catalog.setEdition("1st");
catalog.setPublisher("indiabulls");
catalog.setTitle("java Servlet");
session.update(catalog);
session.flush();
session.close();
public void deleteData()
session =sessionFactory.openSession();
Catalog catalog = new Catalog();
catalog.setId(3);
session.delete(catalog);
session.flush();
session.close();
public static Catalog setBean()
Acctinfo accinfo = new Acctinfo();
accinfo.setAccount("MANOJ1");
accinfo.setPassword("orbis");
accinfo.setBalance("1000");
List list = new ArrayList();
list.add(accinfo);
Catalog catalog = new Catalog();
catalog.setJournal("india");
catalog.setPublisher("indiabulls");
catalog.setEdition("ist");
catalog.setTitle("orbis");
catalog.setAuthor("manoj");
catalog.setAccinfo(list);
return catalog;
//********************CFG FILE IS ******************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="session">
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@172.16.31.25:1521:BOMBAY</property>
<property name="hibernate.connection.username">mumbai</property>
<property name="hibernate.connection.password">mumbai123</property>
<!-- Set AutoCommit to true -->
<property name="connection.autocommit">true</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<!-- Mapping files -->
<mapping resource="Catalog.hbm.xml"/>
</session-factory>
</hibernate-configuration>
**********************error i m facing is :************************
0 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Documents%20and%20Settings/d.poonam/Desktop/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
1188 [main] WARN org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getNameParser(Unknown Source)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:247)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
at hibernate.example.CatalogClient.<init>(CatalogClient.java:24)
at hibernate.example.CatalogClient.main(CatalogClient.java:27)
please help me out....
thanks in advance..
if u know how to connect two tables plz let me know..
its urgent....I made this work with MySQL. Adapt to your situation as needed. - %
package hibernate.model;
import hibernate.util.HibernateUtils;
import hibernate.model.Catalog;
import hibernate.model.Account;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Session;
import hibernate.util.HibernateUtils;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;
public class CatalogTest
private static final Log LOGGER = LogFactory.getLog(CatalogTest.class);
public static void main(String[] args)
Session session = null;
try
session = HibernateUtils.getSessionFactory().getCurrentSession();
session.beginTransaction();
int rowsBefore = HibernateUtils.getRowCount(session, Catalog.class);
assertEquals("should not have any Catalogs", rowsBefore, 0);
Catalog catalog = new Catalog("test title");
catalog.addAccount(new Account(100));
catalog.addAccount(new Account(200));
Long id = (Long) session.save(catalog);
assertNotNull("generated id should not be null", id);
LOGGER.info("returned id: " + id);
session.getTransaction().commit();
LOGGER.debug("transaction committed");
catch (Exception e)
LOGGER.error(e);
session.getTransaction().rollback();
package hibernate.model;
import java.io.Serializable;
import java.text.NumberFormat;
public class Account implements Serializable
private Long id;
private int balance;
public Account()
this(null, 0);
public Account(int balance)
this(null, balance);
public Account(Long id, int balance)
this.id = id;
this.balance = balance;
public Long getId()
return id;
private void setId(Long id)
this.id = id;
public int getBalance()
return balance;
private void setBalance(int balance)
this.balance = balance;
public boolean equals(Object o)
if (this == o)
return true;
if (!(o instanceof Account))
return false;
Account account = (Account) o;
return !(id != null ? !id.equals(account.id) : account.id != null);
public int hashCode()
int result;
result = (id != null ? id.hashCode() : 0);
result = 31 * result + balance;
return result;
public String toString()
return new StringBuilder().append("Account{").append("id=").append(id).append(", balance=").append(NumberFormat.getCurrencyInstance().format(balance)).append('}').toString();
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
<class name="Account" table="accounts">
<id name="id" column="account_id">
<generator class="native"/>
</id>
<property name="balance" column="balance"/>
</class>
</hibernate-mapping>
package hibernate.model;
import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;
import java.util.Collections;
public class Catalog implements Serializable
private Long id;
private String title;
private Set<Account> accounts;
public Catalog()
this(null, "", Collections.EMPTY_SET);
public Catalog(String title)
this(null, title, Collections.EMPTY_SET);
public Catalog(Long id, String title, Set<Account> accounts)
this.id = id;
this.title = title;
this.accounts = new HashSet<Account>(accounts);
public Long getId()
return id;
private void setId(Long id)
this.id = id;
public String getTitle()
return title;
private void setTitle(String title)
this.title = title;
public Set<Account> getAccounts()
return accounts;
private void setAccounts(Set<Account> accounts)
this.accounts = accounts;
public void addAccount(Account account)
this.getAccounts().add(account);
public void removeAccount(Account account)
this.getAccounts().remove(account);
public boolean equals(Object o)
if (this == o)
return true;
if (!(o instanceof Catalog))
return false;
Catalog catalog = (Catalog) o;
return !(id != null ? !id.equals(catalog.id) : catalog.id != null);
public int hashCode()
return (id != null ? id.hashCode() : 0);
public String toString()
return new StringBuilder().append("Catalog{").append("id=").append(id).append(", title='").append(title).append('\'').append(", accounts=").append(accounts).append('}').toString();
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
<class name="Catalog" table="catalogs">
<id name="id" column="catalog_id">
<generator class="native"/>
</id>
<property name="title" column="title"/>
<set name="accounts" cascade="all">
<key column="catalog_id"/>
<one-to-many class="hibernate.model.Account"/>
</set>
</class>
</hibernate-mapping>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/hibernate?autoReconnect=true</property>
<property name="connection.username">hibernate</property>
<property name="connection.password">hibernate</property>
<property name="connection.pool_size">1</property>
<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="show_sql">true</property>
<property name="generate_statistics">true</property>
<property name="query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="cache.use_minimal_puts">false</property>
<property name="cache.use_query_cache">false</property>
<property name="order_updates">false</property>
<property name="hbm2ddl.auto">create-drop</property>
<property name="current_session_context_class">thread</property>
<mapping resource="hibernate/persistence/hibernate/Account.hbm.xml"/>
<mapping resource="hibernate/persistence/hibernate/Catalog.hbm.xml"/>
</session-factory>
</hibernate-configuration> -
Shortcuts not applied when using installer-dec extension jnlp
Hi,
I have written an installer for my application, it does some copying tasks and ask the user for some init issues.
I have successfully created the two jnlp's required to launch the installer and then the application. Now, I changed the success behaviour of the installer so it asks for a restart.
Problem is, Shortcuts for running the application are placed on desktop/startup folders only when application is first run. when the computer is restarted there are no shortcuts. So the user most find the web location again in order to run the program, this is not the behavior i was looking for.
My main jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.6+" codebase="http://XXX.XXX.com/jws" href="testSP.jnlp">
<information>
<title>Title</title>
<vendor>Vendor</vendor>
<description>ServicePoint</description>
<icon kind="shortcut" href="xxx.ico"/>
<icon kind="splash" href="xxx.splash.jpg"/>
<offline-allowed/>
<update check="always"/>
<shortcut online="true">
<menu submenu="StartUp"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<property name="publish-url" value="$$context/publish"/>
<property name="xxx.logdir" value="logs"/>
<j2se version="1.6+"/>
<extension name="setup" href="installer/installer.jnlp"/>
<jar href="sp/TestSP.jar"/> <!--version="1.0"/>-->
</resources>
<application-desc main-class="xxx.sp.Loader"/>
<!--
<argument>"/m"</argument> /m - Manual start sp
<argument>"/w"</argument> /w - Show window at startup
-->
</application-desc>
</jnlp>My Installer jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" codebase="http://xxx.xxx.com/jws/installer" href="installer.jnlp">
<information>
<title>Setup</title>
<vendor>Vendor</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+"/>
<jar href="SPInstaller.jar" download="eager"/>
</resources>
<installer-desc main-class="xxx.sp.Installer"/>
</jnlp>This is the request for restart:
installerService.installSucceeded(true);Any help will be greatly appreciated,
regards,
RaananWell, No guessing. fixed the syntax, apparently extensions needs to appear after all the jars.
New Main JNLP:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.6+" codebase="http://xxx.xxx.com:8081/jws" href="xxx.jnlp">
<information>
<title>title</title>
<vendor>vendor</vendor>
<description>ServicePoint</description>
<icon kind="shortcut" href="xxx.ico"/>
<icon kind="splash" href="xxx.splash.jpg"/>
<offline-allowed/>
<shortcut online="true">
<menu submenu="StartUp"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="timeout" policy="always"/>
<resources>
<j2se version="1.6+"/>
<jar href="sp/testSP.jar" main='true'/>
<jar href="sp/messages.jar"/>
<jar href="sp/SP.properties.jar"/>
<jar href="sp/TrackerRuntime.jar"/>
<extension href="installer/installer.jnlp"/>
<property name="publish-url" value="$$context/publish"/>
<property name="logdir" value="logs"/>
</resources>
<application-desc main-class="xxx.sp.Loader">
<!--
<argument>"/m"</argument> /m - Manual start sp
<argument>"/w"</argument> /w - Show window at startup
-->
</application-desc>
</jnlp>Still the same problem. -
Check Printing Not displaying Courier Font
I am working on check printing report and when i am previewing the output i am not able to see the Courier Font in my output, I am able to see MICR font as i have modified xdo.cfg file, But i am not able to see Courier Font (Normal and Bold). When i checked the Windows\Fonts directory i could see Coure.fon, which i have copied to XML publisher directory Fonts folder.
I am using XML publisher 5.0.0, any help would be appreciated.
Thanks!Thanks all for your help, I am able to preview the Courier font now. I am including my solution, If someone faces similar issue.
To add an XML Publisher property to a template use the Properties dialog (File -> Properties --> Custom Tab):
Name :xdo-font.COURE.normal.normal
Type :Text
Value :Type1.C:\WINDOWS\Fonts\COURE.FON
Edited by: user8909874 on Jan 6, 2010 9:04 PM
Maybe you are looking for
-
Battery health decreased rapidly after charging problems.
Hy a few weeks ago the health of my mid 2010 MacBook Pro was still 79% which is normal since it has more than 1000 cycles. Then following incident happened: My battery was almost discharged, 30% or so, so I connected it to the AC power. After a while
-
How can I transfer Firefox bookmarks from one Mactintosh to another?
Had to reload foxfire onto Mactintosh and need to import the bookmarks on FireFox on my other MActintosh.
-
Boot Camp for Windows 7 64 bit on 21.5" late 2009 iMac
I've read much about installing Windows 7 64 bit on my 21.5" late 2009 iMacs - - nevertheless there is some lack of clarity about how to do it right. First I read "http://manuals.info.apple.com/enUS/Boot_Camp_Install-Setup10.6.pdf". That's all well a
-
Adding A Quit Button to the Last Slide
Hi all, One of the most requested features on our first Breeze project was a "quit" button. The easiest way to do so in an HTML environment is to use the command javascript: window.close(); Type this into the address bar on your browser, and hit retu
-
Has anyone tried integrating XI with Oracle AQ? Is it necessary to buy the iWay adapter for AQ? It appears that Oracle have implemented the JMS spec in their usual unorthodox way which suggests I need an adapter. I have a scenario in which I am integ