Setting DTD to be local

Hi all,
Is there a way to specify weblogic to pick DTDs for WebApp and EJBs locally
(Globally setting it ..rather than having to change the DTD URL in the
web.xml.,ejb-jar.xml)
--Naggi Rao

Hi all,
Is there a way to specify weblogic to pick DTDs for WebApp and EJBs locally
(Globally setting it ..rather than having to change the DTD URL in the
web.xml.,ejb-jar.xml)
--Naggi Rao

Similar Messages

  • How to parse XML against XSD,DTD, etc.. locally (no internet connection) ?

    i've searched on how to parse xml against xsd,dtd,etc.. without the needs of internet connection..
    but unfortunately, only the xsd file can be set locally and still there needs the internet connection for the other features, properties.
    XML: GML file input from gui
    XSD: input from gui
    javax.xml
    package demo;
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.XMLConstants;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.SAXException;
    public class Sample1WithJavaxXML {
         public static void main(String[] args) {
              URL schemaFile = null;
              try {
                   //schemaFile = new URL("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd");
                   File file0 = new File("AppSchema-C01-v1_0.xsd");
                   schemaFile = new URL(file0.toURI().toString());
              } catch (MalformedURLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              //Source xmlFile = new StreamSource(new File("web.xml"));
              Source xmlFile = new StreamSource(new File("C01.xml"));
              SchemaFactory schemaFactory = SchemaFactory
                  .newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              //File file1 = new File("XMLSchema.dtd");
              //SchemaFactory schemaFactory = SchemaFactory
                   //.newInstance("javax.xml.validation.SchemaFactory:XMLSchema.dtd");
              Schema schema = null;
              try {
                   schema = schemaFactory.newSchema(schemaFile);
              } catch (SAXException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              Validator validator = schema.newValidator();
              try {
                validator.validate(xmlFile);
                System.out.println(xmlFile.getSystemId() + " is valid");
              } catch (SAXException e) {
                System.out.println(xmlFile.getSystemId() + " is NOT valid");
                System.out.println("Reason: " + e.getLocalizedMessage());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Xerces
    package demo;
    import java.io.File;
    import java.util.Date;
    import org.apache.xerces.parsers.DOMParser;
    public class SchemaTest {
         private String xmlFile = "";
         private String xsdFile = "";
         public SchemaTest(String xmlFile, String xsdFile) {
              this.xmlFile = xmlFile;
              this.xsdFile = xsdFile;
         public static void main (String args[]) {
              File file0 = new File("AppSchema-C01-v1_0.xsd");
              String xsd = file0.toURI().toString();
              SchemaTest testXml = new SchemaTest("C01.xml",xsd);
              testXml.process();
         public void process() {
              File docFile = new File(xmlFile);
              DOMParser parser = new DOMParser();
              try {
                   parser.setFeature("http://xml.org/sax/features/validation", true);
                   parser.setFeature("http://apache.org/xml/features/validation/schema", true);
                   parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
                             xsdFile);
                   ErrorChecker errors = new ErrorChecker();
                   parser.setErrorHandler(errors);
                   System.out.println(new Date().toString() + " START");
                   parser.parse(docFile.toString());
              } catch (Exception e) {
                   System.out.print("Problem parsing the file.");
                   System.out.println("Error: " + e);
                   System.out.println(new Date().toString() + " ERROR");
                   return;
              System.out.println(new Date().toString() + " END");
    }

    Thanks a lot Sir DrClap..
    I tried to use and implement the org.w3c.dom.ls.LSResourceResolver Interface which is based on the SAX2 EntityResolver.
    please give comments the way I implement it. Here's the code:
    LSResourceResolver Implementation
    import org.w3c.dom.ls.LSInput;
    import org.w3c.dom.ls.LSResourceResolver;
    import abc.xml.XsdConstant.Path.DTD;
    import abc.xml.XsdConstant.Path.XSD;
    public class LSResourceResolverImpl implements LSResourceResolver {
         public LSResourceResolverImpl() {
          * {@inheritDoc}
         @Override
         public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
              ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              LSInput input = new LSInputImpl(publicId, systemId, baseURI);
              if ("http://www.w3.org/2001/xml.xsd".equals(systemId)) {
                   input.setByteStream(classLoader.getResourceAsStream(XSD.XML));
              } else if (XsdConstant.PUBLIC_ID_XMLSCHEMA.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.XML_SCHEMA));
              } else if (XsdConstant.PUBLIC_ID_DATATYPES.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.DATATYPES));
              return input;
    }I also implement org.w3c.dom.ls.LSInput
    import java.io.InputStream;
    import java.io.Reader;
    import org.w3c.dom.ls.LSInput;
    public class LSInputImpl implements LSInput {
         private String publicId;
         private String systemId;
         private String baseURI;
         private InputStream byteStream;
         private String stringData;
         public LSInputImpl(String publicId, String systemId, String baseURI) {
              super();
              this.publicId = publicId;
              this.systemId = systemId;
              this.baseURI = baseURI;
         //getters & setters
    }Then, here's the usage/application:
    I create XMLChecker class (SchemaFactory implementation is Xerces)
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.XMLConstants;
    import javax.xml.stream.FactoryConfigurationError;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import abc.xml.XsdConstant.Path.XSD;
    public class XMLChecker {
         private ErrorMessage errorMessage = new ErrorMessage();
         public boolean validate(String filePath){
              final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              List<Source> schemas = new ArrayList<Source>();
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XML_SCHEMA)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XLINKS)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream("abc/xml/AppSchema.xsd")));
              SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              schemaFactory.setResourceResolver(new LSResourceResolverImpl());
              try {
                   Schema schema = schemaFactory.newSchema(schemas.toArray(new Source[schemas.size()]));
                   Validator validator = schema.newValidator();
                   validator.setErrorHandler(new ErrorHandler() {
                        @Override
                        public void error(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void fatalError(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void warning(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                   StreamSource source = new StreamSource(new File(filePath));
                   validator.validate(source);
              } catch (SAXParseException e) {
                   return false;
              } catch (SAXException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (FactoryConfigurationError e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (IOException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              return true;
         public ErrorMessage getErrorMessage() {
              return errorMessage;
    }Edited by: erossy on Aug 31, 2010 1:56 AM

  • How do you configure Dreamweaver to accept PHP in live view when set up with a local testing server (ie., localhost:8888) via MAMP (not MAMP Pro)? My site shows up in the browser, but not in DM live view. Thanks.

    I am using a Macbook Pro with Yosemite and cannot get live view to work in conjunction with my local server or with my php files.
    What could be wrong? I have set up/synced everything with my root folder in htdocs.
    Thanks:-)

    See screenshots:
    Nancy O.

  • How to set up a JSP local host server?

    I am trying to set up a local host JSP server, do you know any good youtube or tutorials in general that would help me set up a local host JSP server? Or could you post the steps here and your source (if any).
    I am looking for something similar to XAMPP as in this youtube tutorial: http://ca.youtube.com/watch?v=KWRB-maTVyM&feature=rec-fresh However, any help would be greatly appreciated.
    By the way, I am very new to JSP and was wondering, XAMPP includes Apache, is Apache a JSP server?
    -Direction needed.
    Edited by: watwatacrazy on Aug 31, 2008 6:51 AM

    You need a Java web container to run JSP/Servlets. A commonly used one is Apache Tomcat. It is not the same as Apache HTTP Server which can only serve static files.
    You can find Tomcat here: [http://tomcat.apache.org].
    How to install/use it, just check the User Guide: [http://tomcat.apache.org/tomcat-6.0-doc/index.html].

  • OSX 10.8 server Set VPN server in Local net, How to restrict the Local some IP connect to the VPN server?(noob,so need clearly)

    the tittle is my question. I am noob , so I hope i can make my question clear. Now i 'd like to tell you more about my question:
    My aim is to set a VPN server in Local lan, then ppl can connect to the VPN server, But I dont wanna all of the Local lan IP cant connet to it. So I neet to set a rule to restrick some local Ip to connect failure, just like banning so IP in a rule.such as: just like the "192.168.4.3~192.168.4.20 ; 192.168.7.3~192.168.7.20 " IPs can connect . the IPs which outside the rules can not do.
    my step is following:
    1) install server app
    2)and then i set a VPN server , finally the VPN server can be connected successfully by local lan computer(PC or Mac)
    3)But i found no restrict IP founction in Server app panel.
    4)then i down load workgroup manager, and found nothing there about such a founction about IP restriction.
    so can you tell me how to aproach my aim?
    Please tell me in a clear detail,I am noob
    thank you

    Won't the password restrict everyone from connecting unless they know the password?
    I have never worked with a VPN server, so I can't really add any suggestions. Below are links to Apple support articles, but I'm not sure they will help you:
    VPN - Set up Connection
    VPN - Advanced Setup 
    VPN - Connect
    VPN - Connect Automatically

  • Set SPN for a local SQL Server 2008 R2 Express database used for local "Offline Mode" application

    Hi - I have tried searching the web for tips on this situation. Basically, I am trying to recreate a previous employee's client Image. This image is used for one of our companies client application that features and "Offline Mode" where it connects
    (Using Kerberos) to the local DB instead of the central DB server.
    The custom image connects without issue. I cannot seem to recreate his configuration. I am sure of these things:
    - Both images are using the same SQL Server 2008 R2 Express version.
    - Both images have the same user accounts setup.
    - Both images have "Remote Connections" setup with TCP/IP enabled in the Configuration Manager.
    - Both images are joined to the same Domain server currently.
    - Both images has the SQLServer service set to use "NETWORK SERVICE" account.
    This is the error message I get when SQL starts up for the non-working image:
    The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may
    cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    Thank you for any assistance given.

    Hi Gribbled,
    Could you please change the SQL Server Service to run under 'LocalSystem' account and restart SQL Server? Then check if the error still occurs. When the SQL Server service account is configured to use the LocalSystem account, the server will automatically
    publish the SPN.
    Alternatively, to work around this issue, you can manually create the SPN for the SQL Server Service account  using the SETSPN tool. For more details, please review this
    blog.
    Thanks,
    Lydia Zhang

  • How to SET Informix (ifxjdbcx.jar) LOCALES in Pool Properties - by G Moykin

    Hi everybody,
    Some users complain about setting the DB and Client Locales in Connection Pool Properties, when IBM Informix JDBC Driver (Type 4 XA) <b>ifxjdbcx.jar</b> is used. The usual way to set them is:<br>
    <i>DB_LOCALE= …<br>
    CLIENT_LOCALE= …</i><br>
    But regardless of what is written, the Locales are NOT set. Does the Connection Pool transmit these properties correctly? Does the Driver set them? Both are true but with a very important specification: the right way to set them in the Connection Pool Properties field is:<br>
    <b>IfxDB_LOCALE= …<br>
    IfxCLIENT_LOCALE= …</b><br>
    The appearance of prefix ‘<b>Ifx</b>’ is the clue.
    Most of <b>set</b><i>PropertyName</i> Driver methods are standard such as:
    <i>user</i> -> <b>setUser</b>; <i>password</i> -> <b>setPassword</b>; <i>serverName</i> -> <b>setServerName</b>
    but in particular, IBM decided to give a name to set Locales Methods (w/o notify BEA) as:<br>
    <i> public void setIfxDB_LOCALE(String string) {<br>
         Properties.setProperty("DB_LOCALE", string);<br>
    }<br>
    public void setIfxCLIENT_LOCALE(String string) {<br>
         Properties.setProperty("CLIENT_LOCALE", string);<br>
    }</i><br>
    Methods reside in (<b>ifxjdbcx.jar</b>) class <b>com.informix.jdbcx.IfxCoreDataSource</b>,
    and the Driver class <i>com.informix.jdbcx.IfxXADataSource extends IfxCoreDataSource</i>.
    According to a standard properties SET (such as user, password, databaseName, serverName etc.), BEA developers have written a brilliant class (in <b>weblogic.jar</b>) which retrieves the properties from the Connection Pool and invokes the corresponding Driver SET Methods:
    <b>weblogic.management.console.utils.JDBC.testConnection</b> method determines whether the JDBC driver class is instance of <i>javax.sql.XADataSource</i>, and if it is, the method passes
    the driver instance:
    <i>XADataSource xadatasource =(XADataSource)Class.forName(yourDriverClass).newInstance();</i>
    And the Connection Pool properties obtained from
    <i>weblogic.management.configuration.JDBCConnectionPoolMBean_Stub.getProperties</i>
    to the method
    <b>weblogic.jdbc.common.internal.DataSourceUtil.initProps(null, xadatasource, properties);</b>
    which via <b>weblogic.jdbc.common.internal.DataSourceUtil.initProp</b> method invokes the SETs methods of the driver.
    <b>DataSourceUtil.initProp</b> method reads the corresponding ‘set property name’ and search through a Driver method <b>set</b><i>Propertyname</i>.
    Do you get me?! If you have written: DB_LOCALE= … , the <i>initProp</i> method search for a Driver method called <b>setDB_LOCALE</b>.
    Since IBM gave a name to set Locales Methods <b>setIfxDB_LOCALE</b>, you must set them in the Connection Pool Properties field as:<br>
    <b>IfxDB_LOCALE= …<br>
    IfxCLIENT_LOCALE= …</b><br>
    Best Regards: George Moykin, Sofia, Bulgaria
    e-mail: [email protected]<br>
    Some of my decisions and fixes:
    - Eliminate the problem ‘CHAR to Boolean’ automatic generation of Entity EJB Field in BEA Workshop EJB Project, when ‘new Entity bean from database table’ option is used.
    - Eliminate the problem ‘Scan of table tablename failed: java.lang.NullPointerException’, when the user tries to create an Entity EJB from a DBMS table (‘new Entity bean from database table’) using BEA Informix JDBC Driver (Type 4) wlinformix.jar.
    - Eliminate the problem ‘JDBC Pool Connection Leak/JTAConnection leak’.

    Hi everybody,
    Some users complain about setting the DB and Client Locales in Connection Pool Properties, when IBM Informix JDBC Driver (Type 4 XA) <b>ifxjdbcx.jar</b> is used. The usual way to set them is:<br>
    <i>DB_LOCALE= …<br>
    CLIENT_LOCALE= …</i><br>
    But regardless of what is written, the Locales are NOT set. Does the Connection Pool transmit these properties correctly? Does the Driver set them? Both are true but with a very important specification: the right way to set them in the Connection Pool Properties field is:<br>
    <b>IfxDB_LOCALE= …<br>
    IfxCLIENT_LOCALE= …</b><br>
    The appearance of prefix ‘<b>Ifx</b>’ is the clue.
    Most of <b>set</b><i>PropertyName</i> Driver methods are standard such as:
    <i>user</i> -> <b>setUser</b>; <i>password</i> -> <b>setPassword</b>; <i>serverName</i> -> <b>setServerName</b>
    but in particular, IBM decided to give a name to set Locales Methods (w/o notify BEA) as:<br>
    <i> public void setIfxDB_LOCALE(String string) {<br>
         Properties.setProperty("DB_LOCALE", string);<br>
    }<br>
    public void setIfxCLIENT_LOCALE(String string) {<br>
         Properties.setProperty("CLIENT_LOCALE", string);<br>
    }</i><br>
    Methods reside in (<b>ifxjdbcx.jar</b>) class <b>com.informix.jdbcx.IfxCoreDataSource</b>,
    and the Driver class <i>com.informix.jdbcx.IfxXADataSource extends IfxCoreDataSource</i>.
    According to a standard properties SET (such as user, password, databaseName, serverName etc.), BEA developers have written a brilliant class (in <b>weblogic.jar</b>) which retrieves the properties from the Connection Pool and invokes the corresponding Driver SET Methods:
    <b>weblogic.management.console.utils.JDBC.testConnection</b> method determines whether the JDBC driver class is instance of <i>javax.sql.XADataSource</i>, and if it is, the method passes
    the driver instance:
    <i>XADataSource xadatasource =(XADataSource)Class.forName(yourDriverClass).newInstance();</i>
    And the Connection Pool properties obtained from
    <i>weblogic.management.configuration.JDBCConnectionPoolMBean_Stub.getProperties</i>
    to the method
    <b>weblogic.jdbc.common.internal.DataSourceUtil.initProps(null, xadatasource, properties);</b>
    which via <b>weblogic.jdbc.common.internal.DataSourceUtil.initProp</b> method invokes the SETs methods of the driver.
    <b>DataSourceUtil.initProp</b> method reads the corresponding ‘set property name’ and search through a Driver method <b>set</b><i>Propertyname</i>.
    Do you get me?! If you have written: DB_LOCALE= … , the <i>initProp</i> method search for a Driver method called <b>setDB_LOCALE</b>.
    Since IBM gave a name to set Locales Methods <b>setIfxDB_LOCALE</b>, you must set them in the Connection Pool Properties field as:<br>
    <b>IfxDB_LOCALE= …<br>
    IfxCLIENT_LOCALE= …</b><br>
    Best Regards: George Moykin, Sofia, Bulgaria
    e-mail: [email protected]<br>
    Some of my decisions and fixes:
    - Eliminate the problem ‘CHAR to Boolean’ automatic generation of Entity EJB Field in BEA Workshop EJB Project, when ‘new Entity bean from database table’ option is used.
    - Eliminate the problem ‘Scan of table tablename failed: java.lang.NullPointerException’, when the user tries to create an Entity EJB from a DBMS table (‘new Entity bean from database table’) using BEA Informix JDBC Driver (Type 4) wlinformix.jar.
    - Eliminate the problem ‘JDBC Pool Connection Leak/JTAConnection leak’.

  • Setting a Thread specific Locale

    I am developing applications in an environment where the the system language is unlikely to be the language being processed. In .NET I can create a thread to do some processing of text in a language other than the current application language by setting the locale for the thread. I cannot find how to do this with Java.
    If it can't be done I'd be grateful to know how to submit this as an enhancement request.
    JR.

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6197800

  • Error when setting up gateway on local system: "Unable to obtain the anti-forgery token from Host Service"

    I have created an account in Office 365 to try Power BI, and have set up the Power BI site so far.
    Now i want to add few data sources, for which i guess i would need to do the following:
    1) Create a gateway (i have done this)
    2) Download and Install the gateway on my local machine (Installed on my 64bit windows 8.1 laptop)
    3) Run Data Management Gateway configuration manager wizard to setup up the gateway. 
    At this step, when i enter the Gateway Key (copied from the Power BI Site), i am getting error  "unable to obtain the anti-forgery token from Host Service".
    Where should i head next? 
    Vishal Soni

    Hey Hubery,
    Its working now. Thanks for the tips.
    Few things that i learnt here:
    1) You'll need to turn the firewalls off for the local system. (I am not sure if this is required, but i just did this and it started working for me).
    2) When you are creating the gateway on Power BI site, you click on Create new gateway, and it shows you the security key. Previously i just copied and saved this key and click Finish at this step (which i guess should not be done). What we need to do is
    to keep this screen ON, download and run the Gateway setup wizard and complete the setup, while keeping the page open in power BI site.
     I am getting the Gateway up and running now.
    Vishal Soni

  • How to set classloader SearchPolicy to "Local-First"

    Hi, I am wondering how to set the classloading search policy of OC4J to "Local-First", so not only for web apps. Basically what I'm trying to achieve is to incorporate both toplink and commons-logging/log4j libraries in my .EAR without having to worry about those libraries being loaded by another (parent) classloader.
    Help appreciated.

    Oc4j does not support local class first policy at the level of ear. Oc4j support local class first policy at the level of we apps only because it is recommended in the j2ee spec.
    Users of this local class first policy is either delighted by its wonderful work or, more often than not in a large project, bitten by its various bad implications, especially when commons-logging is involved. So I would not recommend to use this policy unless other directions have been tried.

  • Setting Storage Classification on Local Storage (e.g. local SSDs.)

    Hi all, I'm integrating SCVMM 2012 SP1 on Windows Server 2012 R2 Hyper-V with XenDesktop 7. When defining storage resources in XenDesktop, it can see the 'Local Storage' classification from SCVMM and use that for VM placement.
    What this does though, is treat all local disks that have been marked by SCVMM as 'Available for Placement' as that Local Storage. (i.e. in the SCVMM console, view the properties of a Hyper-V host, select 'Available for placement' on specified volumes under
    Hardware and then under Storage view the Storage Classifications on each physical drive.
    Instead, I'd like to be able to treat each physical direct attached drive as a separate location for XenDesktop VM placement. To that end, I've been looking at setting a different storage classification for each physical drive I'm targeting. I assume this
    is the right approach as XenDesktop looks to query SCVMM for the storage classifications to define VM placement.
    When attempting to change a storage classification on a physical drive in the host properties in SCVMM, I receive the following error:
    Virtual Machine Manager
    VMM is unable to process one of the provided parameters for the cmdlet (Set-SCStorageDisk):
    Cannot convert 'System.Object[]' to the type 'Microsoft.SystemCenter.VirtualMachineManager.StorageDisk' required by parameter 'StorageDisk'. Specified method is not supported.
    Try the operation again. If the issue persists, contact Microsoft Help and Support.
    ID: 12416
    OK   
    Directly running the PowerShell code returns the same error (as you would expect).
    $vmHost = Get-SCVMHost -ID "31ddbd43-b14f-42a1-9326-710b45eec45d"
    $storageClassification = Get-SCStorageClassification -Name "Local Drive D" -ID "a818fcbb-3346-49c4-837b-df2be834f7f7"
    $hostDisk = Get-SCStorageDisk -VMHost $vmHost -Name "\\.\PHYSICALDRIVE0"
    Set-SCStorageDisk -StorageDisk $hostDisk -StorageClassification $storageClassification -JobGroup "40edcf09-239e-496e-8dce-84b5eec02bb3" -Verbose
    Set-SCVMHost -VMHost $vmHost -JobGroup "40edcf09-239e-496e-8dce-84b5eec02bb3" -RunAsynchronously -VMPaths "C:\ProgramData\Microsoft\Windows\Hyper-V|D:\" -BaseDiskPaths ""
    Interestingly, if I change $hostDisk to $hostDisk[0], the Set-SCStorageDisk line runs and produces no error, but this does not actually achieve the desired effect.
    Can anyone offer some thoughts or reasons why I would be seeing this? Or am I going about this the wrong way (and thus failing).
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

    Moderator Action:
    Your post has been moved to the ASM Installation forum space for better topic alignment.
    You are attempting to install and/or configure ASM  and the forum members that monitor the ASM Installation space will have much more familiarity with whatever you're going to go through..

  • Setting getViewRoot().setLocale(new Locale("zh","CN")) didn't work

    Hi guys,
    I tried to set the viewRoot locale to zh_CN specifically like below:
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale("zh","CN"))but the page still displaying english instead of chinese.
    Do I really need to set the <f:view > in the jsp page like below:
    <f:view locale="#{sessionScope.currentLocale}">I thought JSF will automatically get the locale which I set specifically?

    I specify as follows:
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>en</supported-locale>
    <supported-locale>es</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>nl</supported-locale>
    <supported-locale>pt_BR</supported-locale>
    <supported-locale>zh_CN</supported-locale>
    <supported-locale>zh_HK</supported-locale>
              <supported-locale>en_AU</supported-locale>
    </locale-config>
              <message-bundle>ApplicationResources</message-bundle>

  • # Need help setting up DW CS3 local, dev and prod sites

    Hi all,
    I'm currently building a site in DW CS3 and wanted to
    structure things so I could develop, test, then publish in a more
    structured manner. What I'd like to have is the follow setup (sorry
    for the botched diagram):
    Computer 1 Computer 2
    (local dev1) (local dev2)
    | |
    | |
    |
    |
    Test Environment
    (common)
    |
    |
    Prod Environment
    (on my web host server)
    I assume that there's a way to do this in DW, but I can't
    seem to find a good tutorial on it. Now I'm working on all pages on
    my iMac, previewing in the browser to check, and then pushing them
    to the web host to update my site. This is happening in bits and
    pieces, and I'd much rather develop everything locally and then
    push the site in one (or just fewer) moves.
    Also, I'd like for another user to be able to develop and
    hopefully publish to the test environment before pushing to prod.
    Is there a way to organize and control things so our files stay
    somewhat in sync?
    Thanks in advance,
    Mike

    I recommend downloading and installing XAMPP

  • How do I set up a custom (local) Sync server for Firefox 4?

    I am having difficulty finding a clear set of instructions on how to set up a custom Sync server for Firefox 4. Most of the information that I can find seems outdated (only mentioning Weave and/or previous versions of Firefox).

    The URL you are looking for is https://wiki.mozilla.org/Labs/Weave/Sync/1.1/Setup

  • It got setting error on multiple locales under Flex builder

    Hi, i try to build a multiple locales application with Flex Builder.
    When I try to configure "Flex compiler":
    i enter "-locale en_US,fr_FR -source-path+=/locale/{locale}" for additinal compilere arguments.
    Then there are errors:
    unable to open 'C:\eclipse\Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\locale\en_US,fr_FR'
    I already to generate fr_FR with "copylocale.sh en_US fr_FR"
    May i know what happened?
    Thanks

    I solve this issue.
    for manual compile with
    -locale=en_US,fr_FR
    But under Flex builder with
    -locale en_US fr_FR

Maybe you are looking for

  • Rip CDs to a different location than the iTunes music folder?

    I just got my first iPod about two weeks ago: a 32 GB Touch. It's awesome. I started ripping a ton of music to my PowerBook G4's 80 GB hard drive. Now it's running out of space. I was thinking of buying a USB external drive to store all the music I w

  • Adobe PDF Printing Preferences (Version Adobe Acrobat 9)

    Is it possible to specify the output PDF filename like "abc.pdf" in Adobe PDF Settings? Thanks you for answer this dummy question.

  • Error in BP because of missing country

    Hi Gurus!!! first of all merry xmast!!! I need you help since I cannot see where the error is. I am using CRM 7.0 and in the UI when saving a transaction I get the following errors "The region 00 is not defined for country" and "The country is not se

  • WLS 8.1.5  console doesn't show ActiveDirectory (or custom) Users/Groups

    We currently have numerous apps running on a weblogic 8.1.4 portal domain. I am attempting to replicate this domain on 8.1.5. There are four authenticators on our old domain: a DefaultAuthenticator, an ActiveDirectoryAuthenticator, and two Custom Aut

  • Vmware 3.0 and ubuntu 9.10

    i installed ubuntu and it worked fine. then i shut it down and quit vmware. the next-time i tried to turn on ubuntu it asked for my password, which i put in. it then seemed to start to load only to take me back to the log in and asking for my passwor