Drag UserControl that uses Linq To Entities onto Windows Form, No Connection String named '' could be found in application config file
I have created a Visual Studio 2013 Solution with two projects: A Windows Forms project and a Class Library project. In the Class Library project I have added an entity framework, resulting in an .edmx file and an app.config file. I have copied the app.config
file to the Windows Forms project and added a reference to EntityFramework.dll and a reference to the Class Library.
When there is no code in the user control, I can drag the user control onto the main windows form with no error. However, if I use Linq to Entities in my user control and then try to drag it onto my form, I get an error.
Code in User Control that causes error:
adminentities = new ClassLibrary1.AdminEntities();
var res = from pay in adminentities.PayrollSchedules.Where(x=>x.FiscalYear == 2015) select pay;
The error is:
Failed to create component 'NavigationUserControl'...'No connection string named 'AdminEntities' could be found in the application config file.'
There IS an app.config file in the windows form project with a connection string named 'AdminEntities'. I have also tried a few suggestions I found: 1) Changed * in the connection string to use the namespace of the class library and 2) replaced "
with a single quote. Neither of these changes fixed the issue.
How can I resolve this? Thank you.
Hi RLuther,
>> Failed to create component 'NavigationUserControl'...'No connection string named 'AdminEntities' could be found in the application config file.'
Based on the error message, this issue would be related to the data platform, I suggest you post this issue to the
ADO.NET Entity Framework and LINQ to Entities forum for dedicated support.
The forum link:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetentityframework
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text fowarded in form of attachment instead of the message opened in the body of the email. How can I solve this? Thanks. Best regards.
this:
Did not exist at the point of delivery to the consumer.
Nor did the white corrosive agent present exist at the point of sale.
" exposure of copper alloys to moisture or salt spray will cause the formation of blue or green salts called verdigris. The presence of verdigris indicates active corrosion."
I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory. -
I can't download PDF's from website that uses Adobe Reader on my Windows 8 phone?
For work I need to be able to download PDF's from a particular website. It utilizes the Adobe Reader but when I try to download a PDF, it doesn't do anything. I tried to download the "Adobe Reader" from the website but it says that I do not hav the system requirements to do so. This problem started after they did the Adobe update. I haven't been able to download these PDS's since then. I need to be able to do this for work.... Any suggestions? or when will this issue be fixed? Thank you!!!
I have the same problem. Or similar. A few weeks ago, i installed Adobe reader (because i had a pdf attachment that was unreadable in Preview, so i wanted to try Adobe to see if that would work; it didn't work). Since then, i can't open PDF files on the web. I get a black screen or sometimes a white one. and i can sometimes open them indirectly, if there is the option on the link. I thought this problem started after i deleted Adobe however. I'm not sure because i wasn't expecting this problem and am not exactly sure the sequence of when things happened, but i wanted to delete Adobe reader because i had no use for it. Unfortunately, they didn't provide an uninstaller. I put the application in the trash and whatever else was in the folder, and emptied the trash, but got a lot of messages about various files not being able to be deleted because they were in use. I think it was since then that i can't open PDF files. Never had a problem before getting involved with Adobe Reader. Anyway, as far as your answer goes, i have already deleted as much of it as i can.
Any other suggestions? i downloaded the Adobe installer to reinstall it if that's what it takes. i need to be able to open PDF files.
Thanks -
Photoshop Elements 11
Only Been using it
saying ' could not complete your request because file is not compatible with this version of Photoshop Elements'
What do i doWhich operating system are you running on?
Do you get this error when loading or using the organizer or the editor?
What are you trying to do when you get this error?
If you are using raw files, which camera (make and model) do you use to create the raw files?
If you can load the editor, which version of camera raw do you have loaded? - see Help -> about Plug-in -> Camera raw
Brian -
Hi i am i have any ipad and i am trying to download family tree maker that i purchased online, but all that keeps co ing up is safari cannot download file can anyone help me .....bebe
I think you are trying to install a computer application to use on an iPad. You can't. They are incompatible pieces of hardware. If you want Family Tree Maker for your iPad, then you need to get that version, if it exists, from the iTunes Store. That download can't be done via Safari.
-
I spent some time last night trying to implement a query having a LIKE expression as well as SKIP and TAKE expressions with parameter for Sql server 2000.
I could not have Linq work for the LIKE expression, so I tried an Object query with LIKE, SKIP and LIMIT to find that LIMIT did not work with parameters on Sql 2000.
So I ended up mixing Object query and Linq in the same expression, it seems to work but produces some rather complex SQL.
I thought Linq to Entities turned the Linq expression tree into e SQL, so how could it solve a problem that Object query could not solve ?
Code Block
List<User> users = db.Users.Where("it.UserName LIKE @usernameToMatch",
new ObjectParameter("usernameToMatch", usernameToMatch))
.OrderBy(u => u.UserName).Skip(pageIndex * pageSize).Take(pageSize).ToList();
Is there a better way to do this ?
Will this work with other providers when they are availble ?JPAK;
In LINQ, you can use "Contains", "StartsWith", or "EndsWith" similar to "LIKE". For example, against Northwind you could do the following:
Code Block
using (NorthwindEntities db = new NorthwindEntities())
string name = "Restaurant";
int skip = 0;
int take = 10;
var q = (from cus in db.Customers
where cus.CompanyName.Contains(name)
select cus).OrderBy(c => c.CompanyName).Skip(skip).Take(take);
foreach (Customer c in q)
Console.WriteLine("{0} {1}", c.CompanyName, c.ContactName);
Console.ReadLine();
Yes, as you discovered, going from an eSQL string/builder-based ObjectQuery<T> to a LINQ expression is supported (in fact, db.Customers does a CreateQuery<Customer>("[Customers]") under the covers, which is simply an eSQL shortcut for "SELECT VALUE customer FROM [Customers] AS customer"). However, it is not possible to call additional query builder methods once you've built a LINQ expression.
Note that LINQ to Entities does not create an eSQL string, but directly builds a canonical command tree which is passed to the provider, just as eSQL is parsed and passed to the provider as a canonical command tree. LINQ is generally more restrictive in what is supports than eSQL, although in some cases LINQ exposes nice "sugar" functions to simplify generation of more complex SQL strings.
HTH,
-Mike -
Calling Console Application that uses WebBrowser from SQL Server - Not Running
Hi there. I am working in a program automation that needs to get files from a website and put it in a database. It is done but as I need a console application and need webbrowser that comes from Windows Forms, I am trying to call it from the SQL Server using
the xp_cmdshell but when it runs the .exe, it execute the block that is before the Application.Run() command but when it reaches this line, it stay running on Task manager but it not execute my code. How can I fix this? I had first created a Windows form application
but it was not working anyway and then I tried a console application and then I use the [STAThread] and Application.Run(). At least it runs the file from SQL Server but is not executing all my code, I think that it stops on Application.Run() line. Any help
will be very useful.
Thanks for now.Thanks for the response. What I mean is that it just run the part of the code that is just using the Console, that's the code:
// Main Method
[STAThread]
public static void Main()
clearDatabase(myConnection);
Console.Title = "Suframa Itens Robot";
//If log file exists, it is deleted
if ( File.Exists(@"suframaLog.txt") )
File.Delete(@"suframaLog.txt");
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(loginWebsite);
try
//It is called as the program uses the WebBrowser Class from Windows Forms namespace
//and it is a console Application
Application.Run();
catch ( Exception ex )
Log(ex.Message);
As you can see, I call a function on start named ClearDatabase, when I call the file from sql server it executes, the tables are cleared, but what I think is that the problem stop when reach the line Application.Run() as it is the line that allows the remaining
code to execute as it uses events from WebBrowser class.
It is a program automation that needs to get a lot of files from a website that needs login and read line by line from the files and put on server, if I call it from the executable it runs fine, the only problem is when calling from SQL Server, Do you know
how to fix this?
Thanks. -
Is it possible that using serial number find location of Ipod?
I lost my ipod touch in Korea last 2 weeks. How can I do for find out my Ipod? Is it possible that using serial number find location of Ipod?
If you had the Find My iPhone application installed and location services turned on, you can track the iPod touch, but you can not use the serial number to track it.
-
Impact of use XMLEncoder to log transactions that use serialization
Hi,
i have an application that uses serialization to communicate between client and server, i want to log this transactions in a xml file using XMLEncoder, using the method:
public static void log(Object transaction) throws Exception {
XMLEncoder e = new XMLEncoder(new BufferedOutputStream(new FileOutputStream("log.xml")));
e.writeObject(transaction);
e.close();
}if i put this, how i can check the impact on the system? the XMLEncoder consumes memory to build the XML, then the impact will be only for the garbage collector?
thanks for any idea.A profile would be the best option. NetBeans comes with a free one. There is also OptimizeIt and JProbe. Otherwise you'd have to write a lot of code to get that info.
-
How do i find a list of printers that use cartridge 920??
I'd like to find a list of the printers that use the 920 printer ink cartridges. Any suggestions how I could do that?
Hi,
HP 920 and 920XL ink cartridges can be uses to the following printers:
Color Inkjet Printers
HP Officejet 6000 Printer series - E6
HP Officejet 6000 Printer - E609a Accessories for this model
HP Officejet 6000 Wireless Printer - E609n Accessories for this model
Inkjet Multifunction and All-in-One
HP Officejet 6500 All-in-One Printer series - E7
HP Officejet 6500 All-in-One Printer - E709a Accessories for this model
HP Officejet 6500 Wireless All-in-One Printer - E709n Accessories for this model
HP Officejet 6500A e-All-in-One Printer series - E7 HP Officejet 6500A Plus e-All-in-One Printer - E710n Accessories for this model
More info:
http://h30094.www3.hp.com/product.aspx?sku=3964286&mfg_part=CD975AN&pagemode=ca
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Hi my name is vishal
For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Diagnostics;
using System.IO;
namespace DRRS_CSharp
public partial class frmPDF : Form
public frmPDF()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
Document doc = new Document(PageSize.A4.Rotate());
var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
doc.SetMargins(50, 50, 50, 50);
doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
doc.Open();
PdfPTable table = new PdfPTable(6);
table.TotalWidth =530f;
table.LockedWidth = true;
PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
cell.Colspan = 6;
cell.HorizontalAlignment = 0;
table.AddCell(cell);
Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
para.Alignment = Element.ALIGN_CENTER;
iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
png.ScaleToFit(105f, 105f);
png.Alignment = Element.ALIGN_RIGHT;
SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
conn.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
table.AddCell("Reprocessing Date");
table.AddCell("Patient Name");
table.AddCell("Dialyzer(Manufacturer,Size)");
table.AddCell("No.of Reuse");
table.AddCell("Verification");
table.AddCell("DialyzerID");
while (dr.Read())
table.AddCell(dr[2].ToString());
table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
table.AddCell("@count".ToString());
table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
table.AddCell(dr[0].ToString());
dr.Close();
table.SpacingBefore = 15f;
doc.Add(para);
doc.Add(png);
doc.Add(table);
doc.Close();
System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
this.Close();
The above code executes well with no problem at all!
As you can see the file to which i create and save and open my pdf report is
AssignedDialyzer.pdf.
The column headers of table in pdf report from c# windows forms using iTextSharp are
"Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
"DialyzerID".
However the problem i am facing is after execution and opening of document is my
column headers in table in pdf report from
c# and datas in it all appear in bold.
I have browsed through net regarding to solve this problem but with no success.
What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
vb6,adodb with ms access using iTextSharp?
I have approached Sound Forge.Net for help but with no success.
I hope anyone/someone truly understands what i am trying to ask!
I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
I hope i get a reply in terms of solving this problem.
vishalHi,
About iTextSharp component issue , I think this case is off-topic in here.
I suggest you consulting to compenent provider.
http://sourceforge.net/projects/itextsharp/
Regards,
Marvin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Can I use WindowsAzure NuGet package for Windows Server development?
Which Nuget package should I be using when developing a service that uses the Service Bus for Windows Server 1.1?
I've been using the 'ServiceBus.v1_1' package up to now, but on a whim tried using the 'WindowsAzure.ServiceBus' package and that appears to be working for a basic program:
var namespaceManager = NamespaceManager.Create();
var messagingFactory = MessagingFactory.Create();
var sub = messagingFactory.CreateQueueClient("queue");
sub.RegisterSessionHandler(typeof(MySessionHandler));
The reason I want to use this is as above - I want to use the RegisterSessionHandler feature to manage my sessions for me, but this functionality appears to be missing in the Service Bus 1.1 package.
If I avoid using the newer, unsupported Azure features, should I be safe using this package?I can't speak to teh display quality of Office for Windows 2010 on a Retina display, but I'm successfully running Parallels 8 with Windows XP and Office 2010 - no problems with VBA at all.
But let's hear from the Retina owners - I wouldn't think that you'd have any problems.
Clinton -
How to create dynamic connection string with variables using ssis.
Hello,
Can anyone let me know on how to create dynamic connection string with variables using ssis?
Any help would be appreciated.Hi vinay9738,
According to your description, you want to connect multiple database from multiple servers using dynamic connection.
If in this case, we can create a Table in our local database (whatever DB we want) and load all the connection strings. We can use Execute SQL Task to query all the connection strings and store the result-set in a variable of object type in SSIS package.
Then use ForEach Loop container to shred the content of the object variable and iterate through each of the connection strings. And then Place an Execute SQL task inside ForEach Loop container with the SQL statements we have to run in all the DB instances.
For more details, please refer to the following blog:
http://sql-developers.blogspot.kr/2010/07/dynamic-database-connection-using-ssis.html
If there are any other questions, please feel free to let me know.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
I have CDs that I want to import onto my new MacBook Pro to my iPhone. I am not use to the new iTunes with the Mountain Lion software. I had an old PowerMac that had the Leopard software and I was able to drag those songs to my iPhone. I can't find that option. When I find the song I want to add to my iPhone, I tried dragging it to the top when it shows that my iPhone is connected with iTunes. Or how do i do this with the Cloud? I am new to that as well. Seems like it just held my purchased songs from iTunes.
iCloud only has content purchased (or free) from iTunes. Ripped music or music from other sources is only on your computer. As the iPhone can only sync with one computer at a time you should copy the iTunes folder from the old computer to the new one. It's in the Music folder on the old one, just copy the entire folder to the Music on the new computer. When you first sync your iPhone content will be replaced by the content of the new computer.
You can optionally enable iTunes Match. This searches the non-iTunes content in iTunes or on your iPhone and finds the original digital version on the Internet if it exists. This then becomes your backup. If you have music that it cannot find it will upload it to your cloud storage, but you may have to pay for the storage if it is over 5 GB total (along with your backup). iTunes content and Match content are not included in the 5 GB free limit.
Usually to fix mail issues just delete the account, reset (reboot) the phone by holding HOME and SLEEP until an Apple logo appears, and adding the email account(s) back. -
Failure When Deploying EJB Project That Uses Library Onto Glassfish
<font size=4>Hi,
I have a multi project application that I am developing and I am having issues testing it. I have set up a EAR, WAR, EJB, and two library JARs. The EJB contains classes that use components from the library JARs or implement abstract classes from the library JARs. I have added the library JARs to the compile-time libraries of the EJB. I then also added the library JARs to the libraries of the EAR. However when I then go to deploy the EAR onto the Glassfish server I get this error, displayed in the Glassfish log:</font><br>
<font size=2><font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClass</font><br>
<font color="red">WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClas</font><br>
<font color="red">SEVERE: Class [ com/foo/sdk/core/InterfaceClass ] not found. Error while loading [ class com.foo2.BeanFooClass ]</font><br>
<font color="red">SEVERE: Exception while deploying the app [FooEAR]</font><br>
<font color="red">SEVERE: Invalid ejb jar [BeanFoo.jar]: it contains zero ejb. </font><br>
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.
java.lang.IllegalArgumentException: Invalid ejb jar [BeanFoo.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:76)
at com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:128)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:730)
at com.sun.enterprise.deployment.Application.visit(Application.java:1768)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:799)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:277)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:679)
<font color="red">SEVERE: Exception while deploying the app [FooEAR] : Invalid ejb jar [FooBean.jar]: it contains zero ejb. </font><br>
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.</font><br>
<font size=4>I am using these technologies:
NetBeans IDE 7.0 for Java EE
Glassfish 3.1
I did read that putting the libraries in this directory: <glassfish_home>/domains/domain1/lib may resolve the problem, however there must be a better way.
Any help would be greatly appreciated!</font>
Edited by: 866180 on Jun 15, 2011 2:32 PMFirst of all, use a normal font when posting a question. This is just terrible to read.
You have multiple failures here. Did you actually read and try to understand the error?
java.lang.NoClassDefFoundError: com/foo/sdk/core/AbstractClassJava is not going to lie, this class is not on the classpath of the application. Either the jar is missing, the class is missing from the jar or you put the jar in the wrong place. Open up the ear using your favorite zip tool and check out its structure. What is the path to the jar inside it?
Also, open up the META-INF/manifest.mf file inside the EJB jar. Is there a class-path line in there? There shouldn't be!
A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean. Apparently your EJB jar contains not a single EJB or MDB class. Did you forget some annotations perhaps?
Seems to me that your application compiles, but other than that it is very much broken.
Maybe you are looking for
-
HI!! Guys, I want to issue Invoice 1st and after receiving payment i want to make delivery. Please guide me with steps. Regards AKASH
-
Keep getting 'do I want to connect to BT unrestricted network' which I have never used before. I can get my ISP details input but get message 'incorrect password' even though it works with 3 other devices. My network provider, Virgin Media, sent an
-
How to get flash template name from a site.
Hello, I recently discovered a site and loved the gallery image used on the home page. I tried to find the name of the flash template used in the image gallery but couldn't find any way on the site. Could you kindly tell if there is any way to find t
-
MacBookPro or G5 desktop? Which one should I buy?
I had just made the decision to invest in a new Mac. I've been using my G3 Powerbook for a few years now and it's time to upgrade. I can't even put OSX on my PB (I should be able to but can't due to various problems and instabilities - with the PB th
-
I ordered by phone yesterday afternoon and I have not received a confirmation e-mail about my order. I was just wondering when I would get one. I have a confirmation number and my order is in MyVerizon. Thanks.