J2EE Deployment 1.1 API and Split Directory Structure

How do you think the Deployment API from J2EE 1.4 will affect the WL split directory
structure?

I believe they're orthogonal and wasn't expecting any split-directory
changes. Did you have any particular concerns?
-- Rob
Christopher R. Gardner wrote:
How do you think the Deployment API from J2EE 1.4 will affect the WL split directory
structure?

Similar Messages

  • Using wlappc with split directory structure

    I am trying to generate an EAR file of my application using wlappc in WLS8.1sp3.
    I am using the split directory structure, I have a src directory containing my
    source and xml descriptors, and a output directory containing the compiled classes.
    I am using the split structure to deploy to the app server in development, that
    is working fine. I use wlcompile to compile the code, that works ok too.
    I assume that the purpose of wlappc would be to take a split directory structure
    and create an EAR file from it, but there is only one source directory that you
    can pass to the ant task. If I pass the src directory, it complains that it cannot
    find the classes. If I use the output directory, it complains that it cannot
    find the META-INF directory.
    Am I missing a step? Do I have to use wlpackage to put everything in one directory,
    then wlappc? Do I have to copy the class files or xml files manually first?

    Jason Kriese wrote:
    I am trying to generate an EAR file of my application using wlappc in WLS8.1sp3.
    I am using the split directory structure, I have a src directory containing my
    source and xml descriptors, and a output directory containing the compiled classes.
    I am using the split structure to deploy to the app server in development, that
    is working fine. I use wlcompile to compile the code, that works ok too.Great.
    >
    I assume that the purpose of wlappc would be to take a split directory structure
    and create an EAR file from it, No, wlappc does J2EE code-generation and validation. For instance, it
    will do hundreds of checks against your EJBs to make sure they comply
    with the spec. It will compile your JSP files into servlets etc. You
    just need to pass wlappc the output directory. It will automatically
    find the src directory.
    When you're ready to deploy to a production or staging server, you can
    use wlpackage to put everything into one directory or an archived EAR file.
    -- Rob
    but there is only one source directory that you
    can pass to the ant task. If I pass the src directory, it complains that it cannot
    find the classes. If I use the output directory, it complains that it cannot
    find the META-INF directory.
    Am I missing a step? Do I have to use wlpackage to put everything in one directory,
    then wlappc? Do I have to copy the class files or xml files manually first?

  • Class reload for split directory structure

    I have tried to use the split directory structure in WL 8.1. I have a enterprise
    application with 2 EJB modules and 2 WEB modules. I have tried to change one session
    bean by just adding a logging statement and then use wlcompile to compile it.
    Do I necessary call wldeploy to redeploy it? Or, will WebLogic automatically reload
    the class file? Calling redeploy is so slow to me (about 3 minutes). Thus I want
    to check if WL can just reload the class automatically.

    Hudson Wong wrote:
    I have tried to use the split directory structure in WL 8.1. I have a enterprise
    application with 2 EJB modules and 2 WEB modules. I have tried to change one session
    bean by just adding a logging statement and then use wlcompile to compile it.
    Do I necessary call wldeploy to redeploy it? Yes
    Or, will WebLogic automatically reload the class file? No, by default it load the EJB in the application classloader, and
    everytning in the classloader must change for it to be visible.
    Calling redeploy is so slow to me (about 3 minutes). Thus I want
    to check if WL can just reload the class automatically.There is a bit of an advanced way in WLS 8.1 to get this to work.
    In your weblogic-ejb-jar.xml, you need to set
    <enable-bean-class-redeploy>True</enable-bean-class-redeploy>
    This tells WLS to load the bean impl class in a sub classloader
    then in weblogic.Deployer you have to specify the bean class that changed.
    weblogic.Deployer -name myapp -redeploy myEJB/com/foo/MyEJB.class
    That works as long as you only make changes to the bean class itself.
    -- Rob

  • How get SharePoint Library Folders and Files directory structure in to my custom web site.

    Hi,
    Actually my requirement is, I would like to pass site name and document library name as a parameter and get a folders and files from the document library and form the directory structure by using Treeview control in my web site.
    How should i get? Using Web service / object model?
    Web service would return the dataset as a result so from that how could i form the directory structure using Treeview control.
    I will select specified files and folders then i ll update sharepoint document library columns for corresponding selected files.
    Can anyone help over this, that would be great appreciate.
    Thanks in Advance.
    Poomani Sankaran

    Hello,
    Here is the code to iterate through sites and lists:
    //iterate through sites and lists
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(webUrl)) {
    using (SPWeb oWebsite = site.OpenWeb())
    SPListCollection collList = oWebsite.Lists;
    foreach (SPList oList in collList)
    {//your code goes here }
    Then use RecursiveAll to get all files and folders.
    http://www.codeproject.com/Articles/116138/Programatically-Copy-and-Check-In-a-Full-Directory
    http://sharepoint.stackexchange.com/questions/48959/get-all-documents-from-a-sharepoint-document-library
    Here is the full code:
    http://antoniolanaro.blogspot.in/2011/04/show-document-library-hierarchy-in-tree.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Export Pics AND retain directory structure

    I'd like to use Bridge to manage the photos I put onto my iPod, here's the general workflow:
    All pictures are stored in directories by event (date) in the /pictures/ folder, for example:
    /pictures/2008-07-01 Hike in Woods
    /pictures/2008-07-02 Bike in Woods
    /pictures/2008-07-05 Meeting with Tiger Woods
    Here's what I'd like to do:
    I rate all my pictures in Bridge using Color Labels (Green=Good, Yellow=Just OK, Red=Bad.
    I'd like to use Bridge to select all "Good" pictures taken this year (easy to do using Search), but the rub is that I'd like to export these pictures but retain the directory structure. For example, I have a directory where I store all my pictures for my iPods and I'd like to retain the folder structure so that I can easily browse just my Good pictures on my iPod:
    /iPodPictures/
    /iPodPictures/2008-07-01 Hike in Woods
    /iPodPictures/2008-07-02 Bike in Woods
    /iPodPictures/2008-07-05 Meeting with Tiger Woods
    This way, I can have iTunes monitor the /iPodPictires folder when I sync and copy over any pictures I move there, but only copy over the Good pictures and keep the rest off my iPod.
    If I just do a Search, all the files show up in 1 window, and when I export, they are all put into 1 directory, which isn't easy to browse.
    Any ideas how I can accomplish this using Bridge? I also own LightRoom, so if there are ways I could use that instead of Bridge, that would work as well.
    Thanks!

    I started simmilar thread in Lightroom Feature Requests few months ago, but can't find it anymore since new forum version...
    What I can suggest as a new feature is export to directory structure from collections or second option from keywords. Probably more usable and easier to implement would be from collections.
    What I need it to export many photos to different directories pretty often, and this would be great help since I could arrange them in collections and collection sets. Then select collection set and export it in a manner that collection set would be main export directory, and each collection within the set would be exported to its own folder within main collection set export folder.
    This would be much appreciated feature in near future
    Thank you for great product by the way

  • Split Directory Packaging and Deployment Question

    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split directory structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put in myEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versus myEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are classes depended
    on by, say, the servlets in a web app, but not depended on anywhere else in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use local interfaces
    on my session beans. Let's say I have a domain object class returned from a session
    bean method and depended on by the web app. If I put that domain object class
    under myEnterpriseApp/myEjbModule, then the web app can see it by virtue of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff to build/APP-INF/classes.
    What stuff? How does it decide? I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials. Is it
    looking for java source files under src/myEnterpriseApp but not under myWebApp
    or myEjbModule? In general, does BEA have any recommendations in this area?
    Thanks,
    Randy

    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi Mark,
    Thanks for the reply. I don't have 8.1 installed yet, so I can'tempirically
    observe the example's behavior. But I downloaded the example andinspected the
    code. It answers some, but not all, of my questions.Where to start.
    In 8.1 we have made optimizations to J2EE packaging. Mostly this is about
    not having to use manifest classpath's to do sharing of of common classes.
    MF Cp's are a pain to configure. You put your classes in one location in
    the ear and then EVERY module has to have a MF CP entry pointing to that
    location, and then you actually have N number of classes loaded per module.
    The mechanism to share classes across all modules is APP-INF/lib and
    APP-INF/classes. The benefit is that APP-INF is shared across all modules.
    So to your question below you could just put it in the EJB module, BUT if
    you have mutliple EJBs that you split into seperate modules your back tot
    the same issue. So APP-INF is just the simplist solution over-all.
    Split-dir is a specified way to lay out disk your src files
    Split-dir
    From code inspection, it looks like the JSP and EJB (therefore the web appmodule
    and EJB module) both depend on the AppUtils class, which is not inAPP-INF, but
    rather in a directory under the enterprise app directory that does notrepresent
    a web app module or EJB module. In the build file's compile target, is itthe
    wlcompile task invocation that causes compilation of AppUtils.java? Or isit
    the ant task invocation (with "build.appStartup" as the value of thetarget attribute)
    that causes compilation of AppUtils.java due to the dependency ofApplicationStartup
    on AppUtils? And what subdirectory of the build directory doesAppUtils.class
    end up in?
    Why not just put AppUtils.java in the EJB module? Both dependent moduleswould
    still be able to see it by virtue of the classloader arrangement. Doesputting
    it in outside of all dependent modules represent a convention that BEArecommends?
    >
    Finally, why not put applicationresource.properties in the same place asits user
    AppUtils.java?
    Thanks,
    Randy
    "Mark Griffith" <[email protected]> wrote:
    Randy:
    (Rob may post later, but here is my take)
    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split
    directory
    structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put inmyEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versusmyEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are
    classes
    depended
    on by, say, the servlets in a web app, but not depended on anywhereelse
    in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use localinterfaces
    on my session beans. Let's say I have a domain object class returnedfrom
    a session
    bean method and depended on by the web app. If I put that domain
    object
    class
    under myEnterpriseApp/myEjbModule, then the web app can see it by
    virtue
    of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff tobuild/APP-INF/classes.
    What stuff? How does it decide?wlcompile has a module factory. If a directory is claimed by a module
    factory then it is compiled by that specific module compiler. The rules
    for
    module definition follow the same J2EE formatting rules.
    So:
    /myejb/
    would be identified as a ebj module by:
    */myejb/meta-inf/ejb-jar.xml
    */myejb/myejb.ejb (EJBGen file)
    then src files (*.java) will be compiled to
    $BUILD_DIR/myejb/
    /myweb/
    would be identifid as a web module by:
    */myweb/WEB-INF/web.xml
    Also for webapps
    /myweb/WEB-INF/src/*.java
    will be compiled ot
    $BUILD_DIR/myweb/WEB-INF/classes
    We choose WEB-INF/src following the struts precedence.
    So a plain old module that has noting but .java files in it will go to
    $BUILD_DIR/APP-INF/classes
    If you have a jar of classes that you need to share across the entire
    ear,
    you would check it into your src tree at:
    $SRC_DIR/APP-INF/lib/mycommon.jar
    You can check out an example at:
    $BEA_HOME/weblogic81/samples/server/examples/src/examples/splitdir/helloWorl
    dEar
    Hope this helps.
    cheers
    mbg
    I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials.Is it
    looking for java source files under src/myEnterpriseApp but not undermyWebApp
    or myEjbModule? In general, does BEA have any recommendations in thisarea?
    Thanks,
    Randy

  • Directory structure question...

    I've been w/ three different companies doing Java development now, and each time I've come in once the project is already in progress and the directory structure is set up. What I see is a similarity:
    com.<company name>.<project>.<sub-units>
    examples:com.delta.kiosk.server
    com.delphi.shipping.guiIs this a common way of laying out directories and if so, what is the benefit (other than standardization)?

    I always figures that it was primarily a namespace issue.
    org.apache.ecs.Attributes
    org.xml.sax.Attributes
    are examples of class names that would have resulted in a collision without the prefixes. A full class name has the package name before it so
    String
    java.lang.String
    are the same thing, String is just shorthand for the latter. But if there are two of the same class then the prefix will help the compiler know where the class is supposed to come from. com.<company name>.<project>.<class> is a good way to ensure that you will not encounter a collision.

  • Split Directory and Workshop

    Does ANYONE know of a nice, easy-going tutorial linking
    the concepts of split-directory development, and development in Workshop/eclipse.
    e.g. developing medrec with workshop.
    (medrec has a split development structure, but it doesn't seem to easily map onto workshop...)
    Thanks.

    Jeffrey,
    Workshop only supports module-level mapping to projects. Basically,
    every module project (such as war, ejb, or utility jar src) needs to be
    a separate project. The trick is with the ear itself (encompassing the
    ear's APP-INF and META-INF directories). It also needs to be a separate
    project. The issue is that Workshop does not allow project directories
    to nest and if you have source layout that mimics deployed ear
    structure, you will have to create the ear project in a location other
    than the ear root in your source. You then have to "map-in" your ear's
    APP-INF and META-INF directories from your source area into your ear
    project. You can do that via New -> Other... -> General -> Folder ->
    Advanced -> Link to folder in the file system.
    Hope this helps.
    - Konstantin

  • J2ee Admin User locked on SDM Deployment - BI 7.0 and EP 7.0

    Hi,
    We had a recent issue on BI iview publishing from the BEX WAD 7.0 in our Production Portal server.
    The BEX WAD had the error " Java communication error"
    " An Error occured during communication with the BI Components of the J2ee engine"
    We traced down to identify that the current stack NW 7.0 SP14 BI Components had issues and had to patch to the next level
    However, during deployment of the patch using SDM, the components (all) failed posting the following error. The SDM deployment got struck and the J2ee Engine user j2ee_admin was locked.
    Only a restart of the j2ee engine is allowing us to get the Visual Admin connected. But the SDM deployment again is failing and admin user gets locked. Is there any tested solution to solve this.
    Kindly help asap.
    Trace:
    SDM:
    Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [xxxx] with user name: [j2ee_admin]check your login information.
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during getInitialContext operation. No server is running. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.]          
    J2ee Engine:
    Error while connecting
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: This call must be performed from a system thread.
         at com.sap.engine.services.security.login.SecuritySession.setExpirationPeriod(SecuritySession.java:479)
         at com.sap.engine.services.security.login.TicketGenerator.getSecuritySession(TicketGenerator.java:180)
         at com.sap.engine.services.security.login.SecurityContext.load(SecurityContext.java:313)
         at com.sap.engine.services.rmi_p4.Message.loadContextObject(Message.java:345)
         at com.sap.engine.services.rmi_p4.Message.parseMessage(Message.java:239)
         at com.sap.engine.services.rmi_p4.Message.getByteArrayInputStream(Message.java:314)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:212)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

    Hi Anup,
    The restart unlocks the j2ee engine admin user and i am able to login to Visual admin and SDM and not otherwise (SDM is hanged and doesnot allow another session and hence only restart helps me to get into SDM again)
    Admin Pwds reset etc from config tool secure store and all possible solutions have been tried before restart.
    However, after restart, when we try to deploy again, the deploy fails saying the same msg
    Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [xxx] with user name: [j2ee_admin]check your login information.
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during getInitialContext operation. No server is running. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.]
    Any clues ?
    Regards
    Venkat.

  • Deployment issues java.io.IOException: [J2EE Deployment SPI:260]"

    I m using weblogic.Deployer to deploy webservice and getting this error
    java.io.IOException: [J2EE Deployment SPI:260080]Unable to define application install directory at '/tmp/WebService.war'. Directory could not be created or is a file.
    at weblogic.deploy.api.internal.utils.InstallDir.<init>(InstallDir.java:60)
    at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.upload(ServerConnectionImpl.java:624)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.uploadFiles(BasicOperation.java:300)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.execute(BasicOperation.java:385)
    at weblogic.deploy.api.spi.deploy.internal.BasicOperation.run(BasicOperation.java:169)
    at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.deploy(WebLogicDeploymentManagerImpl.java:369)
    at weblogic.deploy.api.tools.deployer.DeployOperation.execute(DeployOperation.java:47)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:145)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:93)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    at weblogic.Deployer.main(Deployer.java:54)
    I tried to set different tmp dir location as "-Djava.io.tmpdir=${WL_DOMAIN_HOME}/tempdir", but still i get the same Error.
    Any thoughts/help, how to set the location while deploying using weblogic.Deployer.
    Thanks
    Kraz
    Edited by: user10687441 on Dec 5, 2008 4:57 PM

    java weblogic.Deployer -usenonexclusivelock -adminurl http://153.2.3.101:5432 -username test -password test-t -upload -debug -deploy -source ../current-testnet/UdcWebService.war -targets udc
    I added this "-Djava.io.tmpdir=${WL_DOMAIN_HOME}/tempdir" in the start scripts of my admin and managed instances. Thinking by default the deployments were using /tmp/filename
    After some trial-n-error, renaming the war to UdcWS.war ....worked and I m happy :)
    But still curious how it is related to the name "WebService"
    Same command with only name change was successful, nothing changed inside the .war nor start scripts
    java weblogic.Deployer -usenonexclusivelock -adminurl http://153.2.3.101:5432 -username test -password test-t -upload -debug -deploy -source ../current-testnet/UdcWS.war -targets udc
    Any thoughts ?
    Edited by: user10687441 on Dec 6, 2008 5:41 PM

  • Need help in resolving  J2EE Deployment SPI error BEA-260101

    I have a portal application (ear) currently working on weblogic 10.2. I upgraded my project to 10.3 using workshop, then made an ear and deployed it on 10.3
    The following error is being displayed on 10.3.
    +<Error> <J2EE Deployment SPI> <BEA-260101> <Parameter 'DDBeanRoot' may not be null.>+
    Any help in resolving this will be highly appreciated.

    Hi,
    The following is the description of the error :-
    BEA-260101 Error: Parameter 'paramName' may not be null.
    Description Misuse of an API
    Cause A null parameter was passed to the method.
    Action Resolve client programming error
    Link:[wls/docs100/messages/SPIDeployer.html]
    Hope this helps :)

  • An EFFECTIVE development directory structure for J2EE platform?

    Hi, here we r talking about deployment environment more than development
    environment. Have u ever think about designing an EFFECTIVE development
    directory structure for J2EE platform( e.g. weblogic )? u r not using the
    deployment directories for coding, r u? :)
    I used to construct a dir structure for dev and want to improve it.
    d:/wholesystem/*.prj // Project files
    ...../module1/src/com/.... // Module source files
    ...../module1/doc/... // Module doc files
    ...../module1/classes/... // Module class files
    ...../module2/...
    ...../web/*.jsp // web page files
    ...../web/images/... // web page images
    ...../web/WEB-INF/... //...
    Do u have any good ideas? Thanks!
    * Name: Gary Wang
    * Tele: 010-65546668-8119
    * Mail: [email protected]

    Create a web-inf folder at the same level of src and
    jsp folder inside src
    i mean
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    /src/jsp
    /web-infSo, would you put in /src/jsp only the *.jsp?
    And what in /WEB-INF ? What woud you put there? Would you do something like:
    /WEB-INF/web.xml
    /WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
    /WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
    In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
    Is this directory structure anyway what you meant or not?
    alessio

  • Compiler API  and Tomcat

    Hi!
    I am using the new compiler api to compile dynamically generated classes.
    To get the compiler tool i call:
    JavaCompiler compilerTool = ToolProvider.getSystemJavaCompiler(); when I run this from eclipse with the integrated tomcat everyhing works fine but if I deploy the application on the external tomcat i get a null pointer exception because getSystemJavaCompiler(); always returns null.
    Somebody got an idea why?

    sigh, NEVER put ANYTHING in the jre/lib/ext directory.
    It's a bad thing that it's even there, as it causes systems to become mutually incompatible and to behave unpredictably when different versions of classes are needed/present.
    The compiler API (and others) that depend on the local filesystem are disallowed by application servers for security reasons.
    You've just given access to every cracker in the world to your system by allowing them to compile and run code on your machine with root privileges. Your boss will thank you.

  • SharePoint 2010, Visual Studio 2010, Packaging a solution - The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Hi,
    I have a solution that used to contain one SharePoint 2010 project. The project is named along the following lines:
    <Company>.<Product>.SharePoint - let's call it Project1 for future reference. It contains a number of features which have been named according
    to their purpose, some are reasonably long and the paths fairly deep. As far as I am concerned we are using sensible namespaces and these reflect our company policy of "doing things properly".
    I first encountered the following error message when packaging the aforementioned SharePoint project into a wsp:
    "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
    I went through a great deal of pain in trying to rename the project, shorten feature names and namespaces etc... until I got it working. I then went about gradually
    renaming everything until eventually I had what I started with, and it all worked. So I was none the wiser...not ideal, but I needed to get on and had tight delivery timelines.
    Recently we wanted to add another SharePoint project so that we could move some of our core functinality out into a separate SharePoint solution - e.g. custom workflow
    error logging. So we created another project in Visual Studio called:
    <Company>.<Product>.SharePoint.<Subsystem> - let's call it Project2 for future reference
    And this is when the error has come back and bitten me! The scenario is now as follows:
    1. project1 packages and deploys successfully with long feature names and deep paths.
    2. project2 does not package and has no features in it at all. The project2 name is 13 characters longer than project1
    I am convinced this is a bug with Visual Studio and/or the Package MSBuild target. Why? Let me explain my findings so far:
    1. By doing the following I can get project2 to package
    In Visual Studio 2010 show all files of project2, delete the obj, bin, pkg, pkgobj folders.
    Clean the solution
    Shut down Visual Studio 2010
    Open Visual Studio 2010
    Rebuild the solution
    Package the project2
    et voila the package is generated!
    This demonstrates that the package error message is in fact inaccurate and that it can create the package, it just needs a little help, since Visual Studio seems to
    no longer be hanging onto something.
    Clearly this is fine for a small time project, but try doing this in an environment where we use Continuous Integration, Unit Testing and automatic deployment of SharePoint
    solutions on a Build Server using automated builds.
    2. I have created another project3 which has a ludicrously long name, this packages fine and also has no features contained within it.
    3. I have looked at the length of the path under the pkg folder for project1 and it is large in comparison to the one that is generated for project2, that is when it
    does successfully package using the method outlined in 1. above. This is strange since project1 packages and project2 does not.
    4. If I attempt to add project2 to my command line build using MSBuild then it fails to package and when I then open up Visual Studio and attempt to package project2
    from the Visual Studio UI then it fails with the path too long error message, until I go through the steps outlined in 1. above to get it to package.
    5. DebugView shows nothing useful during the build and packaging of the project.
    6. The error seems to occur in
    CreateSharePointProjectService target called at line 365 of
    Microsoft.VisualStudio.SharePoint.targetsCurrently I am at a loss to work out why this is happening? My next task is to delete
    project2 completely and recreate it and introduce it into my Visual Studio solution.
    Microsoft, can you confirm whether this is a known issue and whether others have encountered this issue? Is it resolved in a hotfix?
    Anybody else, can you confirm whether you have come up with a solution to this issue? When I mean a solution I mean one that does not mean that I have to rename my namespaces,
    project etc... and is actually workable in a meaningful Visual Studio solution.

    Hi
    Yes, I thought I had fixed this my moving my solution from the usual documents  to
    c:\v2010\projectsOverflow\DetailedProjectTimeline
    This builds ok, but when I come to package I get the lovely error:
    Error 2 The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. C:\VS2010\ProjectsOverflow\DetailedProjectTimeline\VisualDetailedProjectTimelineWebPart\Features\Feature1\Feature1.feature VisualDetailedProjectTimeline
    Now, the error seems to be related to 
    Can anyone suggest what might be causing this. Probably some path in an XML file somewhere. Here is my prime suspect!
    <metaData>
    <type name="VisualDetailedProjectTimelineWebPart.VisualProjectTimelineWebPart.VisualProjectTimeline, $SharePoint.Project.AssemblyFullName$" />
    <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="Title" type="string">VisualProjectTimelineWebPart</property>
    <property name="Description" type="string">My Visual WebPart</property>
    </properties>
    </data>
    </webPart>
    </webParts>
    .... Unless I can solve this I will have to remove the project and recreate but with simple paths. Tho I will be none the wiser if I come across this again.
    Daniel

  • Cross-tenant email and split domains - how to set up?

    I've successfully deployed exchange 2010 sp1 in /hosted mode with multi-tenancy and the install is working great. We are running into a problem configuring the send connectors
    for inter domain email and split domains. We have several customers wanting to only put a couple of email accounts on the exchange server and have the rest of their email accounts resolve to a pop server at an external location. Currently I have a internal
    send connector set to relay email between the domains on the server so they can send emails to one another. Directions for this were found at: http://www.zerohoursleep.com/2010/10/step-by-step-starting-with-exchange-2010-sp1-multi-tenant-sending-and-receiving-emails/
    I created the connector: new-SendConnector -Name 'TestOrg' -Usage 'Internal' -AddressSpaces 'SMTP:domain1.com;1','SMTP:domain2.com;1' -IsScopedConnector $false -DNSRoutingEnabled $false -SmartHosts '[127.0.0.1]' -SmartHostAuthMechanism 'None' -UseExternalDNSServersEnabled
    $false -SourceTransportServers 'Exchange' 
    I added all my internal domains to the connector listed above and email is able to flow from one domain to another.
    My problem is we have a number of customers who need split-domains set up where users who arent on the exchange server are relayed to an external server. Example to route unknown users on a domain to google my send connector looks as is: 
    New-SendConnector -Name "Internal Relay - domain1.com" -Custom -AddressSpaces "SMTP:domain1.com;5" -SmartHosts aspmx.l.google.com -SourceTransportServers "server"
    This results in an internal loop error when sending from one internal domain to another. Sending from an external domain everything is fine. If I remove the "internal" connector listed above the split-domain send connector works perfectly fine delivering locally
    and to the external server.
    How can I make it so both send connectors work?

    Hello,
    did you solve the problem and how?
    Thanks,
    Victor
    Exchange and Outlook utilities at
    http://www.ivasoft.com

Maybe you are looking for

  • Satellite A300 wont go into sleep mode - it boots up again

    My Toshiba Satelitte A300 is simply refusing to sleep - it will sleep (the amber light glows and the screen is blank) and after about 10 seconds all the lights come back on and the fan starts going. This happens when the laptop is plugged in and runn

  • How to draw a box before Line Item in the Main Window  In SapScript

    Hi guys, I am trying to draw a box before Line items to be printed but it overwriting the Line Item can anyone help me in this. Thanks, Ramesh

  • Email notification in human task: How to customize email subject.

    Dear all community members, I am using email notification service in human task to receive email notification if task is assigned to me. I have configured email notification in human task & I do receive the email in my inbox as assignee. The default

  • Sorting by camera serial number?

    Hello, I can see how to search photos by the various cameras I've used over the years. (Metadata>customfilter>CameraInfo)  I can also see the serial numbers of the cameras in the image info.  In the past several years, I've been shooting with three d

  • Error Code 21 with iPod Touch

    Hello, I recently registered my iPod Touch's UDID, and of course tried out iOS 7.  But wanting to go back to iOS 6 for stability I restored to the ipsw, but when I did it went into a recovery loop, so since iTunes didn't seem to be able to fix it I u