I am currently following instructions in a book to develop an application. It asks me to download StructureMap and then move the StructureMap.Dll file and the Log4Net.dll into the bin files. The problem is there doesnt seem to be a Log4Net.dll file in the StructureMap files, the only other dll apart from the StructureMap.dll is the Rhino.Mock.dll. can anyone help?
Thanks
Rachel
StructureMap underwent a bit of an overhaul recently, so it's possible that a dependency on log4net was removed during that process. In any case, StructureMap does not currently require log4net. Here's a quick screenshot from Reflector showing as much:
(source: cryptofreak.org)
It might be worthwhile to find out which version of StructureMap the book is referencing and try that one rather than the latest.
I'm developing the same social networking site too. Download StructureMap V.1.1 from here, where you will find both the dlls:
http://github.com/structuremap/structuremap/downloads
Related
I have an application that is currently running on JBoss AS but does not work on Glassfish. I'm trying to work through the documentation here but I'm having trouble figuring out things like what the file structure of the application should be and what (if any) additional files are needed. This documentation also refers to examples but to get the examples you need to install Netbeans and access an update tool tied to the glassfish instance installed with Netbeans. When I do this the server won't start, the update tool won't run, and I can't get the examples. Is there an easy way to get these examples (e.g. a simple download)? I've found other examples such as this one, but they are also dependent upon Netbeans.
Is there a simple and complete ejb/servlet example for Glassfish that can be simply downloaded and does not depend upon Netbeans or other IDE?
The obvious example is the Java EE CargoTracker. It was written to show what a "real" application might look like with pure Java EE APIs so should work on both JBoss and GlassFish. You will need Maven installed to build and run it, but there are more complete details in the readme for the project. Note that some of the information is a little out of date (mostly links to java.net which has been sunset in favour of a GitHub site) but the application itself is still a good example of Java EE 7 APIs.
https://github.com/javaee/cargotracker
I found the examples on github here:
https://github.com/javaee/glassfish-samples
To get and build the examples you will need Git and Maven. These examples are small, complete, and concise. The example that was helpful for my particular problem was this example:
glassfish-samples\ws\javaee5\enterprise\servlet-stateless-ear
It demonstrated that I needed to change the structure of my project such that the servlet was in a .war file and not in a .jar file in the lib folder of my project.
My goal is to add a reference of my ASP.NET vNext to the old MySql.Data.dll. I think that this should be possible.
I put it in a NuGet package but if I compiled my project, I receive an error message.
Anything there is wrong.
Is there a guideline anywhere showing how to add DLL references? I searched a lot until now, but haven't had found anything.
I assume this is same question as the post below? If you still have questions please do let us know.
http://forums.asp.net/t/1998097.aspx?Add+NET+4+5+Assembly+As+Reference+
One workaround is to create a class library project with your library reference. Then use a project reference from your website to the class library project.
I'm using eclipse for html5, js & css3.
On starting a new project, eclipse offered to start it using boilerplate. After a little research, it seemed a good thing to try. But on zipping the project up to send to a tester, I found I had a small app with a very large 4mb footprint...
I've found the culprit in myProject/.git/objects/pack
the file is
pack-8bbfc27fb4f49b9b8418123879a14af5e5dd861c.pack and is 3.8mb
Any ideas what this is for? Is it something eclipse has added?
Cheers
The .git directory is only used by the Git version control system. We use Git - as many other open source projects do - to manage the source code of the project.
I'm a bit confused. I need to compile a project in jDeveloper 11.1.1.6.0. The server side of the project is deployed on the Glassfish server. On the machine of the project's creator everything compiles without any problems.
Using project properties -> Libraries and Classpath I added the libraries such as gf-client.jar, security etc. from $glassfish_home/glassfish/modules and some others (e.g. hibernate3.jar from hibernate dir).
When I try to compile the project I receive the following errors:
package javax.annotation.security does not exist
and
package javax.persistence does not exist.
I suppose that I miss some jars to include. I tried to find which jars (from Glassfish or from JDK) contain javax.annotation.* and javax.persistence.* but I couldn't.
If you have any ideas I would be thankful!
I was having the same problem and was able to solve it by adding a couple of dependencies to the Maven pom.xml file. See this answer for more details.
So I found the source of the problem. The application consists of 2 projects, of which only one (mentioned in the question) uses EJB. I'm not sure if it is the way it should be, but I tried adding ejb-files to another project. And after clean all and rebuild all it compiled like a charm for me. I hope this will help somebody in the future.
Is there a way to reverse engineer a pre-compiled website .... if for example someone 8) was silly enough to publish their site to a virtual directory witha local path set to the project folder in VS2008?
Help :)
Reflector is difficult to use with a precompiled site because of the way it breaks up the pages. It is not always clear and not an easy way to reverse engineer.
In fact, one of the main reasons we precompile sites is becuase it is harder to reverse engineer and update production code.
You should be able to use Reflector to see the source code. There are plugins which will decompile an assembly (.DLL or .EXE) created with .NET into a new Visual Studio project.
I had the similar issue and used Reflector to Decompile it. I got the source code, then changed the bit I wanted, and rebuild it. Then I copied that dll again to Production site. It started to reflect my changes. It was very easy and not at all difficult, maybe because Precompiled site had dlls for every page, and was updatable , so had only code-behind file in dll.
For reference: http://www.reflector.net/