Kashif Mughal

Ranch Hand
+ Follow
since Jun 19, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kashif Mughal

Hi Guys

I am looking for a good resource/Book that can provide Code CaseStudy/Example based on the following Technologies; Please suggest something that can provide good mix of these technologies.

  • Spring Framework
  • JSF
  • Hibernate




  • 13 years ago
    JSF
    I am running from IDE as follow;

    Run As > Junit Test
    13 years ago
    Yes, I am running it within Eclipse IDE
    13 years ago
    its standalone Java service not a web application and I am getting that problem while running the unit tests.
    13 years ago
    If I am not wrong, they are; Please have a look below;

    13 years ago
    Hi Everyone,

    Hopefully I am raising this question in the right forum, I am trying to setup the Spring Hibernate Environment for my project, I am keep on getting this error, I guess there is some JAR missing or any compatibility issue. Please suggest if it rings a bell. Details are given below;

    ApplicationContext.xml
    ==================


    Dependencies
    ===========


    Stack Trace
    =========


    Thanks in Advance, your early attention will be appreciated.

    13 years ago
    Hi Everyone,

    I am throwing a question about the application architecture, not really related to the certification. Please answer me considering, I am not very expert on application architectures.

    I want to design a learning web application that contain Four components given as follow; I have split first three components as a separate Java/EJB project in Eclipse, Web is naturally a web project. Now, Here I am having two questions, given below;

    1- Sales Component
    2- Purchase Component
    3- Inventory Component
    4- Web Interface Component

    Questions:

    1- Is that a right way of splitting at component/project level? If not please suggest the right/appropriate/standard way.
    2- About the DAOs for each of first three component, Should I keep them as a separate package in these projects or define a separate project for them?

    Please suggest any books, sources to address these type of architectural decisions.

    I would really appreciate your early attention.

    Sorry pasted in the wrong way, Just doing it again.


    13 years ago
    Hi

    Thanks for the info, I am sending you the settings.xml , Just have a look if it rings a bell.

    =========================

    <?xml version="1.0" encoding="utf-8"?>
    <settings
    xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.or g/xsd/settin gs-1.0.0.xsd ">
    <localRepository>${user.home}/.m2/repository</localRepository>
    <interactiveMode>true</interactiveMode>
    <usePluginRegistry>false</usePluginRegistry>
    <offline>false</offline>
    <servers>
    <server>
    <id />
    <username />
    <password />
    <privateKey />
    <passphrase />
    <filePermissions />
    <directoryPermissions />
    <configuration />
    </server>
    </servers>
    <profiles>
    <profile>
    <id>dev</id>
    <activation>
    <activeByDefault>false</activeByDefault>
    <jdk>1.5</jdk>
    <os>
    <name>Windows XP</name>
    <family>Windows</family>
    <arch>x86</arch>
    <version>5.1.2600</version>
    </os>
    <property>
    <name>mavenVersion</name>
    <value>2.0.3</value>
    </property>
    <file />
    </activation>
    <repositories>
    <repository>
    <id>central</id>
    <url>http://repo1.maven.org/maven2</url>;
    <releases>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
    </releases>
    </repository>
    <repository>
    <id>central</id>
    <url>http://repo2.maven.org/maven2</url>;
    <releases>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
    </releases>
    </repository>
    <repository>
    <id>snapshot</id>
    <url>http://www.ibiblio.org/maven</url>;
    <releases>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
    </releases>
    </repository>
    </repositories>
    <pluginRepositories>
    <pluginRepository>
    <id>central</id>
    <url>http://repo1.maven.org/maven2</url>;
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    </pluginRepository>
    <pluginRepository>
    <id>central</id>
    <url>http://repo2.maven.org/maven2</url>;
    <releases>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
    </releases>
    </pluginRepository>
    <pluginRepository>
    <id>snapshots</id>
    <url>http://www.ibiblio.org/maven</url>;
    <releases>
    <enabled>false</enabled>
    </releases>
    </pluginRepository>
    <pluginRepository>
    <id>central</id>
    <url>http://mtgsiadm005:8081/nexus/content/groups/public</url>;
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    </pluginRepository>
    </pluginRepositories>
    </profile>
    </profiles>
    <activeProfiles />
    </settings>
    13 years ago
    Hi

    I have just removed the dependency and did the maven:clean and maven:install using the m2eclipse, I am getting the following error; It also creates an updated file in the plugin folder but does not download the this dependency. But, When i installed the plugin and ran the m2eclipse first time, it downloaded some dependencies automatically but now this one.

    Please let me know if I am doing something wrong.

    ========================


    2010-06-10 16:08:10.156:INFO::Logging to StdErrLog:EBUG=false via org.eclipse.jetty.util.log.StdErrLog
    2010-06-10 16:08:10.484:WARN::FAILED org.eclipse.jetty.client.SelectConnector$Manager@1636e4e: java.io.IOException: Unable to establish loopback connection
    2010-06-10 16:08:10.484:WARN::FAILED org.eclipse.jetty.client.SelectConnector@df0438: java.io.IOException: Unable to establish loopback connection
    2010-06-10 16:08:10.484:WARN::FAILED org.apache.maven.wagon.providers.http.FixedHttpClient@18e261d: java.io.IOException: Unable to establish loopback connection[INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - ExpenseManager:ExpenseManager:jar:0.0.1-SNAPSHOT 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------

    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.953s
    [INFO] Finished at: Thu Jun 10 16:08:10 BST 2010
    [INFO] Final Memory: 1M/2M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.1 or one of its dependencies could not be resolved: Connection failed: Unable to establish loopback connection
    org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1

    from the specified remote repositories:
    central (http://mtgsiadm005:8081/nexus/content/groups/public, releases=true, snapshots=false),
    snapshots (http://www.ibiblio.org/maven, releases=false, snapshots=true)
    -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
    13 years ago
    Hi

    Thanks for the reply, But Maven did not downloaded it automatically and complaint for the missing dependency only then I did it manually. If there is any other way please suggest.
    13 years ago
    Hi Everyone,

    I have installed the m2eclipse (0.10) for eclipse-j2ee-galileo-SR1-win32bit. After the installation, I had the problem;

    1- Plugin "org.apache.maven.plugins:maven-resources-plugin:2.4.1" is missing, I downloaded the JAR for that plugin and copied in to the repository.
    2- After copying the plugin now, I am getting the following problem.


    ===========================================


    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Unnamed - TestWeb:TestWeb:war:0.0.1-SNAPSHOT 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ TestWeb ---
    2010-06-09 23:57:10.408:INFO::Logging to StdErrLog:EBUG=false via org.eclipse.jetty.util.log.StdErrLog
    2010-06-09 23:57:10.658:WARN::FAILED org.eclipse.jetty.client.SelectConnector$Manager@4d76b4: java.io.IOException: Unable to establish loopback connection
    2010-06-09 23:57:10.658:WARN::FAILED org.eclipse.jetty.client.SelectConnector@1ac5f13: java.io.IOException: Unable to establish loopback connection
    2010-06-09 23:57:10.658:WARN::FAILED org.apache.maven.wagon.providers.http.FixedHttpClient@195dd5b: java.io.IOException: Unable to establish loopback connection
    [WARNING] Missing POM for org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.032s
    [INFO] Finished at: Wed Jun 09 23:57:10 BST 2010
    [INFO] Final Memory: 1M/3M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.4.1:resources (default-resources) on project TestWeb: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.1:resources failed: Unable to load the mojo 'resources' in the plugin 'org.apache.maven.plugins:maven-resources-plugin:2.4.1'. A required class is missing: org/apache/maven/shared/filtering/MavenFilteringException
    -----------------------------------------------------
    realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.1
    strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
    urls[0] = file:/C:/Documents%20and%20Settings/Kashif%20Mughal/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.jar
    urls[1] = file:/C:/Documents%20and%20Settings/Kashif%20Mughal/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
    Number of foreign imports: 4
    import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
    import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
    import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
    import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]
    Number of parent imports: 20
    import: Entry[import org.codehaus.plexus.personality from realm null]
    import: Entry[import org.codehaus.plexus.logging from realm null]
    import: Entry[import org.codehaus.plexus.lifecycle from realm null]
    import: Entry[import org.codehaus.plexus.context from realm null]
    import: Entry[import org.codehaus.plexus.container from realm null]
    import: Entry[import org.codehaus.plexus.configuration from realm null]
    import: Entry[import org.codehaus.plexus.component from realm null]
    import: Entry[import org.codehaus.plexus.classworlds from realm null]
    import: Entry[import org.codehaus.plexus.PlexusContainerException from realm null]
    import: Entry[import org.codehaus.plexus.PlexusContainer from realm null]
    import: Entry[import org.codehaus.plexus.PlexusConstants from realm null]
    import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm null]
    import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm null]
    import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm null]
    import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm null]
    import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm null]
    import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm null]
    import: Entry[import org.codehaus.plexus.ComponentRegistry from realm null]
    import: Entry[import org.codehaus.classworlds from realm null]
    import: Entry[import org.apache.maven from realm null]

    realm = plexus.core
    strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
    urls[0] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/commons-cli-1.2.jar
    urls[1] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/commons-logging-api-1.1.jar
    urls[2] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/google-collections-1.0.jar
    urls[3] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-client-7.0.0.v20091005.jar
    urls[4] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-http-7.0.0.v20091005.jar
    urls[5] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-io-7.0.0.v20091005.jar
    urls[6] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/jetty-util-7.0.0.v20091005.jar
    urls[7] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/log4j-1.2.12.jar
    urls[8] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-artifact-3.0-SNAPSHOT.jar
    urls[9] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-compat-3.0-SNAPSHOT.jar
    urls[10] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-core-3.0-SNAPSHOT.jar
    urls[11] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-embedder-3.0-SNAPSHOT.jar
    urls[12] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-model-3.0-SNAPSHOT.jar
    urls[13] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-model-builder-3.0-SNAPSHOT.jar
    urls[14] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-plugin-api-3.0-SNAPSHOT.jar
    urls[15] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/maven-settings-3.0-SNAPSHOT.jar
    urls[16] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-build-api-0.0.6.jar
    urls[17] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-cipher-1.4.jar
    urls[18] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-component-annotations-1.5.3.jar
    urls[19] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-container-default-1.5.3.jar
    urls[20] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-interpolation-1.11.jar
    urls[21] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-sec-dispatcher-1.3.jar
    urls[22] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/plexus-utils-2.0.1.jar
    urls[23] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-file-1.0-beta-6.jar
    urls[24] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-http-jetty-client-1.0-SNAPSHOT.jar
    urls[25] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/wagon-provider-api-1.0-beta-6.jar
    urls[26] = file:/H:/Uninstall%20Softwares/eclipse/eclipse-jee-galileo-SR1-win32/eclipse/plugins/org.maven.ide.eclipse.maven_embedder_0.10.0.20100209-0800/jars/xbean-reflect-3.4.jar
    Number of foreign imports: 0

    -----------------------------------------------------
    -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException


    ==================================================


    Could you please look into the error above and suggest, Thanks in advance for the quick reply.


    Regards,
    K Mughal.
    13 years ago
    Thanks for information Tim, but I dont understand about the name thingy. I am using my real name.
    15 years ago
    Hi Guys,

    I want to know if there is any limit on the number of java classes to be loaded at bootstrap loading in a single JVM? Also, if we have extra classes loaded how it effects perfomance and memory ? If there is any best practices?
    15 years ago
    Hi

    I am trying with my little knowledge to update the Customer Details onChange event of list, let me tell you the way i am doing it.

    I am using simpleFormController that loads the list values, When i select any of the customers from the list i call javascript function that does AJAX process, in this process I am passing URL that invoke the same contoller again. Infact, This is the point where i am confused as i need to see the customer details on same page, But they are not coming on the page but definately coming from DB.

    I am wondering if i am doing it right?

    code is as follow;